class Game_Party
def on_player_walk
@a ||= 0
@a += 1
for actor in members
if actor.slip_damage?
actor.hp -= 1 if actor.hp > 1 && @a == 10 # 持续伤害
$game_map.screen.start_flash(Color.new(255,0,0,64), 4) if @a == 10
end
if actor.auto_hp_recover and actor.hp > 0 and @a == 10
actor.hp += 1 # 体力自动回复
end
end
if @a == 10
@a = 0
end
end
end
class Game_Party
def on_player_walk
@a ||= 0
@a += 1
for actor in members
if actor.slip_damage?
actor.hp -= 1 if actor.hp > 1 && @a == 10 # 持续伤害
$game_map.screen.start_flash(Color.new(255,0,0,64), 4) if @a == 10
end
if actor.auto_hp_recover and actor.hp > 0 and @a == 10
actor.hp += 1 # 体力自动回复
end
end
if @a == 10
@a = 0
end
end
end