class Game_BattlerBase def refresh @last_mhp ||= mhp if @last_mhp != mhp old_hp_rate = hp.fdiv @last_mhp @last_mhp = mhp self.hp = (old_hp_rate * @last_mhp).to_i end # invoke original method `refresh' end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |