#--------------------------------------------------------------------------
# 地图损血
#--------------------------------------------------------------------------
def drophp
for actor in @actors
if actor.hp > 1 #开始掉血的最小数值,可改为别的数
actor.hp -= [actor.hp / 100, 1].max #损血当前HP的1%,可自行修改。损血不足1时按1掉
end
end
end
def increase_steps
super
# 不是强制移动路线的场合
unless @move_route_forcing
# 增加步数
$game_party.increase_steps
# 步数是偶数的情况下
if $game_party.steps % 2 == 0
# 检查连续伤害
$game_party.check_map_slip_damage
$game_party.drophp
end
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |