IceDragon200

Game_Battler OVER 9000!!!!

May 23rd, 2011
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.28 KB | None | 0 0
  1. class Game_Battler
  2.  
  3.   #--------------------------------------------------------------------------
  4.   # * Calculation of Damage From Normal Attack
  5.   #     attacker : Attacker
  6.   #    The results are substituted for @hp_damage
  7.   #--------------------------------------------------------------------------
  8.   def make_attack_damage_value(attacker)
  9.     #damage = attacker.atk * 4 - self.def * 2        # base calculation
  10.     #damage = 0 if damage < 0                        # if negative, make 0
  11.     #damage *= elements_max_rate(attacker.element_set)   # elemental adjustment
  12.     #damage /= 100
  13.     #if damage == 0                                  # if damage is 0,
  14.     #  damage = rand(2)                              # half of the time, 1 dmg
  15.     #elsif damage > 0                                # a positive number?
  16.     #  @critical = (rand(100) < attacker.cri)        # critical hit?
  17.     #  @critical = false if prevent_critical         # criticals prevented?
  18.     #  damage *= 3 if @critical                      # critical adjustment
  19.     #end
  20.     #damage = apply_variance(damage, 20)             # variance
  21.     #damage = apply_guard(damage)                    # guard adjustment
  22.     damage = 9000 + rand(100)
  23.     @hp_damage = damage                             # damage HP
  24.   end
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment