summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-09-03 02:04:23 +0200
committermid-kid <esteve.varela@gmail.com>2019-10-21 00:42:36 +0200
commit29deef86f810c00cc28b3afd9821b26febcde1d5 (patch)
tree74b785b7df89c0f57c86bf7171d2c3fc65fc2b9d
parent3664cee79bbebbcc71745ff768e7a4c1f37407fe (diff)
Document the location of the mobile adapter colors
-rw-r--r--mobile/mobile_42.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/mobile/mobile_42.asm b/mobile/mobile_42.asm
index ab79a84b9..6a796f198 100644
--- a/mobile/mobile_42.asm
+++ b/mobile/mobile_42.asm
@@ -810,7 +810,7 @@ MobileTradeAnim_02:
call CopyBytes
pop af
ldh [rSVBK], a
- call Function108d07
+ call LoadMobileAdapterPalette
call Function108af4
call GetMobileTradeAnimByte
ret
@@ -855,7 +855,7 @@ MobileTradeAnim_10:
call CopyBytes
pop af
ldh [rSVBK], a
- call Function108d07
+ call LoadMobileAdapterPalette
call Function108af4
call GetMobileTradeAnimByte
ret
@@ -898,7 +898,7 @@ MobileTradeAnim_11:
call CopyBytes
pop af
ldh [rSVBK], a
- call Function108d07
+ call LoadMobileAdapterPalette
call Function108af4
call Function108b5a
ld a, $e0
@@ -1712,18 +1712,18 @@ DebugMobileTrade:
dw $0456
db "マツミヤ@@"
-Function108d07:
+LoadMobileAdapterPalette:
ld a, [wc74e]
and $7f
- cp $8
+ cp $8 ; CONST: Amount of mobile adapters
jr c, .asm_108d12
ld a, $7
.asm_108d12
ld bc, 1 palettes
- ld hl, Palette_1093c7
+ ld hl, MobileAdapterPalettes
call AddNTimes
- ld a, $5
+ ld a, BANK(wBGPals1)
ld de, wBGPals1 + 4 palettes
ld bc, 1 palettes
call FarCopyWRAM
@@ -1883,7 +1883,7 @@ INCBIN "gfx/unknown/1091c7.2bpp"
GFX_1092c7:
INCBIN "gfx/unknown/1092c7.2bpp"
-Palette_1093c7:
+MobileAdapterPalettes:
RGB 18, 31, 15
RGB 04, 13, 31
RGB 00, 00, 31