aboutsummaryrefslogtreecommitdiffstats
path: root/engine/movie/trade.asm
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-11-18 21:17:31 +0100
committerGitHub <noreply@github.com>2025-11-18 15:17:31 -0500
commitf3326786259f4e53c06b7565369add7605bea8ba (patch)
tree1e09025ed19a6403fa74c408aa195662178cc0ca /engine/movie/trade.asm
parentAdd `_vc` patch targets to `.PHONY` (diff)
downloadpokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.tar.gz
pokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.tar.xz
pokeyellow-f3326786259f4e53c06b7565369add7605bea8ba.zip
Use more hardware and graphics constants (#532)
- Use `OBJ_SIZE` and `TILE_SIZE` from hardware.inc. - `SPRITESTATEDATA1_LENGTH`, `NUM_SPRITESTATEDATA_STRUCTS` and `TILE_1BPP_SIZE` are used in some places. - Highlight an oversight in `OakSpeech` where several direct MBC bank switches are requested. - Remove redundant comments in home/overworld.asm. - Add unreferenced `FillBgMap` function to avoid a byte of dead code. - Some constants added in wram.asm. - Correctly separate the commented code in `SaveMainData`.
Diffstat (limited to 'engine/movie/trade.asm')
-rw-r--r--engine/movie/trade.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/movie/trade.asm b/engine/movie/trade.asm
index bf77f21e..292f47cd 100644
--- a/engine/movie/trade.asm
+++ b/engine/movie/trade.asm
@@ -316,7 +316,7 @@ Trade_AnimateBallEnteringLinkCable:
ld [wLinkCableAnimBulgeToggle], a
add $7e
ld hl, wShadowOAMSprite00TileID
- ld de, 4
+ ld de, OBJ_SIZE
ld c, e
.cycleLinkCableBulgeTile
ld [hl], a
@@ -602,7 +602,7 @@ Trade_AnimCircledMon:
xor $3c ; make link cable flash
ldh [rBGP], a
ld hl, wShadowOAMSprite00TileID
- ld de, $4
+ ld de, OBJ_SIZE
ld c, $14
.loop
ld a, [hl]