在標記的地方設置狀態的編號,比如默認是4號,沉默。
生命值的百分比,寫成小數形式,比如百分之30以下解除就是0.3.
==
class Game_Battler < Game_BattlerBase
alias krst161010_update_state_turns update_state_turns
def update_state_turns
states.each do |state|
if state.note.include?("<limited>")
if $game_party.battle_members[0].hp_rate <= 0.3
remove_state(state.id)
end
else
@state_turns[state.id] -= 1 if @state_turns[state.id] > 0
end
end
end
end