Writing moves.txt now calls power "Power" instead of "BaseDamage", other minor tidying

This commit is contained in:
Maruno17
2022-06-13 20:17:16 +01:00
parent aec0215442
commit 732c167ad5
4 changed files with 4 additions and 10 deletions

View File

@@ -77,14 +77,9 @@ def pbRoamPokemonOne(idxRoamer)
newMapChoices = []
nextMaps = pbRoamingAreas(idxRoamer)[currentMap]
return if !nextMaps
nextMaps.each do |map|
# Only add map as a choice if the player hasn't been there recently
newMapChoices.push(map)
end
nextMaps.each { |map| newMapChoices.push(map) }
# Rarely, add a random possible map into the mix
if rand(32) == 0
newMapChoices.push(mapIDs[rand(mapIDs.length)])
end
newMapChoices.push(mapIDs[rand(mapIDs.length)]) if rand(32) == 0
# Choose a random new map to roam to
if newMapChoices.length > 0
$PokemonGlobal.roamPosition[idxRoamer] = newMapChoices[rand(newMapChoices.length)]