2018-06-24 16:09:41 +02:00
|
|
|
LoadSpecialMapPalette:
|
2018-01-23 17:39:09 -05:00
|
|
|
ld a, [wMapTileset]
|
2017-12-16 00:52:16 -05:00
|
|
|
cp TILESET_POKECOM_CENTER
|
|
|
|
jr z, .pokecom_2f
|
2019-11-03 12:03:37 -05:00
|
|
|
cp TILESET_BATTLE_TOWER_INSIDE
|
|
|
|
jr z, .battle_tower_inside
|
2017-12-16 00:52:16 -05:00
|
|
|
cp TILESET_ICE_PATH
|
|
|
|
jr z, .ice_path
|
2018-01-17 14:50:34 -05:00
|
|
|
cp TILESET_HOUSE
|
2017-12-16 00:52:16 -05:00
|
|
|
jr z, .house
|
|
|
|
cp TILESET_RADIO_TOWER
|
|
|
|
jr z, .radio_tower
|
2018-01-17 14:50:34 -05:00
|
|
|
cp TILESET_MANSION
|
2017-12-16 00:52:16 -05:00
|
|
|
jr z, .mansion_mobile
|
|
|
|
jr .do_nothing
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.pokecom_2f
|
2017-12-16 00:52:16 -05:00
|
|
|
call LoadPokeComPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.battle_tower_inside
|
2019-11-03 12:03:37 -05:00
|
|
|
call LoadBattleTowerInsidePalette
|
2017-12-16 00:52:16 -05:00
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.ice_path
|
2017-12-24 13:08:38 -05:00
|
|
|
ld a, [wEnvironment]
|
2017-12-16 00:52:16 -05:00
|
|
|
and $7
|
|
|
|
cp INDOOR ; Hall of Fame
|
|
|
|
jr z, .do_nothing
|
|
|
|
call LoadIcePathPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.house
|
2017-12-16 00:52:16 -05:00
|
|
|
call LoadHousePalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.radio_tower
|
2017-12-16 00:52:16 -05:00
|
|
|
call LoadRadioTowerPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.mansion_mobile
|
2017-12-16 00:52:16 -05:00
|
|
|
call LoadMansionPalette
|
|
|
|
scf
|
|
|
|
ret
|
|
|
|
|
2019-11-04 17:43:37 -05:00
|
|
|
.do_nothing
|
2017-12-16 00:52:16 -05:00
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
LoadPokeComPalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, PokeComPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
PokeComPalette:
|
2018-01-09 23:21:32 -05:00
|
|
|
INCLUDE "gfx/tilesets/pokecom_center.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2019-11-03 12:03:37 -05:00
|
|
|
LoadBattleTowerInsidePalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2019-11-03 12:03:37 -05:00
|
|
|
ld hl, BattleTowerInsidePalette
|
2017-12-16 00:52:16 -05:00
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2019-11-03 12:03:37 -05:00
|
|
|
BattleTowerInsidePalette:
|
|
|
|
INCLUDE "gfx/tilesets/battle_tower_inside.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
LoadIcePathPalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, IcePathPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
IcePathPalette:
|
2018-01-09 23:21:32 -05:00
|
|
|
INCLUDE "gfx/tilesets/ice_path.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
LoadHousePalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, HousePalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
HousePalette:
|
2018-01-17 14:50:34 -05:00
|
|
|
INCLUDE "gfx/tilesets/house.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
LoadRadioTowerPalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, RadioTowerPalette
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
RadioTowerPalette:
|
2018-01-09 23:21:32 -05:00
|
|
|
INCLUDE "gfx/tilesets/radio_tower.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
MansionPalette1:
|
2018-01-17 14:50:34 -05:00
|
|
|
INCLUDE "gfx/tilesets/mansion_1.pal"
|
2017-12-16 00:52:16 -05:00
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
LoadMansionPalette:
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, MansionPalette1
|
|
|
|
ld bc, 8 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_YELLOW
|
2017-12-16 00:52:16 -05:00
|
|
|
ld hl, MansionPalette2
|
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_WATER
|
2018-09-16 03:00:25 +02:00
|
|
|
ld hl, MansionPalette1 palette 6
|
2017-12-16 00:52:16 -05:00
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
2018-01-01 15:08:21 +01:00
|
|
|
ld a, BANK(wBGPals1)
|
|
|
|
ld de, wBGPals1 palette PAL_BG_ROOF
|
2018-09-16 01:52:14 +02:00
|
|
|
ld hl, MansionPalette1 palette 8
|
2017-12-16 00:52:16 -05:00
|
|
|
ld bc, 1 palettes
|
|
|
|
call FarCopyWRAM
|
|
|
|
ret
|
|
|
|
|
2018-06-24 16:09:41 +02:00
|
|
|
MansionPalette2:
|
2018-01-17 14:50:34 -05:00
|
|
|
INCLUDE "gfx/tilesets/mansion_2.pal"
|