Advertisement
diamondandplatinum3

Always Deal At Least 1HP Damage ~ RGSS3

Jun 16th, 2013
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.86 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. #             Always Deal At Least 1HP Damage
  3. #             Author: DiamondandPlatinum3
  4. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. #  Description:
  6. #
  7. #    This script simply makes it so that damage is always at least 1.
  8. #    No longer will enemies and yourself deal no damage.
  9. #
  10. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  11.  
  12. class Game_ActionResult
  13.   #--------------------------------------------------------------------------
  14.   # * Create Damage
  15.   #--------------------------------------------------------------------------
  16.   alias dp3_dto_gameactionresult_makedamage     make_damage
  17.   def make_damage(value, item)
  18.     value = 1 if value == 0
  19.     dp3_dto_gameactionresult_makedamage(value, item)
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement