aboutsummaryrefslogtreecommitdiffstats
path: root/data/events/hidden_coins.asm
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2024-05-05 10:56:08 -0400
committerGitHub <noreply@github.com>2024-05-05 09:56:08 -0500
commit5f7b444ae853d171cf9b223574f2dac5edbc03c5 (patch)
tree366a3c5874b3f370c2527addcb791b1281d0feab /data/events/hidden_coins.asm
parentFix hard-coded bank (diff)
downloadpokeyellow-5f7b444ae853d171cf9b223574f2dac5edbc03c5.tar.gz
pokeyellow-5f7b444ae853d171cf9b223574f2dac5edbc03c5.tar.xz
pokeyellow-5f7b444ae853d171cf9b223574f2dac5edbc03c5.zip
Use constant in wram for hidden item flags (#445)
Prevents defining more hidden items than the flag array has room for
Diffstat (limited to 'data/events/hidden_coins.asm')
-rw-r--r--data/events/hidden_coins.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/events/hidden_coins.asm b/data/events/hidden_coins.asm
index f2485f50..1fa5af23 100644
--- a/data/events/hidden_coins.asm
+++ b/data/events/hidden_coins.asm
@@ -3,6 +3,7 @@ MACRO hidden_coin
ENDM
HiddenCoinCoords:
+ table_width 3, HiddenCoinCoords
; map id, x, y
hidden_coin GAME_CORNER, 0, 8
hidden_coin GAME_CORNER, 1, 16
@@ -16,4 +17,5 @@ HiddenCoinCoords:
hidden_coin GAME_CORNER, 11, 7
hidden_coin GAME_CORNER, 15, 8
hidden_coin GAME_CORNER, 12, 15
+ assert_max_table_length MAX_HIDDEN_COINS
db -1 ; end