mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 15:15:00 +00:00
20 lines
417 B
Ruby
20 lines
417 B
Ruby
class Game_Map
|
|
SECRET_BASE_TILESET_OVERRIDES = {
|
|
:BUSH => 100,
|
|
:CAVE => 101,
|
|
:TREE => 102,
|
|
}
|
|
|
|
alias __tileset_swap_updateTileset updateTileset
|
|
|
|
def updateTileset
|
|
if @map_id == MAP_SECRET_BASES && $Trainer.secretBase
|
|
override = SECRET_BASE_TILESET_OVERRIDES[$Trainer.secretBase.biome_type]
|
|
@map.tileset_id = override if override
|
|
end
|
|
__tileset_swap_updateTileset
|
|
end
|
|
end
|
|
|
|
|