From 604a459d3db84c377ffb25b27ab2ed800d96a6b9 Mon Sep 17 00:00:00 2001 From: Idain Date: Mon, 7 Mar 2022 01:13:27 -0400 Subject: Add table_width and assert_table_length macros --- Add-a-new-party-menu-icon.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Add-a-new-party-menu-icon.md b/Add-a-new-party-menu-icon.md index 01bd279..ceffe38 100644 --- a/Add-a-new-party-menu-icon.md +++ b/Add-a-new-party-menu-icon.md @@ -43,11 +43,13 @@ Edit [data/icon_pointers.asm](../blob/master/data/icon_pointers.asm): ```diff IconPointers: ; entries correspond to ICON_* constants + table_width 2, IconPointers dw NullIcon dw PoliwagIcon ... dw BigmonIcon + dw CelebiIcon + assert_table_length NUM_ICONS + 1 ``` And edit [gfx/icons.asm](../blob/master/gfx/icons.asm): @@ -68,9 +70,11 @@ Edit [data/pokemon/menu_icons.asm](../blob/master/data/pokemon/menu_icons.asm): ```diff MonMenuIcons: + table_width 1, MonMenuIcons ... - db ICON_HUMANSHAPE ; CELEBI + db ICON_CELEBI ; CELEBI + assert_table_length NUM_POKEMON ``` That's all! -- cgit v1.2.3