IceDragon200

RMVX-Slip Damage Method

Oct 16th, 2011
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.23 KB | None | 0 0
  1. class Game_Battler
  2.  
  3.   def slip_damage_effect()
  4.     if slip_damage? and @hp > 0
  5.       @hp_damage = apply_variance(maxhp / 10, 10)
  6.       @hp_damage = @hp - 1 if @hp_damage >= @hp
  7.       self.hp -= @hp_damage
  8.     end
  9.   end
  10.  
  11. end
  12.  
Advertisement
Add Comment
Please, Sign In to add comment