Add meaningful aliases for wd265
Introduce MONICON_* constants Introduce BATTLEPLAYERACTION_* constants
This commit is contained in:
@@ -559,7 +559,7 @@ GetDecoName:
|
||||
|
||||
.getpokename
|
||||
push bc
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetPokemonName
|
||||
pop bc
|
||||
jr .copy
|
||||
|
@@ -623,7 +623,7 @@ INCLUDE "data/items/pocket_names.asm"
|
||||
|
||||
CurItemName:
|
||||
ld a, [wCurItem]
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetItemName
|
||||
ret
|
||||
|
||||
@@ -1863,7 +1863,7 @@ Script_pokenamemem:
|
||||
jr nz, .gotit
|
||||
ld a, [wScriptVar]
|
||||
.gotit
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetPokemonName
|
||||
ld de, wStringBuffer1
|
||||
|
||||
@@ -1890,7 +1890,7 @@ Script_itemtotext:
|
||||
jr nz, .ok
|
||||
ld a, [wScriptVar]
|
||||
.ok
|
||||
ld [wd265], a
|
||||
ld [wNamedObjectIndexBuffer], a
|
||||
call GetItemName
|
||||
ld de, wStringBuffer1
|
||||
jr ConvertMemToText
|
||||
|
@@ -72,7 +72,7 @@ _GetVarAction::
|
||||
ld hl, wPokedexCaught
|
||||
ld b, wEndPokedexCaught - wPokedexCaught
|
||||
call CountSetBits
|
||||
ld a, [wd265]
|
||||
ld a, [wNumSetBits]
|
||||
jp .loadstringbuffer2
|
||||
|
||||
.CountSeenMons:
|
||||
@@ -80,7 +80,7 @@ _GetVarAction::
|
||||
ld hl, wPokedexSeen
|
||||
ld b, wEndPokedexSeen - wPokedexSeen
|
||||
call CountSetBits
|
||||
ld a, [wd265]
|
||||
ld a, [wNumSetBits]
|
||||
jp .loadstringbuffer2
|
||||
|
||||
.CountBadges:
|
||||
@@ -88,7 +88,7 @@ _GetVarAction::
|
||||
ld hl, wBadges
|
||||
ld b, 2
|
||||
call CountSetBits
|
||||
ld a, [wd265]
|
||||
ld a, [wNumSetBits]
|
||||
jp .loadstringbuffer2
|
||||
|
||||
.PlayerFacing:
|
||||
|
Reference in New Issue
Block a user