You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Add meaningful aliases for wd265
Introduce MONICON_* constants Introduce BATTLEPLAYERACTION_* constants
This commit is contained in:
@@ -23,7 +23,7 @@ GetName::
|
||||
jr nz, .NotPokeName
|
||||
|
||||
ld a, [wCurSpecies]
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetPokemonName
|
||||
ld hl, MON_NAME_LENGTH
|
||||
add hl, de
|
||||
@@ -110,7 +110,7 @@ GetBasePokemonName::
|
||||
ret
|
||||
|
||||
GetPokemonName::
|
||||
; Get Pokemon name wd265.
|
||||
; Get Pokemon name for wNamedObjectIndexBuffer.
|
||||
|
||||
ld a, [hROMBank]
|
||||
push af
|
||||
@@ -119,7 +119,7 @@ GetPokemonName::
|
||||
rst Bankswitch
|
||||
|
||||
; Each name is ten characters
|
||||
ld a, [wd265]
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
dec a
|
||||
ld d, 0
|
||||
ld e, a
|
||||
@@ -147,11 +147,11 @@ GetPokemonName::
|
||||
ret
|
||||
|
||||
GetItemName::
|
||||
; Get item name wd265.
|
||||
; Get item name for wNamedObjectIndexBuffer.
|
||||
|
||||
push hl
|
||||
push bc
|
||||
ld a, [wd265]
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
|
||||
cp TM01
|
||||
jr nc, .TM
|
||||
@@ -170,12 +170,12 @@ GetItemName::
|
||||
ret
|
||||
|
||||
GetTMHMName::
|
||||
; Get TM/HM name by item id wd265.
|
||||
; Get TM/HM name for item wNamedObjectIndexBuffer.
|
||||
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
ld a, [wd265]
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
push af
|
||||
|
||||
; TM/HM prefix
|
||||
@@ -197,7 +197,7 @@ GetTMHMName::
|
||||
|
||||
; TM/HM number
|
||||
push de
|
||||
ld a, [wd265]
|
||||
ld a, [wNamedObjectIndexBuffer]
|
||||
ld c, a
|
||||
callfar GetTMHMNumber
|
||||
pop de
|
||||
@@ -235,7 +235,7 @@ GetTMHMName::
|
||||
ld [de], a
|
||||
|
||||
pop af
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
pop bc
|
||||
pop de
|
||||
pop hl
|
||||
|
@@ -22,7 +22,7 @@ PrintLevel_Force3Digits::
|
||||
ld c, 3
|
||||
|
||||
Print8BitNumRightAlign::
|
||||
ld [wd265], a
|
||||
ld de, wd265
|
||||
ld [wDeciramBuffer], a
|
||||
ld de, wDeciramBuffer
|
||||
ld b, PRINTNUM_RIGHTALIGN | 1
|
||||
jp PrintNum
|
||||
|
Reference in New Issue
Block a user