mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
trainer card fixes
This commit is contained in:
@@ -85,9 +85,12 @@ def pbRoamPokemonOne(idxRoamer)
|
||||
if rand(32)==0
|
||||
newMapChoices.push(mapIDs[rand(mapIDs.length)])
|
||||
end
|
||||
# Choose a random new map to roam to
|
||||
if newMapChoices.length>0
|
||||
$PokemonGlobal.roamPosition[idxRoamer] = newMapChoices[rand(newMapChoices.length)]
|
||||
#50% chance of moving to a new map
|
||||
if rand(2)==0
|
||||
# Choose a random new map to roam to
|
||||
if newMapChoices.length>0
|
||||
$PokemonGlobal.roamPosition[idxRoamer] = newMapChoices[rand(newMapChoices.length)]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -390,7 +390,8 @@ Events.onAction += proc { |_sender, _e|
|
||||
break
|
||||
end
|
||||
if surface_map_id &&
|
||||
$MapFactory.getTerrainTag(surface_map_id, $game_player.x, $game_player.y).can_dive
|
||||
#$MapFactory.getTerrainTag(surface_map_id, $game_player.x, $game_player.y).can_dive
|
||||
$MapFactory.getTerrainTag(surface_map_id, $game_player.x, $game_player.y).can_surf
|
||||
pbSurfacing
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user