diff options
author | klektron <klektron@users.noreply.github.com> | 2020-11-14 20:21:23 +0100 |
---|---|---|
committer | klektron <klektron@users.noreply.github.com> | 2020-11-14 20:21:23 +0100 |
commit | 2e5cc09186b588ae24e7646556397869facad1d2 (patch) | |
tree | e1f4f378f73bb9479d6e1b02f642ea3b516e7d51 /engine | |
parent | 2c71373b951810d8c1fdebe423b99b5af9ab0ba8 (diff) |
changed charmap, changed weight and height info, and some dex things
Diffstat (limited to 'engine')
-rwxr-xr-x | engine/menus/pokedex.asm | 79 |
1 files changed, 40 insertions, 39 deletions
diff --git a/engine/menus/pokedex.asm b/engine/menus/pokedex.asm index 5660ecfb..81bf543b 100755 --- a/engine/menus/pokedex.asm +++ b/engine/menus/pokedex.asm @@ -360,19 +360,19 @@ DrawPokedexVerticalLine: ret PokedexSeenText: - db "SEEN@" + db "VIST@" PokedexOwnText: - db "OWN@" + db "TIEN@" PokedexContentsText: - db "CONTENTS@" + db "CONTENIDO@" PokedexMenuItemsText: - db "DATA" - next "CRY" - next "AREA" - next "QUIT@" + db "INFO" + next "GRIT" + next "ÁREA" + next "SALE@" ; tests if a pokemon's bit is set in the seen or owned pokemon bit fields ; INPUT: @@ -515,45 +515,46 @@ ShowPokedexDataInternal: jp z, .waitForButtonPress ; if the pokemon has not been owned, don't print the height, weight, or description inc de ; de = address of feet (height) ld a, [de] ; reads feet, but a is overwritten without being used - hlcoord 12, 6 - lb bc, 1, 2 + push af + coord hl, 13, 6 + lb bc, 1, 3 call PrintNumber ; print feet (height) - ld a, "′" - ld [hl], a - inc de - inc de ; de = address of inches (height) - hlcoord 15, 6 - lb bc, LEADING_ZEROES | 1, 2 - call PrintNumber ; print inches (height) - ld a, "″" - ld [hl], a -; now print the weight (note that weight is stored in tenths of pounds internally) + ld hl, $C426 + pop af + cp $a + jr nc, .func_43d7 + ld [hl], "0" +.func_43d7 + inc hl + ld a, [hli] + ldd [hl], a + ld [hl], "<DOT>" inc de inc de - inc de ; de = address of upper byte of weight + inc de ; de = address of inches (height) push de ; put weight in big-endian order at hDexWeight - ld hl, hDexWeight - ld a, [hl] ; save existing value of [hDexWeight] + ld hl,hDexWeight + ld a,[hl] ; save existing value of [hDexWeight] push af - ld a, [de] ; a = upper byte of weight - ld [hli], a ; store upper byte of weight in [hDexWeight] - ld a, [hl] ; save existing value of [hDexWeight + 1] + ld a,[de] ; a = upper byte of weight + ld [hli],a ; store upper byte of weight in [hDexWeight] + ld a,[hl] ; save existing value of [hDexWeight + 1] push af dec de - ld a, [de] ; a = lower byte of weight - ld [hl], a ; store lower byte of weight in [hDexWeight + 1] - ld de, hDexWeight - hlcoord 11, 8 - lb bc, 2, 5 ; 2 bytes, 5 digits + ld a,[de] ; a = lower byte of weight + ld [hl],a ; store lower byte of weight in [hDexWeight + 1] + ld de,hDexWeight + coord hl, 12, 8 + lb bc, 2, 4 ; 2 bytes, 4 digits call PrintNumber ; print weight - hlcoord 14, 8 - ldh a, [hDexWeight + 1] - sub 10 - ldh a, [hDexWeight] - sbc 0 - jr nc, .next - ld [hl], "0" ; if the weight is less than 10, put a 0 before the decimal point + coord hl, 14, 8 + ld a,[hDexWeight + 1] + sub a,10 + ld a,[hDexWeight] + sbc a,0 + jr nc,.next + ld [hl],"0" ; if the weight is less than 10, put a 0 before the decimal point .next inc hl ld a, [hli] @@ -590,8 +591,8 @@ ShowPokedexDataInternal: ret HeightWeightText: - db "HT ?′??″" - next "WT ???lb@" + db "AL ???<m>" + next "PE ???<k><g>@" ; XXX does anything point to this? PokeText: |