2017-12-16 05:52:16 +00:00
|
|
|
LoadSpecialMapPalette: ; 494ac
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wMapTileset]
|
2017-12-16 05:52:16 +00:00
|
|
|
cp TILESET_POKECOM_CENTER
|
|
|
|
jr z, .pokecom_2f
|
|
|
|
cp TILESET_BATTLE_TOWER
|
|
|
|
jr z, .battle_tower
|
|
|
|
cp TILESET_ICE_PATH
|
|
|
|
jr z, .ice_path
|
2018-01-17 19:50:34 +00:00
|
|
|
cp TILESET_HOUSE
|
2017-12-16 05:52:16 +00:00
|
|
|
jr z, .house
|
|
|
|
cp TILESET_RADIO_TOWER
|
|
|
|
jr z, .radio_tower
|
2018-01-17 19:50:34 +00:00
|
|
|
cp TILESET_MANSION
|
2017-12-16 05:52:16 +00:00
|
|
|
jr z, .mansion_mobile
|
|
|
|
jr .do_nothing
|
|
|
|
|
|
|
|
.pokecom_2f
|
|
|
|
call LoadPokeComPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.battle_tower
|
|
|
|
call LoadBattleTowerPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.ice_path
|
2017-12-24 18:08:38 +00:00
|
|
|
ld a, [wEnvironment]
|
2017-12-16 05:52:16 +00:00
|
|
|
and $7
|
|
|
|
cp INDOOR ; Hall of Fame
|
|
|
|
jr z, .do_nothing
|
|
|
|
call LoadIcePathPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.house
|
|
|
|
call LoadHousePalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.radio_tower
|
|
|
|
call LoadRadioTowerPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.mansion_mobile
|
|
|
|
call LoadMansionPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
|
|
|
.do_nothing
|
|
|
|
and a
|
|
|
|
ret
|
|
|
|
; 494f2
|
|
|
|
|
|
|
|
LoadPokeComPalette: ; 494f2
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, PokeComPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 49501
|
|
|
|
|
|
|
|
PokeComPalette: ; 49501
|
2018-01-10 04:21:32 +00:00
|
|
|
INCLUDE "gfx/tilesets/pokecom_center.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 49541
|
|
|
|
|
|
|
|
LoadBattleTowerPalette: ; 49541
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, BattleTowerPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 49550
|
|
|
|
|
|
|
|
BattleTowerPalette: ; 49550
|
2018-01-10 04:21:32 +00:00
|
|
|
INCLUDE "gfx/tilesets/battle_tower.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 49590
|
|
|
|
|
|
|
|
LoadIcePathPalette: ; 49590
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, IcePathPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 4959f
|
|
|
|
|
|
|
|
IcePathPalette: ; 4959f
|
2018-01-10 04:21:32 +00:00
|
|
|
INCLUDE "gfx/tilesets/ice_path.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 495df
|
|
|
|
|
|
|
|
LoadHousePalette: ; 495df
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, HousePalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 495ee
|
|
|
|
|
|
|
|
HousePalette: ; 495ee
|
2018-01-17 19:50:34 +00:00
|
|
|
INCLUDE "gfx/tilesets/house.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 4962e
|
|
|
|
|
|
|
|
LoadRadioTowerPalette: ; 4962e
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, RadioTowerPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 4963d
|
|
|
|
|
|
|
|
RadioTowerPalette: ; 4963d
|
2018-01-10 04:21:32 +00:00
|
|
|
INCLUDE "gfx/tilesets/radio_tower.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 4967d
|
|
|
|
|
|
|
|
MansionPalette1: ; 4967d
|
2018-01-17 19:50:34 +00:00
|
|
|
INCLUDE "gfx/tilesets/mansion_1.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 496c5
|
|
|
|
|
|
|
|
LoadMansionPalette: ; 496c5
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, MansionPalette1
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_YELLOW
|
2017-12-16 05:52:16 +00:00
|
|
|
ld hl, MansionPalette2
|
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_WATER
|
2018-01-12 19:41:42 +00:00
|
|
|
ld hl, MansionPalette1 + 6 palettes
|
2017-12-16 05:52:16 +00:00
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 14:08:21 +00:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_ROOF
|
2018-01-12 19:41:42 +00:00
|
|
|
ld hl, MansionPalette1 + 8 palettes
|
2017-12-16 05:52:16 +00:00
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
; 496fe
|
|
|
|
|
|
|
|
MansionPalette2: ; 496fe
|
2018-01-17 19:50:34 +00:00
|
|
|
INCLUDE "gfx/tilesets/mansion_2.pal"
|
2017-12-16 05:52:16 +00:00
|
|
|
; 49706
|