class Game_Party < Game_Unit
#--------------------------------------------------------------------------
# ● 走一步时含有指定状态自动回复
#--------------------------------------------------------------------------
alias qqeat_increase_steps increase_steps
def increase_steps
qqeat_increase_steps
members.each{|a|a.states.each{|s|
if s.id == 8 #当含有8号状态时
a.hp += 10 #HP+10
a.mp += 5 #MP+5
end
}}
end
#--------------------------------------------------------------------------
# ● 战斗结束时含有指定状态自动回复
#--------------------------------------------------------------------------
alias qqeat_do_auto_recovery do_auto_recovery
def do_auto_recovery
qqeat_do_auto_recovery
members.each{|a|a.states.each{|s|
if s.id == 8 #当含有8号状态时
a.hp += a.maxhp * 0.1 #HP+10%
a.mp += a.maxmp * 0.05 #MP+5%
end
}}
end
end