Hello, I'd like to implement something in my project related with the drain value the attacker receives. I'd like target's Luck reduces the damage percentage the caster recover, I think the key to modify this is in Game_ActionResult scripts
The idea would be to modify the first @hp_drain line to multiply the damage by (target's luk / 100)
Does someone know how to make this? Thank you
Code:
def make_damage(value, item)
@critical = false if value == 0
@hp_damage = value if item.damage.to_hp?
@mp_damage = value if item.damage.to_mp?
@mp_damage = [@battler.mp, @mp_damage].min
@hp_drain = @hp_damage if item.damage.drain?
@mp_drain = @mp_damage if item.damage.drain?
@hp_drain = [@battler.hp, @hp_drain].min
@success = true if item.damage.to_hp? || @mp_damage != 0
end
The idea would be to modify the first @hp_drain line to multiply the damage by (target's luk / 100)
Does someone know how to make this? Thank you