class Scene_Map def initialize @n_zhaoze = 0 end alias :ethan_update :update def update ethan_update if $game_player.moving? if $game_map.terrain_tag($game_player.x, $game_player.y) == 7 @n_zhaoze += 1 if @n_zhaoze%8 == 0 for actor in $game_party.actors actor.hp -= 10 if actor.hp < 1 actor.hp = 1 end end end end end end end
class Scene_Map
def initialize
@n_zhaoze = 0
end
alias :ethan_update :update
def update
ethan_update
if $game_player.moving?
if $game_map.terrain_tag($game_player.x, $game_player.y) == 7
@n_zhaoze += 1
if @n_zhaoze%8 == 0
for actor in $game_party.actors
actor.hp -= 10
if actor.hp < 1
actor.hp = 1
end
end
end
end
end
end
end
把水的地形标示改成7 |