mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Added class GameData::EncounterType
This commit is contained in:
@@ -169,9 +169,7 @@ def pbGetEnvironment
|
||||
ret = :None
|
||||
map_metadata = GameData::MapMetadata.try_get($game_map.map_id)
|
||||
ret = map_metadata.battle_environment if map_metadata && map_metadata.battle_environment
|
||||
if $PokemonTemp.encounterType == EncounterTypes::OldRod ||
|
||||
$PokemonTemp.encounterType == EncounterTypes::GoodRod ||
|
||||
$PokemonTemp.encounterType == EncounterTypes::SuperRod
|
||||
if GameData::EncounterType.get($PokemonTemp.encounterType).type == :fishing
|
||||
terrainTag = pbFacingTerrainTag
|
||||
else
|
||||
terrainTag = $game_player.terrain_tag
|
||||
|
||||
Reference in New Issue
Block a user