def refresh state_resist_set.each {|state_id| erase_state(state_id) } @hp = [[@hp, mhp].min, 0].max @mp = [[@mp, mmp].min, 0].max @hp == 0 ? add_state(death_state_id) : remove_state(death_state_id) end
@hp <= @mhp * X ? add_state(Y) : remove_state(Y)
踢腿水上飘 发表于 2018-12-11 00:21
1,Game_BattlerBase里面
def refresh
state_resist_set.each {|state_id| erase_state(state_id) }
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |