neonblack

% Damage Floor

Aug 5th, 2012
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Game_Actor < Game_Battler
  2. def execute_floor_damage
  3. value = 1
  4. damage = (mhp * value / 100).to_i
  5. self.hp -= [damage, max_floor_damage].min
  6. perform_map_damage_effect if damage > 0
  7. end
  8. end
RAW Paste Data