summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChikorita Lover <cjgardels@gmail.com>2021-09-11 20:55:00 -0500
committerChikorita Lover <cjgardels@gmail.com>2021-09-11 20:55:00 -0500
commit5ae3ccf19c6e37e44f086a2a2966cb6afc13fcce (patch)
tree6307ec079600e1532c78e7fa171b515414730d34
parent346a94952fae0f4052f10981a32690386fffda85 (diff)
Add diff for showing dex number on stats screen
-rw-r--r--Custom-order-for-the-Old-Pokédex-mode.md28
1 files changed, 27 insertions, 1 deletions
diff --git a/Custom-order-for-the-Old-Pokédex-mode.md b/Custom-order-for-the-Old-Pokédex-mode.md
index 69ffd2d..44197d7 100644
--- a/Custom-order-for-the-Old-Pokédex-mode.md
+++ b/Custom-order-for-the-Old-Pokédex-mode.md
@@ -164,4 +164,30 @@ Edit [pokedex_2.asm](../blob/master/engine/pokedex/pokedex_2.asm):
call PrintNum
```
-Build and test! All Pokemon will now show a correct Pokedex number corresponding to dex_order_old.asm! \ No newline at end of file
+Build and test! All Pokemon will now show a correct Pokedex number corresponding to dex_order_old.asm!
+
+If you want the number to also be reflected on the Pokémon's stats page, make the following changes to [engine/pokemon/stats_screen.asm](../blob/master/engine/pokemon/stats_screen.asm):
+
+```diff
+…
+StatsScreen_InitUpperHalf:
+ call .PlaceHPBar
+ xor a
+ ldh [hBGMapMode], a
+ ld a, [wBaseDexNo]
+ ld [wTextDecimalByte], a
+ ld [wCurSpecies], a
+ hlcoord 8, 0
+ ld [hl], "№"
+ inc hl
+ ld [hl], "."
+ inc hl
+- hlcoord 10, 0
++ farcall Pokedex_GetDexNumber
+ lb bc, PRINTNUM_LEADINGZEROS | 1, 3
+- ld de, wTextDecimalByte
++ ld de, wUnusedBCDNumber
++ hlcoord 10, 0
+ call PrintNum
+…
+``` \ No newline at end of file