summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2022-03-07 01:13:27 -0400
committerIdain <luiscarlosholguinperez@outlook.com>2022-03-07 01:13:27 -0400
commit604a459d3db84c377ffb25b27ab2ed800d96a6b9 (patch)
tree473f41442bcfdf7cb6946005062456e615c9fe58
parentfbca38dcc38e031779210a6b3a5994260e9a4a7b (diff)
Add table_width and assert_table_length macros
-rw-r--r--Add-a-new-party-menu-icon.md4
1 files changed, 4 insertions, 0 deletions
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!