#--------------------------------------------------------------------------
# ● 在玩家移动一步后的处理
#--------------------------------------------------------------------------
def on_player_walk
for actor in members
if actor.slip_damage?
actor.hp -= 1 if actor.hp > 1 # 毒伤害
$game_map.screen.start_flash(Color.new(255,0,0,64), 4)
end
if actor.auto_hp_recover and actor.hp > 0
actor.hp += 1 # HP 自动回复
end
end
end
def on_player_walk
for actor in members
actor.hp += 1 if actor.hp > 0
actor.sp +=1 if acotr.sp >0
if actor.slip_damage?
actor.hp -= 1 if actor.hp > 1 # 毒伤害
$game_map.screen.start_flash(Color.new(255,0,0,64), 4)
end
if actor.auto_hp_recover and actor.hp > 0
actor.hp += 1 # HP 自动回复
end
end
end