diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-12-22 18:03:00 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-12-22 18:03:00 -0500 |
commit | d08199c79d8168368aeac0381427d533e09f073d (patch) | |
tree | e97f322f3ec8a6f9e12e3360d358f3ed10ccb4d9 /engine | |
parent | 630d789c70fcd2b87336caf4762be2012790d4a8 (diff) |
Color fns, some more address decoding in link/mobile
Diffstat (limited to 'engine')
-rw-r--r-- | engine/color.asm | 105 | ||||
-rwxr-xr-x | engine/debug.asm | 4 | ||||
-rwxr-xr-x | engine/intro_menu.asm | 10 | ||||
-rwxr-xr-x | engine/link.asm | 161 | ||||
-rwxr-xr-x | engine/link_trade.asm | 26 | ||||
-rw-r--r-- | engine/pack.asm | 2 | ||||
-rw-r--r-- | engine/party_menu.asm | 6 | ||||
-rw-r--r-- | engine/specials.asm | 2 | ||||
-rwxr-xr-x | engine/time_capsule/conversion.asm | 2 | ||||
-rw-r--r-- | engine/timeofdaypals.asm | 2 | ||||
-rwxr-xr-x | engine/warp_connection.asm | 8 |
11 files changed, 164 insertions, 164 deletions
diff --git a/engine/color.asm b/engine/color.asm index f5d7ccf79..0bb8d2dda 100644 --- a/engine/color.asm +++ b/engine/color.asm @@ -88,20 +88,20 @@ Function8aa4: ; 8aa4 push de push bc ld hl, PalPacket_9ce6 - ld de, wcda9 + ld de, wSGBPals ld bc, PALPACKET_LENGTH call CopyBytes pop bc pop de ld a, c - ld [wcda9 + 3], a + ld [wSGBPals + 3], a ld a, b - ld [wcda9 + 4], a + ld [wSGBPals + 4], a ld a, e - ld [wcda9 + 5], a + ld [wSGBPals + 5], a ld a, d - ld [wcda9 + 6], a - ld hl, wcda9 + ld [wSGBPals + 6], a + ld hl, wSGBPals call Function9809 ld hl, BlkPacket_9a86 call Function9809 @@ -119,7 +119,7 @@ Function8ad1: ; 8ad1 Function8ade: ; 8ade SGB layout $fc ld hl, wcd9b - ld a, [wcda9] + ld a, [wSGBPals] ld e, a ld d, $0 add hl, de @@ -128,17 +128,16 @@ Function8ade: ; 8ade SGB layout $fc ld a, [de] and a ld e, $5 - jr z, .asm_8af7 + jr z, .okay dec a ld e, $a - jr z, .asm_8af7 + jr z, .okay ld e, $f - -.asm_8af7 +.okay push de - ld hl, wcda9 + 10 + ld hl, wSGBPals + 10 ld bc, $6 - ld a, [wcda9] + ld a, [wSGBPals] call AddNTimes pop de ld [hl], e @@ -204,7 +203,7 @@ Function8b4d: ; 8b4d .asm_8b5c ld de, UnknOBPals ld a, $3b - call GetAthPalletFromPalettes9df6 + call GetPredefPal jp LoadHLPaletteIntoDE ; 8b67 @@ -220,7 +219,7 @@ Function8b67: ; 8b67 .asm_8b76 ld de, UnknOBPals ld a, $3c - call GetAthPalletFromPalettes9df6 + call GetPredefPal jp LoadHLPaletteIntoDE ; 8b81 @@ -233,20 +232,20 @@ Function8b81: ; 8b81 ld a, c push af ld hl, PalPacket_9ce6 - ld de, wcda9 + ld de, wSGBPals ld bc, PALPACKET_LENGTH call CopyBytes pop af call GetMonPalettePointer_ ld a, [hli] - ld [wcda9 + 3], a + ld [wSGBPals + 3], a ld a, [hli] - ld [wcda9 + 4], a + ld [wSGBPals + 4], a ld a, [hli] - ld [wcda9 + 5], a + ld [wSGBPals + 5], a ld a, [hl] - ld [wcda9 + 6], a - ld hl, wcda9 + ld [wSGBPals + 6], a + ld hl, wSGBPals jp Function9809 .asm_8bb2 @@ -438,7 +437,7 @@ endr jr nz, .asm_8cf0 push hl ld hl, PalPacket_9ce6 - ld de, wcda9 + ld de, wSGBPals ld bc, PALPACKET_LENGTH call CopyBytes pop hl @@ -446,14 +445,14 @@ rept 2 inc hl endr ld a, [hli] - ld [wcda9 + 3], a + ld [wSGBPals + 3], a ld a, [hli] - ld [wcda9 + 4], a + ld [wSGBPals + 4], a ld a, [hli] - ld [wcda9 + 5], a + ld [wSGBPals + 5], a ld a, [hli] - ld [wcda9 + 6], a - ld hl, wcda9 + ld [wSGBPals + 6], a + ld hl, wSGBPals call Function9809 ld hl, BlkPacket_9a86 call Function9809 @@ -556,7 +555,7 @@ CopyPalettes: ; 9615 push bc ld a, [hli] push hl - call GetAthPalletFromPalettes9df6 + call GetPredefPal call LoadHLPaletteIntoDE pop hl inc hl @@ -566,7 +565,7 @@ CopyPalettes: ; 9615 ret ; 9625 -GetAthPalletFromPalettes9df6: ; 9625 +GetPredefPal: ; 9625 ld l, a ld h, $0 rept 3 ; multiply by 8 @@ -737,7 +736,7 @@ ApplyAttrMap: ; 96b3 Function96f3: ; 96f3 CGB layout $fc ld hl, wcd9b - ld a, [wcda9] + ld a, [wSGBPals] ld e, a ld d, $0 add hl, de @@ -748,7 +747,7 @@ Function96f3: ; 96f3 CGB layout $fc ld e, a hlcoord 11, 2, AttrMap ld bc, $28 - ld a, [wcda9] + ld a, [wSGBPals] .asm_970b and a jr z, .asm_9712 @@ -892,10 +891,10 @@ Function97cc: ; 97cc ld a, $90 ld [rOBPI], a ld a, $1c - call GetAthPalletFromPalettes9df6 + call GetPredefPal call Function97e5 ld a, $21 - call GetAthPalletFromPalettes9df6 + call GetPredefPal call Function97e5 ret ; 97e5 @@ -1956,15 +1955,15 @@ INCLUDE "gfx/pics/palette_pointers.asm" INCLUDE "gfx/trainers/palette_pointers.asm" ; b1de -Functionb1de: ; b1de +LoadMapPals: ; b1de callba LoadSpecialMapPalette - jr c, .asm_b230 + jr c, .got_pals ld a, [wPermission] and 7 ld e, a ld d, 0 - ld hl, Unknown_b279 + ld hl, .TilesetColorsPointers rept 2 add hl, de endr @@ -1986,8 +1985,8 @@ endr ld a, $5 ld [rSVBK], a ld hl, UnknBGPals - ld b, $8 -.asm_b210 + ld b, 8 +.outer_loop ld a, [de] push de push hl @@ -2001,37 +2000,37 @@ endr ld e, l ld d, h pop hl - ld c, 8 -.asm_b222 + ld c, 1 palettes +.inner_loop ld a, [de] inc de ld [hli], a dec c - jr nz, .asm_b222 + jr nz, .inner_loop pop de inc de dec b - jr nz, .asm_b210 + jr nz, .outer_loop pop af ld [rSVBK], a -.asm_b230 +.got_pals ld a, [TimeOfDayPal] and 3 - ld bc, $40 + ld bc, 8 palettes ld hl, MapObjectPals call AddNTimes ld de, UnknOBPals - ld bc, $40 + ld bc, 8 palettes ld a, $5 ; BANK(UnknOBPals) call FarCopyWRAM ld a, [wPermission] - cp 1 - jr z, .asm_b253 - cp 2 + cp TOWN + jr z, .outside + cp ROUTE ret nz -.asm_b253 +.outside ld a, [MapGroup] ld l, a ld h, 0 @@ -2043,19 +2042,19 @@ endr ld a, [TimeOfDayPal] and 3 cp NITE - jr c, .asm_b26d + jr c, .morn_day rept 4 inc hl endr -.asm_b26d - ld de, UnknBGPals + 8 * 6 + 2 +.morn_day + ld de, UnknBGPals + 6 palettes + 2 ld bc, 4 ld a, $5 call FarCopyWRAM ret ; b279 -Unknown_b279: ; b279 +.TilesetColorsPointers: ; b279 dw TilesetColors1 dw TilesetColors1 dw TilesetColors1 diff --git a/engine/debug.asm b/engine/debug.asm index 60eb58c00..10e446b75 100755 --- a/engine/debug.asm +++ b/engine/debug.asm @@ -542,7 +542,7 @@ Function81c33: ; 81c33 ret .asm_81c69 - ld hl, wcda9 + ld hl, wSGBPals ld a, $1 ld [hli], a ld a, $ff @@ -562,7 +562,7 @@ rept 2 ld [hli], a endr ld [hl], a - ld hl, wcda9 + ld hl, wSGBPals call Function81f0c hlcoord 10, 2 ld de, wc608 diff --git a/engine/intro_menu.asm b/engine/intro_menu.asm index ef843a801..ddc728c4f 100755 --- a/engine/intro_menu.asm +++ b/engine/intro_menu.asm @@ -685,7 +685,7 @@ OakSpeech: ; 0x5f99 ld [TrainerClass], a call Intro_PrepTrainerPic - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call Intro_RotatePalettesLeftFrontpic @@ -706,7 +706,7 @@ OakSpeech: ; 0x5f99 ld [TempMonDVs], a ld [TempMonDVs + 1], a - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call Intro_WipeInFrontpic @@ -723,7 +723,7 @@ OakSpeech: ; 0x5f99 ld [TrainerClass], a call Intro_PrepTrainerPic - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call Intro_RotatePalettesLeftFrontpic @@ -736,7 +736,7 @@ OakSpeech: ; 0x5f99 ld [CurPartySpecies], a callba DrawIntroPlayerPic - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call Intro_RotatePalettesLeftFrontpic @@ -806,7 +806,7 @@ NamePlayer: ; 0x6074 ld [CurPartySpecies], a callba DrawIntroPlayerPic - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call RotateThreePalettesLeft diff --git a/engine/link.asm b/engine/link.asm index b3d855683..c7fd9dae3 100755 --- a/engine/link.asm +++ b/engine/link.asm @@ -14,14 +14,14 @@ LinkCommunications: ; 28000 call UpdateSprites call LoadStandardFont call LoadFontsBattleExtra - callba Function16d69a + callba LinkComms_LoadPleaseWaitTextboxBorderGFX call WaitBGMap2 hlcoord 3, 8 ld b, 2 ld c, 12 ld d, h ld e, l - callba Function4d35b + callba LinkTextbox2 hlcoord 4, 10 ld de, String_PleaseWait call PlaceString @@ -38,14 +38,14 @@ LinkCommunications: ; 28000 TimeCapsule: ; 2805d call ClearLinkData call Link_PrepPartyData_Gen1 - call Function28434 + call FixDataForLinkTransfer xor a ld [wPlayerLinkAction], a call Function87d ld a, [hLinkPlayerNumber] cp $2 jr nz, .player_1 - ld c, $3 + ld c, 3 call DelayFrames xor a ld [hSerialSend], a @@ -90,7 +90,7 @@ TimeCapsule: ; 2805d ld [rIF], a ld a, $1d ld [rIE], a - call Function287ab + call Link_CopyRandomNumbers ld hl, OTPlayerName call Link_FindFirstNonControlCharacter_SkipZero push hl @@ -180,14 +180,14 @@ TimeCapsule: ; 2805d Gen2ToGen2LinkComms: ; 28177 call ClearLinkData call Link_PrepPartyData_Gen2 - call Function28434 + call FixDataForLinkTransfer call Function29dba ld a, [ScriptVar] and a jp z, Function283b2 ld a, [hLinkPlayerNumber] cp $2 - jr nz, .Player2 + jr nz, .Player1 ld c, 3 call DelayFrames xor a @@ -204,7 +204,7 @@ Gen2ToGen2LinkComms: ; 28177 ld a, $81 ld [rSC], a -.Player2 +.Player1 ld de, MUSIC_NONE call PlayMusic ld c, 3 @@ -231,20 +231,20 @@ Gen2ToGen2LinkComms: ; 28177 call Function75f ld a, [wLinkMode] cp LINK_TRADECENTER - jr nz, .asm_281fd + jr nz, .not_trading ld hl, wc9f4 ld de, wcb84 ld bc, $186 call Function283f2 -.asm_281fd +.not_trading xor a ld [rIF], a ld a, $1d ld [rIE], a ld de, MUSIC_NONE call PlayMusic - call Function287ab + call Link_CopyRandomNumbers ld hl, OTPlayerName call Link_FindFirstNonControlCharacter_SkipZero ld de, wLinkData @@ -253,17 +253,17 @@ Gen2ToGen2LinkComms: ; 28177 ld de, wPlayerTrademonSpecies ld hl, wLinkPlayerPartyMon1Species ld c, $2 -.asm_28224 +.loop1 ld a, [de] inc de and a - jr z, .asm_28224 + jr z, .loop1 cp $fd - jr z, .asm_28224 + jr z, .loop1 cp $fe - jr z, .asm_28224 + jr z, .loop1 cp $ff - jr z, .asm_28243 + jr z, .next1 push hl push bc ld b, $0 @@ -274,93 +274,92 @@ Gen2ToGen2LinkComms: ; 28177 ld [hl], a pop bc pop hl - jr .asm_28224 + jr .loop1 -.asm_28243 +.next1 ld hl, wc90f dec c - jr nz, .asm_28224 + jr nz, .loop1 ld a, [wLinkMode] cp LINK_TRADECENTER - jp nz, .asm_282fe + jp nz, .skip_mail ld hl, wcb84 -.asm_28254 +.loop2 ld a, [hli] cp $20 - jr nz, .asm_28254 -.asm_28259 + jr nz, .loop2 +.loop3 ld a, [hli] cp $fe - jr z, .asm_28259 + jr z, .loop3 cp $20 - jr z, .asm_28259 + jr z, .loop3 dec hl ld de, wcb84 - ld bc, $190 + ld bc, $190 ; 400 call CopyBytes ld hl, wcb84 - ld bc, $c6 -.asm_28272 + ld bc, $c6 ; 198 +.loop4 ld a, [hl] cp $21 - jr nz, .asm_28279 + jr nz, .okay1 ld [hl], $fe - -.asm_28279 +.okay1 inc hl dec bc ld a, b or c - jr nz, .asm_28272 + jr nz, .loop4 ld de, wcc9e -.asm_28282 +.loop5 ld a, [de] inc de cp $ff - jr z, .asm_28294 + jr z, .start_copying_mail ld hl, wcc4a dec a ld b, $0 ld c, a add hl, bc ld [hl], $fe - jr .asm_28282 + jr .loop5 -.asm_28294 +.start_copying_mail ld hl, wcb84 ld de, wc9f4 - ld b, $6 -.asm_2829c + ld b, PARTY_LENGTH +.copy_mail_loop push bc - ld bc, $21 + ld bc, MAIL_MSG_LENGTH + 1 call CopyBytes - ld a, $e + ld a, (MAIL_STRUCT_LENGTH - (MAIL_MSG_LENGTH + 1)) % $100 add e ld e, a - ld a, $0 + ld a, (MAIL_STRUCT_LENGTH - (MAIL_MSG_LENGTH + 1)) / $100 adc d ld d, a pop bc dec b - jr nz, .asm_2829c + jr nz, .copy_mail_loop ld de, wc9f4 - ld b, $6 -.asm_282b4 + ld b, PARTY_LENGTH +.copy_author_loop push bc - ld a, $21 + ld a, (MAIL_MSG_LENGTH + 1) % $100 add e ld e, a - ld a, $0 + ld a, (MAIL_MSG_LENGTH + 1) / $100 adc d ld d, a - ld bc, $e + ld bc, MAIL_STRUCT_LENGTH - (MAIL_MSG_LENGTH + 1) call CopyBytes pop bc dec b - jr nz, .asm_282b4 - ld b, $6 + jr nz, .copy_author_loop + ld b, PARTY_LENGTH ld de, wc9f4 -.asm_282cc +.fix_mail_loop push bc push de callba IsMailEuropean @@ -385,12 +384,12 @@ Gen2ToGen2LinkComms: ; 28177 ld e, l pop bc dec b - jr nz, .asm_282cc + jr nz, .fix_mail_loop ld de, wcb0e xor a ld [de], a -.asm_282fe +.skip_mail ld hl, wLinkData ld de, OTPlayerName ld bc, NAME_LENGTH @@ -416,7 +415,7 @@ Gen2ToGen2LinkComms: ; 28177 call z, DelayFrames ld a, [wLinkMode] cp LINK_COLOSSEUM - jr nz, .asm_283a9 + jr nz, .ready_to_trade ld a, CAL ld [OtherTrainerClass], a call ClearScreen @@ -463,7 +462,7 @@ Gen2ToGen2LinkComms: ; 28177 callba LoadPokemonData jp Function28b22 -.asm_283a9 +.ready_to_trade ld de, MUSIC_ROUTE_30 call PlayMusic jp InitTradeMenuDisplay @@ -488,7 +487,7 @@ Function283b2: ; 283b2 push de ld d, h ld e, l - callba Function4d35b + callba LinkTextbox2 pop de pop hl bccoord 1, 14 @@ -510,7 +509,7 @@ Function283b2: ; 283b2 Function283f2: ; 283f2 ld a, $1 ld [hFFCC], a -.asm_283f6 +.loop ld a, [hl] ld [hSerialSend], a call Function78a @@ -518,26 +517,26 @@ Function283f2: ; 283f2 ld b, a inc hl ld a, $30 -.asm_28401 +.delay_cycles dec a - jr nz, .asm_28401 + jr nz, .delay_cycles ld a, [hFFCC] and a ld a, b pop bc - jr z, .asm_28411 + jr z, .load dec hl xor a ld [hFFCC], a - jr .asm_283f6 + jr .loop -.asm_28411 +.load ld [de], a inc de dec bc ld a, b or c - jr nz, .asm_283f6 + jr nz, .loop ret ; 28419 @@ -558,15 +557,15 @@ ClearLinkData: ; 28426 ret ; 28434 -Function28434: ; 28434 +FixDataForLinkTransfer: ; 28434 ld hl, wd1f3 ld a, $fd - ld b, 7 + ld b, LinkBattleRNs - wd1f3 .loop1 ld [hli], a dec b jr nz, .loop1 - ld b, 10 + ld b, TempEnemyMonSpecies - LinkBattleRNs .loop2 call Random cp $fd @@ -579,14 +578,14 @@ Function28434: ; 28434 rept 3 ld [hli], a endr - ld b, $c8 + ld b, wc6d3 - (wMisc + 3) xor a .loop3 ld [hli], a dec b jr nz, .loop3 - ld hl, wc818 - ld de, wMisc + 10 + ld hl, wTimeCapsulePartyMon1 - 1 + 6 + ld de, wc612 lb bc, 0, 0 .loop4 inc c @@ -602,13 +601,11 @@ endr ld b, $d jr z, .got_value ld b, $27 - .got_value ld a, c cp b pop bc jr z, .done - .next2 inc hl ld a, [hl] @@ -1163,7 +1160,7 @@ Link_CopyOTData: ; 2879e ret ; 287ab -Function287ab: ; 287ab +Link_CopyRandomNumbers: ; 287ab ld a, [hLinkPlayerNumber] cp $2 ret z @@ -2161,8 +2158,8 @@ Special_EnterTimeCapsule: ; 29c7b ret ; 29c92 -Special_AbortLink: ; 29c92 - ld c, $3 +WaitForOtherPlayerToExit: ; 29c92 + ld c, 3 call DelayFrames ld a, -1 ld [hLinkPlayerNumber], a @@ -2173,7 +2170,7 @@ Special_AbortLink: ; 29c92 ld [rSC], a ld a, $81 ld [rSC], a - ld c, $3 + ld c, 3 call DelayFrames xor a ld [rSB], a @@ -2188,7 +2185,7 @@ Special_AbortLink: ; 29c92 ld [rSB], a ld [hSerialReceive], a ld [rSC], a - ld c, $3 + ld c, 3 call DelayFrames ld a, -1 ld [hLinkPlayerNumber], a @@ -2348,16 +2345,16 @@ Function29dba: ; 29dba call Function29e0c ld a, [ScriptVar] and a - jr z, .asm_29e08 + jr z, .vblank ld bc, -1 -.asm_29de0 +.wait dec bc ld a, b or c - jr nz, .asm_29de0 + jr nz, .wait ld a, [wOtherPlayerLinkMode] cp $5 - jr nz, .asm_29e03 + jr nz, .script_var ld a, $6 ld [wPlayerLinkAction], a ld hl, wcf5b @@ -2367,14 +2364,14 @@ Function29dba: ; 29dba call Function29e0c ld a, [wOtherPlayerLinkMode] cp $6 - jr z, .asm_29e08 + jr z, .vblank -.asm_29e03 +.script_var xor a ld [ScriptVar], a ret -.asm_29e08 +.vblank xor a ld [hVBlank], a ret diff --git a/engine/link_trade.asm b/engine/link_trade.asm index 590b21d41..395f1f3d3 100755 --- a/engine/link_trade.asm +++ b/engine/link_trade.asm @@ -1,7 +1,11 @@ +LinkCommsBorderGFX: +INCBIN "gfx/unknown/16cfc1.2bpp" +; 16d421 + __LoadTradeScreenBorder: ; 16d421 - ld de, GFX_16cfc1 + ld de, LinkCommsBorderGFX ld hl, VTiles2 - lb bc, BANK(GFX_16cfc1), 70 + lb bc, BANK(LinkCommsBorderGFX), 70 call Get2bpp ret ; 16d42e @@ -55,19 +59,19 @@ _LinkTextbox: ; 16d61d inc c inc c ld a, $7 -.loop +.row push bc push hl -.loop2 +.col ld [hli], a dec c - jr nz, .loop2 + jr nz, .col pop hl ld de, SCREEN_WIDTH add hl, de pop bc dec b - jr nz, .loop + jr nz, .row ret ; 16d640 @@ -82,7 +86,7 @@ _LinkTextbox: ; 16d61d pop hl ld de, SCREEN_WIDTH add hl, de -.loop3 +.loop push hl ld a, $33 ld [hli], a @@ -93,7 +97,7 @@ _LinkTextbox: ; 16d61d ld de, SCREEN_WIDTH add hl, de dec b - jr nz, .loop3 + jr nz, .loop ld a, $35 ld [hli], a @@ -133,10 +137,10 @@ _LoadTradeScreenBorder: ; 16d696 ; 16d69a -Function16d69a: ; 16d69a - ld de, GFX_16cfc1 + $300 +LinkComms_LoadPleaseWaitTextboxBorderGFX: ; 16d69a + ld de, LinkCommsBorderGFX + $30 tiles ld hl, VTiles2 tile $76 - lb bc, BANK(GFX_16cfc1), 8 + lb bc, BANK(LinkCommsBorderGFX), 8 call Get2bpp ret ; 16d6a7 diff --git a/engine/pack.asm b/engine/pack.asm index 9ed139f51..237f5f786 100644 --- a/engine/pack.asm +++ b/engine/pack.asm @@ -1537,7 +1537,7 @@ ClearPocketList: ; 10a36 (4:4a36) Pack_InitColors: ; 10a40 call WaitBGMap - ld b, SCGB_14 + ld b, SCGB_PACKPALS call GetSGBLayout call SetPalettes call DelayFrame diff --git a/engine/party_menu.asm b/engine/party_menu.asm index 18ec493af..3e1111c57 100644 --- a/engine/party_menu.asm +++ b/engine/party_menu.asm @@ -125,7 +125,7 @@ endr PlacePartyHPBar: ; 500cf xor a - ld [wcda9], a + ld [wSGBPals], a ld a, [PartyCount] and a ret z @@ -144,7 +144,7 @@ PlacePartyHPBar: ; 500cf ld b, $0 call DrawBattleHPBar ld hl, wcd9b - ld a, [wcda9] + ld a, [wSGBPals] ld c, a ld b, $0 add hl, bc @@ -153,7 +153,7 @@ PlacePartyHPBar: ; 500cf call GetSGBLayout .skip - ld hl, wcda9 + ld hl, wSGBPals inc [hl] pop hl ld de, 2 * SCREEN_WIDTH diff --git a/engine/specials.asm b/engine/specials.asm index c79ebb7d2..3db37eacc 100644 --- a/engine/specials.asm +++ b/engine/specials.asm @@ -26,7 +26,7 @@ SpecialsPointers:: ; c029 add_special Special_CheckBothSelectedSameRoom add_special Special_FailedLinkToPast add_special Special_CloseLink - add_special Special_AbortLink + add_special WaitForOtherPlayerToExit add_special Special_SetBitsForBattleRequest add_special Special_SetBitsForTimeCapsuleRequest add_special Special_CheckTimeCapsuleCompatibility diff --git a/engine/time_capsule/conversion.asm b/engine/time_capsule/conversion.asm index 634bafd3e..e2c545c48 100755 --- a/engine/time_capsule/conversion.asm +++ b/engine/time_capsule/conversion.asm @@ -384,7 +384,7 @@ Functionfb8c8: ; fb8c8 ld [TempMonDVs], a ld a, [hl] ld [TempMonDVs + 1], a - ld b, SCGB_1C + ld b, SCGB_FRONTPICPALS call GetSGBLayout call SetPalettes ret diff --git a/engine/timeofdaypals.asm b/engine/timeofdaypals.asm index c769b8c9b..4ed000af2 100644 --- a/engine/timeofdaypals.asm +++ b/engine/timeofdaypals.asm @@ -65,7 +65,7 @@ _TimeOfDayPals:: ; 8c011 ; update sgb pals - ld b, SCGB_09 + ld b, SCGB_MAPPALS call GetSGBLayout diff --git a/engine/warp_connection.asm b/engine/warp_connection.asm index 1443de6d7..26ea2c2c9 100755 --- a/engine/warp_connection.asm +++ b/engine/warp_connection.asm @@ -289,7 +289,7 @@ Function1047a3: ; 1047a3 (41:47a3) ld [hli], a dec c jr nz, .column - ld bc, $20 - SCREEN_WIDTH + ld bc, BG_MAP_WIDTH - SCREEN_WIDTH add hl, bc pop bc dec b @@ -307,11 +307,11 @@ LoadGraphics: ; 1047cf ld [hTileAnimFrame], a callba RefreshSprites call LoadFontsExtra - callba Function106594 + callba LoadOverworldFont ret LoadMapPalettes: ; 1047eb - ld b, SCGB_09 + ld b, SCGB_MAPPALS jp GetSGBLayout ; 1047f0 @@ -329,7 +329,7 @@ RefreshMapSprites: ; 1047f0 call Function2e31 .skip ld a, [wPlayerSpriteSetupFlags] - and $1c + and %00011100 ld [wPlayerSpriteSetupFlags], a ret |