mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
constants for PrintNumber
This commit is contained in:
parent
87f4f4eb44
commit
56d75db28a
14 changed files with 58 additions and 53 deletions
|
|
@ -108,7 +108,7 @@ LeaguePCShowMon: ; 76610 (1d:6610)
|
|||
call PlaceString
|
||||
coord hl, 16, 15
|
||||
ld de, wHoFTeamNo
|
||||
ld bc, $0103
|
||||
lb bc, 1, 3
|
||||
call PrintNumber
|
||||
jpba HoFDisplayMonInfo
|
||||
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ PrintNumBadges: ; 5e2f (1:5e2f)
|
|||
call CountSetBits
|
||||
pop hl
|
||||
ld de, wd11e
|
||||
ld bc, $102
|
||||
lb bc, 1, 2
|
||||
jp PrintNumber
|
||||
|
||||
PrintNumOwnedMons: ; 5e42 (1:5e42)
|
||||
|
|
@ -406,17 +406,17 @@ PrintNumOwnedMons: ; 5e42 (1:5e42)
|
|||
call CountSetBits
|
||||
pop hl
|
||||
ld de, wd11e
|
||||
ld bc, $103
|
||||
lb bc, 1, 3
|
||||
jp PrintNumber
|
||||
|
||||
PrintPlayTime: ; 5e55 (1:5e55)
|
||||
ld de, W_PLAYTIMEHOURS + 1
|
||||
ld bc, $103
|
||||
lb bc, 1, 3
|
||||
call PrintNumber
|
||||
ld [hl], $6d
|
||||
inc hl
|
||||
ld de, W_PLAYTIMEMINUTES + 1
|
||||
ld bc, $8102
|
||||
lb bc, LEADING_ZEROES | 1, 2
|
||||
jp PrintNumber
|
||||
|
||||
SaveScreenInfoText: ; 5e6a (1:5e6a)
|
||||
|
|
|
|||
|
|
@ -171,14 +171,14 @@ HandlePokedexListMenu: ; 40111 (10:4111)
|
|||
call CountSetBits
|
||||
ld de,wd11e
|
||||
coord hl, 16, 3
|
||||
ld bc,$0103
|
||||
lb bc, 1, 3
|
||||
call PrintNumber ; print number of seen pokemon
|
||||
ld hl,wPokedexOwned
|
||||
ld b,wPokedexOwnedEnd - wPokedexOwned
|
||||
call CountSetBits
|
||||
ld de,wd11e
|
||||
coord hl, 16, 6
|
||||
ld bc,$0103
|
||||
lb bc, 1, 3
|
||||
call PrintNumber ; print number of owned pokemon
|
||||
coord hl, 16, 2
|
||||
ld de,PokedexSeenText
|
||||
|
|
@ -233,12 +233,12 @@ HandlePokedexListMenu: ; 40111 (10:4111)
|
|||
push af
|
||||
push de
|
||||
push hl
|
||||
ld de,-20
|
||||
ld de,-SCREEN_WIDTH
|
||||
add hl,de
|
||||
ld de,wd11e
|
||||
ld bc,$8103
|
||||
lb bc, LEADING_ZEROES | 1, 3
|
||||
call PrintNumber ; print the pokedex number
|
||||
ld de,20
|
||||
ld de,SCREEN_WIDTH
|
||||
add hl,de
|
||||
dec hl
|
||||
push hl
|
||||
|
|
@ -466,7 +466,7 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
ld a,$f2
|
||||
ld [hli],a
|
||||
ld de,wd11e
|
||||
ld bc,$8103
|
||||
lb bc, LEADING_ZEROES | 1, 3
|
||||
call PrintNumber ; print pokedex number
|
||||
ld hl,wPokedexOwned
|
||||
call IsPokemonBitSet
|
||||
|
|
@ -496,14 +496,14 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
inc de ; de = address of feet (height)
|
||||
ld a,[de] ; reads feet, but a is overwritten without being used
|
||||
coord hl, 12, 6
|
||||
ld bc,$0102
|
||||
lb bc, 1, 2
|
||||
call PrintNumber ; print feet (height)
|
||||
ld a,$60 ; feet symbol tile (one tick)
|
||||
ld [hl],a
|
||||
inc de
|
||||
inc de ; de = address of inches (height)
|
||||
coord hl, 15, 6
|
||||
ld bc,$8102
|
||||
lb bc, LEADING_ZEROES | 1, 2
|
||||
call PrintNumber ; print inches (height)
|
||||
ld a,$61 ; inches symbol tile (two ticks)
|
||||
ld [hl],a
|
||||
|
|
@ -525,7 +525,7 @@ ShowPokedexDataInternal: ; 402e2 (10:42e2)
|
|||
ld [hl],a ; store lower byte of weight in [hDexWeight + 1]
|
||||
ld de,hDexWeight
|
||||
coord hl, 11, 8
|
||||
ld bc,$0205 ; no leading zeroes, right-aligned, 2 bytes, 5 digits
|
||||
lb bc, 2, 5 ; 2 bytes, 5 digits
|
||||
call PrintNumber ; print weight
|
||||
coord hl, 14, 8
|
||||
ld a,[hDexWeight + 1]
|
||||
|
|
|
|||
|
|
@ -602,12 +602,12 @@ DrawTrainerInfo: ; 1349a (4:749a)
|
|||
call PrintBCDNumber
|
||||
coord hl, 9, 6
|
||||
ld de,W_PLAYTIMEHOURS + 1 ; hours
|
||||
ld bc,$4103
|
||||
lb bc, LEFT_ALIGN | 1, 3
|
||||
call PrintNumber
|
||||
ld [hl],$d6 ; colon tile ID
|
||||
inc hl
|
||||
ld de,W_PLAYTIMEMINUTES + 1 ; minutes
|
||||
ld bc,$8102
|
||||
lb bc, LEADING_ZEROES | 1, 2
|
||||
jp PrintNumber
|
||||
|
||||
TrainerInfo_FarCopyData: ; 1357f (4:757f)
|
||||
|
|
|
|||
|
|
@ -50,12 +50,12 @@ DrawHP_: ; 128fb (4:68fb)
|
|||
.printFraction
|
||||
add hl, bc
|
||||
ld de, wLoadedMonHP
|
||||
ld bc, $203
|
||||
lb bc, 2, 3
|
||||
call PrintNumber
|
||||
ld a, "/"
|
||||
ld [hli], a
|
||||
ld de, wLoadedMonMaxHP
|
||||
ld bc, $203
|
||||
lb bc, 2, 3
|
||||
call PrintNumber
|
||||
pop hl
|
||||
pop de
|
||||
|
|
@ -144,7 +144,7 @@ StatusScreen: ; 12953 (4:6953)
|
|||
predef IndexToPokedex
|
||||
coord hl, 3, 7
|
||||
ld de, wd11e
|
||||
ld bc, $8103 ; Zero-padded, 3
|
||||
lb bc, LEADING_ZEROES | 1, 3
|
||||
call PrintNumber ; Pokémon no.
|
||||
coord hl, 11, 10
|
||||
predef PrintMonType
|
||||
|
|
@ -162,7 +162,7 @@ StatusScreen: ; 12953 (4:6953)
|
|||
call PlaceString ; OT
|
||||
coord hl, 12, 14
|
||||
ld de, wLoadedMonOTID
|
||||
ld bc, $8205 ; 5
|
||||
lb bc, LEADING_ZEROES | 2, 5
|
||||
call PrintNumber ; ID Number
|
||||
ld d, $0
|
||||
call PrintStatsBox
|
||||
|
|
@ -270,7 +270,7 @@ PrintStatsBox: ; 12ae4 (4:6ae4)
|
|||
pop bc
|
||||
add hl, bc
|
||||
ld de, wLoadedMonAttack
|
||||
ld bc, $0203 ; three digits
|
||||
lb bc, 2, 3
|
||||
call PrintStat
|
||||
ld de, wLoadedMonDefense
|
||||
call PrintStat
|
||||
|
|
@ -367,12 +367,12 @@ StatusScreen2: ; 12b57 (4:6b57)
|
|||
ld l, e
|
||||
push hl
|
||||
ld de, wStatusScreenCurrentPP
|
||||
ld bc, $0102
|
||||
lb bc, 1, 2
|
||||
call PrintNumber
|
||||
ld a, "/"
|
||||
ld [hli], a
|
||||
ld de, wd11e
|
||||
ld bc, $0102
|
||||
lb bc, 1, 2
|
||||
call PrintNumber
|
||||
pop hl
|
||||
ld de, SCREEN_WIDTH * 2
|
||||
|
|
@ -405,12 +405,12 @@ StatusScreen2: ; 12b57 (4:6b57)
|
|||
ld [wLoadedMonLevel], a
|
||||
ld de, wLoadedMonExp
|
||||
coord hl, 12, 4
|
||||
ld bc, $0307
|
||||
lb bc, 3, 7
|
||||
call PrintNumber ; exp
|
||||
call CalcExpToLevelUp
|
||||
ld de, wLoadedMonExp
|
||||
coord hl, 7, 6
|
||||
ld bc, $0307
|
||||
lb bc, 3, 7
|
||||
call PrintNumber ; exp needed to level up
|
||||
coord hl, 9, 0
|
||||
call StatusScreen_ClearName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue