Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Battler
- #--------------------------------------------------------------------------
- # * Calculation of Damage From Normal Attack
- # attacker : Attacker
- # The results are substituted for @hp_damage
- #--------------------------------------------------------------------------
- def make_attack_damage_value(attacker)
- #damage = attacker.atk * 4 - self.def * 2 # base calculation
- #damage = 0 if damage < 0 # if negative, make 0
- #damage *= elements_max_rate(attacker.element_set) # elemental adjustment
- #damage /= 100
- #if damage == 0 # if damage is 0,
- # damage = rand(2) # half of the time, 1 dmg
- #elsif damage > 0 # a positive number?
- # @critical = (rand(100) < attacker.cri) # critical hit?
- # @critical = false if prevent_critical # criticals prevented?
- # damage *= 3 if @critical # critical adjustment
- #end
- #damage = apply_variance(damage, 20) # variance
- #damage = apply_guard(damage) # guard adjustment
- damage = 9000 + rand(100)
- @hp_damage = damage # damage HP
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment