diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-28 13:35:26 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-28 14:39:52 -0400 |
| commit | b47bfbd813cc7981ff3b99baa7913933f28d67b9 (patch) | |
| tree | 0fea9afdc675ac7381e661f6fd344c55dcb32374 /engine/events | |
| parent | 9483cf47dd62d3c513dade49747e868f49f0e374 (diff) | |
Identify more WRAM labels, and start a <X>_DummyFunction label convention
Diffstat (limited to 'engine/events')
| -rw-r--r-- | engine/events/field_moves.asm | 2 | ||||
| -rw-r--r-- | engine/events/npc_trade.asm | 9 | ||||
| -rw-r--r-- | engine/events/print_unown_2.asm | 12 | ||||
| -rw-r--r-- | engine/events/specials.asm | 4 |
4 files changed, 14 insertions, 13 deletions
diff --git a/engine/events/field_moves.asm b/engine/events/field_moves.asm index 39c92b2e..8085084f 100644 --- a/engine/events/field_moves.asm +++ b/engine/events/field_moves.asm @@ -421,7 +421,7 @@ FlyFunction_FrameTimer: ret .SpawnLeaf: - ld hl, wce65 + ld hl, wFrameCounter2 ld a, [hl] inc [hl] and $7 diff --git a/engine/events/npc_trade.asm b/engine/events/npc_trade.asm index d4e450c2..94773f2f 100644 --- a/engine/events/npc_trade.asm +++ b/engine/events/npc_trade.asm @@ -56,11 +56,12 @@ NPCTrade:: call DisableSpriteUpdates ld a, [wJumptableIndex] push af - ld a, [wce64] + ; wTradeDialog aliases wFrameCounter, which TradeAnimation uses + ld a, [wTradeDialog] push af predef TradeAnimation pop af - ld [wce64], a + ld [wTradeDialog], a pop af ld [wJumptableIndex], a call ReturnToMapWithSpeechTextbox @@ -107,7 +108,7 @@ Trade_GetDialog: ld e, NPCTRADE_DIALOG call GetTradeAttribute ld a, [hl] - ld [wce64], a + ld [wTradeDialog], a ret DoNPCTrade: @@ -366,7 +367,7 @@ PrintTradeText: rept 6 add hl, de endr - ld a, [wce64] + ld a, [wTradeDialog] ld e, a add hl, de add hl, de diff --git a/engine/events/print_unown_2.asm b/engine/events/print_unown_2.asm index 9c4d1d85..cc441e2d 100644 --- a/engine/events/print_unown_2.asm +++ b/engine/events/print_unown_2.asm @@ -9,7 +9,7 @@ RotateUnownFrontpic: push bc push hl push bc - ld de, wceed + ld de, wPrintedUnownTileSource call .Copy call .Rotate ld hl, UnownPrinter_GBPrinterRectangle @@ -19,10 +19,10 @@ RotateUnownFrontpic: ld a, [hli] ld e, a ld d, [hl] - ld hl, wcefd + ld hl, wPrintedUnownTileDest call .Copy pop hl - ld bc, $10 + ld bc, LEN_2BPP_TILE add hl, bc pop bc inc c @@ -44,7 +44,7 @@ RotateUnownFrontpic: ret .Copy: - ld c, $10 + ld c, LEN_2BPP_TILE .loop_copy ld a, [hli] ld [de], a @@ -54,12 +54,12 @@ RotateUnownFrontpic: ret .Rotate: - ld hl, wcefd + ld hl, wPrintedUnownTileDest ld e, %10000000 ld d, 8 .loop_decompress push hl - ld hl, wceed + ld hl, wPrintedUnownTileSource call .CountSetBit pop hl ld a, b diff --git a/engine/events/specials.asm b/engine/events/specials.asm index 5c26daa7..0b3e3560 100644 --- a/engine/events/specials.asm +++ b/engine/events/specials.asm @@ -15,7 +15,7 @@ Special:: INCLUDE "data/events/special_pointers.asm" -DummySpecial_c389: +UnusedDummySpecial: ret GameCornerPrizeMonCheckDex: @@ -205,7 +205,7 @@ CardFlip: call StartGameCornerGame ret -DummyNonfunctionalGameCornerGame: +UnusedDummyGame: call CheckCoinsAndCoinCase ret c ld a, BANK(_DummyGame) |
