summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2017-11-30 20:27:25 +0100
committermid-kid <esteve.varela@gmail.com>2017-11-30 20:35:58 +0100
commita1fc73603e0719975cf74021b0f70e9dfdfa8ff3 (patch)
treef3d70e335330e1832a0d93c3a7ffeb568543ddc9 /engine
parent7a2a20528136b9a2452a313cd50c46a45f9a5cb0 (diff)
Label all of PARTYMENUACTION_*
It's pretty clear what it's used for. PartyMenuActionText is used for two things: 1) Storing what kind of action we're going to do (<$10) 2) Storing the text for some kind of healing stuff I'm not entirely sure (>=$f0) In the former case, if GetPartyMenuTilemapPointers is ran, it will be used to pick a sequence of actions that should be done, specified in the table, and it'll print the corresponding string using the PartyMenuStrings table. The items in the sequence of actions that should be done are in WritePartyMenuTilemap. Strangely enough, one possible value is left completely unused: PARTYMENUACTION_GIVE_MON_FEMALE. It works in the exact same way as it's male counterpart, and as such I don't believe it was used in the japanese version either, since it doesn't matter which gender your 'mon is when you put 'em in the daycare.
Diffstat (limited to 'engine')
-rwxr-xr-xengine/npctrade.asm2
-rw-r--r--engine/pack.asm2
-rwxr-xr-xengine/startmenu.asm2
-rwxr-xr-xengine/tmhm2.asm2
4 files changed, 4 insertions, 4 deletions
diff --git a/engine/npctrade.asm b/engine/npctrade.asm
index f28734ea9..01631d051 100755
--- a/engine/npctrade.asm
+++ b/engine/npctrade.asm
@@ -39,7 +39,7 @@ NPCTrade:: ; fcba8
jr c, .done
; Select givemon from party
- ld b, 6
+ ld b, PARTYMENUACTION_GIVE_MON
callba SelectTradeOrDaycareMon
ld a, TRADE_CANCEL
jr c, .done
diff --git a/engine/pack.asm b/engine/pack.asm
index 8a63d22e5..dad9a799d 100644
--- a/engine/pack.asm
+++ b/engine/pack.asm
@@ -603,7 +603,7 @@ GiveItem: ; 103fd
push af
res NO_TEXT_SCROLL, a
ld [Options], a
- ld a, $8
+ ld a, PARTYMENUACTION_GIVE_ITEM
ld [PartyMenuActionText], a
call ClearBGPalettes
callba LoadPartyMenuGFX
diff --git a/engine/startmenu.asm b/engine/startmenu.asm
index a935b8a07..32999cacb 100755
--- a/engine/startmenu.asm
+++ b/engine/startmenu.asm
@@ -745,7 +745,7 @@ SwitchPartyMons: ; 12aec
callba HoldSwitchmonIcon
callba InitPartyMenuNoCancel
- ld a, 4
+ ld a, PARTYMENUACTION_MOVE
ld [PartyMenuActionText], a
callba WritePartyMenuTilemap
callba PrintPartyMenuText
diff --git a/engine/tmhm2.asm b/engine/tmhm2.asm
index 6e32fdae8..8d19aaf81 100755
--- a/engine/tmhm2.asm
+++ b/engine/tmhm2.asm
@@ -80,7 +80,7 @@ ChooseMonToLearnTMHM_NoRefresh: ; 2c80a
callba LoadPartyMenuGFX
callba InitPartyMenuWithCancel
callba InitPartyMenuGFX
- ld a, $3 ; TeachWhichPKMNString
+ ld a, PARTYMENUACTION_TEACH_TMHM
ld [PartyMenuActionText], a
.loopback
callba WritePartyMenuTilemap