class Game_Map
# 在此处设置
ENCOUNTER_SETTING = {
1 => [5, 2], # 地图ID为1的地图,当等级大于等于5时,遇敌步数增加到原来的两倍
5 => [7, 3], # 以此类推设置
}
# 设置部分结束
alias normal_encounter_step encounter_step
def encounter_step
lv, rate = ENCOUNTER_SETTING[@map_id]
return normal_encounter_step if !lv || $game_party.highest_level < lv
(normal_encounter_step * rate).to_i
end
end
class Game_Map
# 在此处设置
ENCOUNTER_SETTING = {
1 => [5, 2], # 地图ID为1的地图,当等级大于等于5时,遇敌步数增加到原来的两倍
5 => [7, 3], # 以此类推设置
}
# 设置部分结束
alias normal_encounter_step encounter_step
def encounter_step
lv, rate = ENCOUNTER_SETTING[@map_id]
return normal_encounter_step if !lv || $game_party.highest_level < lv
(normal_encounter_step * rate).to_i
end
end