diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-06-12 21:26:59 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-06-12 21:26:59 -0400 |
commit | 2995cb964cf4f5dcce2b7e851154529bcc4cfc3a (patch) | |
tree | 46b17ae2c12d056bd5b462abca00646fdff43264 | |
parent | 9c2e5a35b64f89503dc75decfab4ac13ba98809c (diff) |
Optimize
-rw-r--r-- | Add-a-new-party-menu-icon.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Add-a-new-party-menu-icon.md b/Add-a-new-party-menu-icon.md index 5203055..00001b6 100644 --- a/Add-a-new-party-menu-icon.md +++ b/Add-a-new-party-menu-icon.md @@ -121,7 +121,6 @@ Edit [gfx/icons.asm](../blob/master/gfx/icons.asm): One section, "Mon Icons 1", contains icons #1 to #128. The next, "Mon Icons 2", contains #129 to #251 and Egg. When you run `make` they'll automatically be placed in banks that fit. Make sure the species are separated in order, so that we can tell which section a Pokémon's icon belongs in just by whether its species is greater than 128. - Now edit [engine/gfx/mon_icons.asm](../blob/master/engine/gfx/mon_icons.asm): ```diff @@ -160,10 +159,10 @@ Now edit [engine/gfx/mon_icons.asm](../blob/master/engine/gfx/mon_icons.asm): ; 8ea3f + +GetIconBank: -+ cp MAGIKARP ; lowest species in "Mon Icons 2" + lb bc, BANK(Icons1), 8 ++ cp MAGIKARP ; lowest species in "Mon Icons 2" + ret c -+ lb bc, BANK(Icons2), 8 ++ ld b, BANK(Icons2) + ret ``` |