Clean up party menu messageIDs

This commit is contained in:
CharlesFolz4 2026-03-19 18:07:36 -04:00
parent 2330f52807
commit 8ea427f09b
4 changed files with 188 additions and 188 deletions

View File

@ -122,23 +122,23 @@
"en_US": "Choose a Pokémon."
},
{
"id": "pl_msg_00000453_00030",
"id": "PartyMenu_MoveToWhere",
"en_US": "Move to where?"
},
{
"id": "pl_msg_00000453_00031",
"id": "Partymenu_Text_GiveToWhichMon",
"en_US": "Give to which Pokémon?"
},
{
"id": "pl_msg_00000453_00032",
"id": "Partymenu_Text_UseOnWhichMon",
"en_US": "Use on which Pokémon?"
},
{
"id": "pl_msg_00000453_00033",
"id": "Partymenu_Text_TeachWhichMon",
"en_US": "Teach which Pokémon?"
},
{
"id": "pl_msg_00000453_00034",
"id": "Partymenu_Text_ChooseMonAndConfirm",
"en_US": "Choose Pokémon and confirm."
},
{
@ -146,7 +146,7 @@
"garbage": 13
},
{
"id": "pl_msg_00000453_00036",
"id": "PartyMenu_Text_UseOnWhichPokemon",
"en_US": "Use on which Pokémon?"
},
{
@ -157,28 +157,28 @@
]
},
{
"id": "pl_msg_00000453_00038",
"id": "PartyMenu_Text_DoWhatWithAnItem",
"en_US": [
"Do what with\n",
"an item?"
]
},
{
"id": "pl_msg_00000453_00039",
"id": "PartyMenu_Text_DoWhatWithMail",
"en_US": [
"Do what with\n",
"the Mail?"
]
},
{
"id": "pl_msg_00000453_00040",
"id": "PartyMenu_Text_RestoreWhichMove",
"en_US": [
"Restore\n",
"which move?"
]
},
{
"id": "pl_msg_00000453_00041",
"id": "PartyMenu_Text_BoostPPOfWhichMove",
"en_US": [
"Boost the PP\n",
"of which move?"
@ -192,7 +192,7 @@
]
},
{
"id": "pl_msg_00000453_00043",
"id": "PartyMenu_Text_SendMailToPC",
"en_US": [
"Send the removed Mail to\n",
"your PC?"
@ -207,11 +207,11 @@
"en_US": "No"
},
{
"id": "pl_msg_00000453_00046",
"id": "PartyMenu_Text_MailWasSentToYourPC",
"en_US": "The Mail was sent to your PC."
},
{
"id": "pl_msg_00000453_00047",
"id": "PartyMenu_Text_IfmailIsRemovedMessageWillBeLostConfirm",
"en_US": [
"If the Mail is removed, its written\n",
"message will be lost. Is that OK?"
@ -226,18 +226,18 @@
"en_US": "No"
},
{
"id": "pl_msg_00000453_00050",
"id": "PartyMenu_Text_MailboxIsFull",
"en_US": "Your PCs Mailbox is full."
},
{
"id": "pl_msg_00000453_00051",
"id": "PartyMenu_Text_MailWasTakenFromMon",
"en_US": [
"Mail was taken from the\n",
"Pokémon."
]
},
{
"id": "pl_msg_00000453_00052",
"id": "PartyMenu_Text_MonWantsToLearnMove",
"en_US": [
"{STRVAR_1 1, 0, 0} wants to learn the\n",
"move {STRVAR_1 6, 1, 0}.\r",
@ -256,7 +256,7 @@
"en_US": "No"
},
{
"id": "pl_msg_00000453_00055",
"id": "PartyMenu_Text_StopTryingToTeachMove",
"en_US": [
"Stop trying to teach\n",
"{STRVAR_1 6, 1, 0}?"
@ -271,21 +271,21 @@
"en_US": "No"
},
{
"id": "pl_msg_00000453_00058",
"id": "PartyMenu_Text_MonDidNotLearnMove",
"en_US": [
"{STRVAR_1 1, 0, 0} did not learn the\n",
"move {STRVAR_1 6, 1, 0}."
]
},
{
"id": "pl_msg_00000453_00059",
"id": "PartyMenu_Text_WhichMoveShouldBeForgotten",
"en_US": [
"Which move should be\n",
"forgotten?"
]
},
{
"id": "pl_msg_00000453_00060",
"id": "PartyMenu_Text_MonForgotMove",
"en_US": [
"1, {PAUSE 20}2, and{PAUSE 20}... {PAUSE 20}... {PAUSE 20}... Poof!{WAIT 3}{WAIT 5}\r",
"{STRVAR_1 1, 0, 0} forgot how to\n",
@ -294,14 +294,14 @@
]
},
{
"id": "pl_msg_00000453_00061",
"id": "PartyMenu_Text_MonLearnedMove",
"en_US": [
"{STRVAR_1 1, 0, 0} learned\n",
"{STRVAR_1 6, 1, 0}!{WAIT 4}{WAIT 2}"
]
},
{
"id": "pl_msg_00000453_00062",
"id": "PartyMenu_Text_MonAndMoveAreNotCompatible",
"en_US": [
"{STRVAR_1 1, 0, 0} and {STRVAR_1 6, 1, 0}\n",
"are not compatible.\r",
@ -309,49 +309,49 @@
]
},
{
"id": "pl_msg_00000453_00063",
"id": "PartyMenu_Text_MonAlreadyKnowsMove",
"en_US": [
"{STRVAR_1 1, 0, 0} already knows\n",
"{STRVAR_1 6, 1, 0}."
]
},
{
"id": "pl_msg_00000453_00064",
"id": "PartyMenu_Text_MonsHPWasRestored",
"en_US": [
"{STRVAR_1 1, 0, 0}s HP was restored\n",
"by {STRVAR_1 52, 1, 0} point(s)."
]
},
{
"id": "pl_msg_00000453_00065",
"id": "PartyMenu_Text_MonWasCuredOfPoison",
"en_US": [
"{STRVAR_1 1, 0, 0} was cured of its\n",
"poisoning."
]
},
{
"id": "pl_msg_00000453_00066",
"id": "PartyMenu_Text_MonWasCuredOfParalysis",
"en_US": [
"{STRVAR_1 1, 0, 0} was cured of\n",
"paralysis."
]
},
{
"id": "pl_msg_00000453_00067",
"id": "PartyMenu_Text_MonsBurnWasHealed",
"en_US": [
"{STRVAR_1 1, 0, 0}s\n",
"burn was healed."
]
},
{
"id": "pl_msg_00000453_00068",
"id": "PartyMenu_Text_MonWasThawedOut",
"en_US": [
"{STRVAR_1 1, 0, 0} was\n",
"thawed out."
]
},
{
"id": "pl_msg_00000453_00069",
"id": "PartyMenu_Text_PPWasRestored",
"en_US": "PP was restored."
},
{
@ -362,56 +362,56 @@
]
},
{
"id": "pl_msg_00000453_00071",
"id": "PartyMenu_Text_MonBecameHealthy",
"en_US": [
"{STRVAR_1 1, 0, 0}\n",
"became healthy."
]
},
{
"id": "pl_msg_00000453_00072",
"id": "PartyMenu_Text_MovesPPIncreased",
"en_US": [
"{STRVAR_1 6, 0, 0}s PP\n",
"increased."
]
},
{
"id": "pl_msg_00000453_00073",
"id": "PartyMenu_Text_MonSnappedOutOfConfusion",
"en_US": [
"{STRVAR_1 1, 0, 0} snapped out of its\n",
"confusion."
]
},
{
"id": "pl_msg_00000453_00074",
"id": "PartyMenu_Text_MonGotOverInfatuation",
"en_US": [
"{STRVAR_1 1, 0, 0} got over its\n",
"infatuation."
]
},
{
"id": "pl_msg_00000453_00075",
"id": "PartyMenu_Text_MonBaseStatRose",
"en_US": [
"{STRVAR_1 1, 0, 0}s base {STRVAR_1 13, 1, 0}\n",
"rose!"
]
},
{
"id": "pl_msg_00000453_00076",
"id": "PartyMenu_Text_CantBeUsedUntilBadgeIsObtained",
"en_US": [
"This cant be used until a new\n",
"Badge is obtained."
]
},
{
"id": "pl_msg_00000453_00077",
"id": "PartyMenu_Text_MustRemoveMail",
"en_US": [
"Must remove Mail before the\n",
"Pokémon is allowed to hold an item."
]
},
{
"id": "pl_msg_00000453_00078",
"id": "PartyMenu_Text_MonAlreadyHoldingItemsSwitchItems",
"en_US": [
"{STRVAR_1 1, 0, 0} is already holding\n",
"{STRVAR_1 8, 1, 0}.\r",
@ -428,25 +428,25 @@
"en_US": "No"
},
{
"id": "pl_msg_00000453_00081",
"id": "PartyMenu_Text_MonIsntHoldingAnything",
"en_US": [
"{STRVAR_1 1, 0, 0} isnt holding\n",
"anything."
]
},
{
"id": "pl_msg_00000453_00082",
"id": "PartyMenu_Text_ReceivedItemFromMon",
"en_US": [
"Received the {STRVAR_1 8, 1, 0}\n",
"from {STRVAR_1 1, 0, 0}."
]
},
{
"id": "pl_msg_00000453_00083",
"id": "PartyMenu_Text_BagIsFull",
"en_US": "The Bag is full."
},
{
"id": "pl_msg_00000453_00084",
"id": "PartyMenu_Text_ItemWasTakenAndReplacedWithItem",
"en_US": [
"The {STRVAR_1 8, 1, 0} was taken and\n",
"replaced with the {STRVAR_1 8, 2, 0}."
@ -477,7 +477,7 @@
"garbage": 3
},
{
"id": "pl_msg_00000453_00091",
"id": "PartyMenu_Text_MonWokeUp",
"en_US": [
"{STRVAR_1 1, 0, 0}\n",
"woke up."
@ -516,7 +516,7 @@
"garbage": 16
},
{
"id": "pl_msg_00000453_00100",
"id": "PartyMenu_Text_NoMoreThanTwoMon",
"en_US": [
"No more than two Pokémon\n",
"may enter."
@ -527,7 +527,7 @@
"garbage": 10
},
{
"id": "pl_msg_00000453_00102",
"id": "PartyMenu_Text_YoureAlreadySurfing",
"en_US": "Youre already surfing."
},
{
@ -535,11 +535,11 @@
"garbage": 13
},
{
"id": "pl_msg_00000453_00104",
"id": "PartyMenu_Text_CantUseThatHere",
"en_US": "You cant use that here."
},
{
"id": "pl_msg_00000453_00105",
"id": "Partymenu_Text_ItWontHaveAnyEffect",
"en_US": "It wont have any effect."
},
{
@ -547,7 +547,7 @@
"garbage": 14
},
{
"id": "pl_msg_00000453_00107",
"id": "Partymenu_Text_TwoMonAreNeeded",
"en_US": "Two Pokémon are needed."
},
{
@ -559,7 +559,7 @@
"garbage": 15
},
{
"id": "pl_msg_00000453_00110",
"id": "PartyMenu_Text_MonBecameMoreFriendly",
"en_US": [
"{STRVAR_1 1, 0, 0} became more friendly.\r",
"However, its base {STRVAR_1 13, 1, 0} fell!"
@ -606,80 +606,80 @@
]
},
{
"id": "pl_msg_00000453_00118",
"id": "PartyMenu_Text_MonWasGivenItem",
"en_US": [
"{STRVAR_1 1, 0, 0} was given the\n",
"{STRVAR_1 8, 1, 0} to hold."
]
},
{
"id": "pl_msg_00000453_00119",
"id": "Partymenu_Text_ThreeMonAreNeeded",
"en_US": "Three Pokémon are needed."
},
{
"id": "pl_msg_00000453_00120",
"id": "Partymenu_Text_FourMonAreNeeded",
"en_US": "Four Pokémon are needed."
},
{
"id": "pl_msg_00000453_00121",
"id": "Partymenu_Text_FiveMonAreNeeded",
"en_US": "Five Pokémon are needed."
},
{
"id": "pl_msg_00000453_00122",
"id": "Partymenu_Text_SixMonAreNeeded",
"en_US": "Six Pokémon are needed."
},
{
"id": "pl_msg_00000453_00123",
"id": "PartyMenu_Text_NoMoreThanOneMon",
"en_US": [
"No more than one Pokémon\n",
"may enter."
]
},
{
"id": "pl_msg_00000453_00124",
"id": "PartyMenu_Text_NoMoreThanThreeMon",
"en_US": [
"No more than three Pokémon\n",
"may enter."
]
},
{
"id": "pl_msg_00000453_00125",
"id": "PartyMenu_Text_NoMoreThanFourMon",
"en_US": [
"No more than four Pokémon\n",
"may enter."
]
},
{
"id": "pl_msg_00000453_00126",
"id": "PartyMenu_Text_NoMoreThanFiveMon",
"en_US": [
"No more than five Pokémon\n",
"may enter."
]
},
{
"id": "pl_msg_00000453_00127",
"id": "PartyMenu_Text_MailWasTransferredFromMailbox",
"en_US": [
"Mail was transferred from\n",
"the Mailbox."
]
},
{
"id": "pl_msg_00000453_00128",
"id": "PartyMenu_Text_MonHoldingItemCannotHoldMail",
"en_US": [
"This Pokémon is holding an item.\n",
"It cannot hold Mail."
]
},
{
"id": "pl_msg_00000453_00129",
"id": "PartyMenu_Text_BallCapsuleWasSet",
"en_US": "The Ball Capsule was set."
},
{
"id": "pl_msg_00000453_00130",
"id": "PartyMenu_Text_TwoCapsulsesCantBeSet",
"en_US": "Two capsules cant be set."
},
{
"id": "pl_msg_00000453_00131",
"id": "PartyMenu_Text_ThisCantBeUsedOnThatPokemon",
"en_US": [
"This cant be used on\n",
"that Pokémon."
@ -710,7 +710,7 @@
"garbage": 3
},
{
"id": "pl_msg_00000453_00138",
"id": "PartyMenu_Text_NotEnoughHP",
"en_US": "Not enough HP..."
},
{
@ -806,19 +806,19 @@
"en_US": "TAKE"
},
{
"id": "pl_msg_00000453_00162",
"id": "PartyMenu_Text_MoveSlot0",
"en_US": "{STRVAR_1 6, 0, 0}"
},
{
"id": "pl_msg_00000453_00163",
"id": "PartyMenu_Text_MoveSlot1",
"en_US": "{STRVAR_1 6, 0, 0}"
},
{
"id": "pl_msg_00000453_00164",
"id": "PartyMenu_Text_MoveSlot2",
"en_US": "{STRVAR_1 6, 0, 0}"
},
{
"id": "pl_msg_00000453_00165",
"id": "PartyMenu_Text_MoveSlot3",
"en_US": "{STRVAR_1 6, 0, 0}"
},
{
@ -886,18 +886,18 @@
"en_US": "UNABLE!"
},
{
"id": "pl_msg_00000453_00182",
"id": "PartyMenu_Text_IdenticalMonNotPermitted",
"en_US": "Identical Pokémon are not permitted."
},
{
"id": "pl_msg_00000453_00183",
"id": "PartyMenu_Text_SomeMonHoldingIdenticalItems",
"en_US": [
"Some Pokémon are holding identical\n",
"items."
]
},
{
"id": "pl_msg_00000453_00184",
"id": "PartyMenu_Text_TotalPartyLevelOverLimit",
"en_US": [
"The total of all party members\n",
"levels has gone over {STRVAR_1 52, 0, 0}."
@ -950,21 +950,21 @@
]
},
{
"id": "pl_msg_00000453_00195",
"id": "PartyMenu_Text_BallCapsuleWillBeDetached",
"en_US": [
"The Ball Capsule will be detached.\n",
"Will that be OK?"
]
},
{
"id": "pl_msg_00000453_00196",
"id": "PartyMenu_Text_CantUseWhenYouHaveSomeoneWithYou",
"en_US": [
"You cant use that when you have\n",
"someone with you."
]
},
{
"id": "pl_msg_00000453_00197",
"id": "Partymenu_Text_SelectEgg",
"en_US": "Please select an Egg."
},
{
@ -983,7 +983,7 @@
"en_US": "CONFIRM"
},
{
"id": "pl_msg_00000453_00201",
"id": "PartyMenu_Text_MustUseSameKindOfMon",
"en_US": [
"You must use the same kind\n",
"of Pokémon."
@ -994,14 +994,14 @@
"en_US": "{STRVAR_1 0, 0, 0} changed Forme!"
},
{
"id": "pl_msg_00000453_00203",
"id": "PartyMenu_Text_MonCannotHoldItem",
"en_US": [
"{STRVAR_1 1, 0, 0} cannot hold\n",
"{STRVAR_1 8, 1, 0}!"
]
},
{
"id": "pl_msg_00000453_00204",
"id": "PartyMenu_Text_ItemCannotBeGivenHere",
"en_US": [
"The {STRVAR_1 8, 0, 0} cannot be\n",
"given here.\n"

View File

@ -300,27 +300,27 @@ static BOOL PartyMenu_Init(ApplicationManager *appMan, int *state)
if (application->partyMenu->mode == PARTY_MENU_MODE_USE_ITEM || application->partyMenu->mode == PARTY_MENU_MODE_USE_EVO_ITEM) {
if (CheckItemSacredAsh(application->partyMenu->usedItemID) == FALSE) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00032, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_UseOnWhichMon, TRUE);
}
} else if (application->partyMenu->mode == PARTY_MENU_MODE_TEACH_MOVE) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00033, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_TeachWhichMon, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_GIVE_ITEM || application->partyMenu->mode == PARTY_MENU_MODE_MAILBOX) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00031, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_GiveToWhichMon, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_TEACH_MOVE_DONE
|| application->partyMenu->mode == PARTY_MENU_MODE_LEVEL_MOVE_DONE
|| application->partyMenu->mode == PARTY_MENU_MODE_GIVE_MAIL
|| application->partyMenu->mode == PARTY_MENU_MODE_GIVE_MAIL_DONE) {
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_SELECT_CONFIRM || application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_TOWER) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_BALL_SEAL) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_HALL) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_CASTLE) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_SELECT_EGG) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00197, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_SelectEgg, TRUE);
} else if (application->partyMenu->mode != PARTY_MENU_MODE_GIVE_ITEM_DONE) {
PartyMenu_PrintShortMessage(application, PartyMenu_Text_ChooseAPokemon, TRUE);
} else {
@ -603,7 +603,7 @@ static int sub_0207E634(PartyMenuApplication *application)
static int sub_0207E6C0(PartyMenuApplication *application)
{
if (Text_IsPrinterActive(application->textPrinterID) == 0) {
if (Text_IsPrinterActive(application->textPrinterID) == FALSE) {
return application->unk_B0E;
}
@ -651,7 +651,7 @@ static int sub_0207E750(PartyMenuApplication *application)
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
application->partyMenu->menuSelectionResult = PARTY_MENU_EXIT_CODE_DONE;
application->unk_B0E = PARTY_MENU_STATE_25;
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00105, application->tmpString);
MessageLoader_GetString(application->messageLoader, Partymenu_Text_ItWontHaveAnyEffect, application->tmpString);
return PARTY_MENU_STATE_24;
}
} else if (v0 == 3) {
@ -2127,19 +2127,19 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
if (application->partyMenu->selectionOrder[v0] == 0) {
switch (application->partyMenu->maxSelectionSlots) {
case 2:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00107, TRUE);
PartyMenu_PrintLongMessage(application, Partymenu_Text_TwoMonAreNeeded, TRUE);
break;
case 3:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00119, TRUE);
PartyMenu_PrintLongMessage(application, Partymenu_Text_ThreeMonAreNeeded, TRUE);
break;
case 4:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00120, TRUE);
PartyMenu_PrintLongMessage(application, Partymenu_Text_FourMonAreNeeded, TRUE);
break;
case 5:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00121, TRUE);
PartyMenu_PrintLongMessage(application, Partymenu_Text_FiveMonAreNeeded, TRUE);
break;
case 6:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00122, TRUE);
PartyMenu_PrintLongMessage(application, Partymenu_Text_SixMonAreNeeded, TRUE);
break;
default:
PartyMenu_PrintLongMessage(application, PartyMenu_Text_ChooseAPokemon, TRUE);
@ -2161,7 +2161,7 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
String *v1;
int v2;
v1 = MessageLoader_GetNewString(application->messageLoader, 184);
v1 = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_TotalPartyLevelOverLimit);
v2 = BattleRegulation_GetRuleValue(application->partyMenu->battleRegulation, BATTLE_REGULATION_RULE_MAX_TOTAL_LEVEL);
StringTemplate_SetNumber(application->template, 0, v2, 3, 0, 1);
@ -2173,12 +2173,12 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
case BATTLE_REGULATION_VALIDATION_ERROR_DUPLICATE_SPECIES:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00182, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_IdenticalMonNotPermitted, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
case BATTLE_REGULATION_VALIDATION_ERROR_DUPLICATE_ITEMS:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00183, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_SomeMonHoldingIdenticalItems, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
@ -2190,12 +2190,12 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
case 0:
break;
case 1:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00182, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_IdenticalMonNotPermitted, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
case 2:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00183, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_SomeMonHoldingIdenticalItems, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
@ -2207,7 +2207,7 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
case 0:
break;
case 1:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00201, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_MustUseSameKindOfMon, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
@ -2219,7 +2219,7 @@ static int HandleGameWindowEvent(PartyMenuApplication *application)
case 0:
break;
case 1:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00182, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_IdenticalMonNotPermitted, TRUE);
application->unk_B0E = PARTY_MENU_STATE_23;
Sound_PlayEffect(SEQ_SE_DP_CUSTOM06);
return PARTY_MENU_STATE_24;
@ -2392,9 +2392,9 @@ static u8 HandleWindowInputEvent(PartyMenuApplication *application, int *partyMe
|| application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_TOWER
|| application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_CASTLE
|| application->partyMenu->mode == PARTY_MENU_MODE_BATTLE_HALL) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
} else if (application->partyMenu->mode == PARTY_MENU_MODE_SELECT_EGG) {
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00197, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_SelectEgg, TRUE);
} else {
PartyMenu_PrintShortMessage(application, PartyMenu_Text_ChooseAPokemon, TRUE);
}
@ -2494,7 +2494,7 @@ static int ProcessWindowInput(PartyMenuApplication *application)
Sound_PlayEffect(SEQ_SE_CONFIRM);
Window_EraseMessageBox(&application->windows[34], 1);
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], 0);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00036, TRUE);
PartyMenu_PrintShortMessage(application, PartyMenu_Text_UseOnWhichPokemon, TRUE);
application->monStats[1] = 0;
}
break;
@ -2513,7 +2513,7 @@ static int ProcessWindowInput(PartyMenuApplication *application)
FieldSystem *fieldSystem;
mon = Party_GetPokemonBySlotIndex(application->partyMenu->party, application->currPartySlot);
v1 = MessageLoader_GetNewString(application->messageLoader, 64);
v1 = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonsHPWasRestored);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(mon));
StringTemplate_SetNumber(application->template, 1, application->monStats[2], 3, 0, 1);
@ -2551,7 +2551,7 @@ static u8 CheckPokemonCondition(PartyMenuApplication *application)
if ((application->currPartySlot == application->switchTargetSlot) || (application->partyMembers[application->currPartySlot].curHP == 0) || (application->partyMembers[application->currPartySlot].curHP == application->partyMembers[application->currPartySlot].maxHP)) {
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], 1);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00131, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_ThisCantBeUsedOnThatPokemon, TRUE);
application->monStats[1] = 1;
application->unk_B0E = PARTY_MENU_STATE_30;
@ -2672,7 +2672,7 @@ static int ApplyItemEffectOnPokemon(PartyMenuApplication *app)
sub_020852B8(app);
} else {
PartyMenu_PrintLongMessage(app, pl_msg_00000453_00105, TRUE);
PartyMenu_PrintLongMessage(app, Partymenu_Text_ItWontHaveAnyEffect, TRUE);
app->currPartySlot = 7;
app->unk_B00 = sub_02085348;
}
@ -2705,14 +2705,14 @@ static int ProcessItemApplication(PartyMenuApplication *application)
if (application->partyMenu->usedItemID == ITEM_GRISEOUS_ORB) {
if (Pokemon_GetValue(v0, MON_DATA_SPECIES, NULL) != SPECIES_GIRATINA) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00203, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonCannotHoldItem, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(v0));
StringTemplate_SetItemNameWithArticle(application->template, 1, application->partyMenu->usedItemID);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
v2 = PARTY_MENU_STATE_11;
} else if (fieldSystem != NULL) {
if (fieldSystem->location->mapId == MAP_HEADER_UNION_ROOM) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00204, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_ItemCannotBeGivenHere, application->tmpFormat);
StringTemplate_SetItemName(application->template, 0, application->partyMenu->usedItemID);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
v2 = PARTY_MENU_STATE_11;
@ -2730,20 +2730,20 @@ static int ProcessItemApplication(PartyMenuApplication *application)
v2 = UpdatePokemonWithItem(application, v0, &v3);
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00118, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonWasGivenItem, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(v0));
StringTemplate_SetItemName(application->template, 1, application->partyMenu->usedItemID);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
break;
case 1:
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00078, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonAlreadyHoldingItemsSwitchItems, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(v0));
StringTemplate_SetItemNameWithArticle(application->template, 1, application->partyMembers[application->currPartySlot].heldItem);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
v2 = PARTY_MENU_STATE_9;
break;
case 2:
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00077, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MustRemoveMail, application->tmpString);
v2 = PARTY_MENU_STATE_11;
break;
}
@ -2853,7 +2853,7 @@ static int ProcessPokemonItemSwap(PartyMenuApplication *application)
if (Bag_TryAddItem(application->partyMenu->bag, (u16)v5, 1, HEAP_ID_PARTY_MENU) == FALSE) {
SwapPokemonItem(application, mon, v4, v5);
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00083, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_BagIsFull, application->tmpString);
v0 = PARTY_MENU_STATE_11;
} else {
if (Item_IsMail(application->partyMenu->usedItemID) == 1) {
@ -2863,7 +2863,7 @@ static int ProcessPokemonItemSwap(PartyMenuApplication *application)
return PARTY_MENU_STATE_32;
}
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00084, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_ItemWasTakenAndReplacedWithItem, application->tmpFormat);
StringTemplate_SetItemName(application->template, 1, v5);
StringTemplate_SetItemName(application->template, 2, v4);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
@ -2919,13 +2919,13 @@ static int UpdatePokemonFormWithItem(PartyMenuApplication *application)
}
if (item == ITEM_NONE) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00118, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonWasGivenItem, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(v0));
StringTemplate_SetItemName(application->template, 1, application->partyMenu->usedItemID);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
} else {
Bag_TryAddItem(application->partyMenu->bag, (u16)item, 1, HEAP_ID_PARTY_MENU);
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00084, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_ItemWasTakenAndReplacedWithItem, application->tmpFormat);
StringTemplate_SetItemName(application->template, 1, item);
StringTemplate_SetItemName(application->template, 2, v2);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
@ -2950,7 +2950,7 @@ static int CheckForItemApplication(PartyMenuApplication *application)
}
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], 1);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00195, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_BallCapsuleWillBeDetached, TRUE);
application->unk_B04.unk_00 = sub_02083A78;
application->unk_B04.unk_04 = sub_02083AA4;
application->unk_B0E = PARTY_MENU_STATE_26;

View File

@ -127,7 +127,7 @@ static void PartyMenu_SelectItem(PartyMenuApplication *application, int *partyMe
MenuTemplate v0;
PartyMenu_ClearContextWindow(application);
PartyMenu_PrintMediumMessage(application, pl_msg_00000453_00038, FALSE);
PartyMenu_PrintMediumMessage(application, PartyMenu_Text_DoWhatWithAnItem, FALSE);
application->contextMenuChoices = StringList_New(3, HEAP_ID_PARTY_MENU);
@ -174,7 +174,7 @@ static void PartyMenu_SelectItemTake(PartyMenuApplication *application, int *par
if (application->partyMembers[application->currPartySlot].heldItem == ITEM_NONE) {
mon = Party_GetPokemonBySlotIndex(application->partyMenu->party, application->currPartySlot);
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00081, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonIsntHoldingAnything, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(mon));
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
} else if (Bag_TryAddItem(application->partyMenu->bag, application->partyMembers[application->currPartySlot].heldItem, 1, HEAP_ID_PARTY_MENU) == TRUE) {
@ -196,7 +196,7 @@ static void PartyMenu_SelectItemTake(PartyMenuApplication *application, int *par
}
}
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00082, application->tmpFormat);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_ReceivedItemFromMon, application->tmpFormat);
StringTemplate_SetNickname(application->template, 0, Pokemon_GetBoxPokemon(mon));
StringTemplate_SetItemName(application->template, 1, application->partyMembers[application->currPartySlot].heldItem);
StringTemplate_Format(application->template, application->tmpString, application->tmpFormat);
@ -205,7 +205,7 @@ static void PartyMenu_SelectItemTake(PartyMenuApplication *application, int *par
PartyMenu_DrawMemberHeldItem(application, application->currPartySlot, application->partyMembers[application->currPartySlot].heldItem);
} else {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00083, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_BagIsFull, application->tmpString);
}
Window_DrawMessageBoxWithScrollCursor(&application->windows[PARTY_MENU_WIN_LONG_MESSAGE], 1, (1 + 9), 15);
@ -257,7 +257,7 @@ static void PartyMenu_SelectMail(PartyMenuApplication *application, int *partyMe
MenuTemplate v0;
PartyMenu_ClearContextWindow(application);
PartyMenu_PrintMediumMessage(application, pl_msg_00000453_00039, FALSE);
PartyMenu_PrintMediumMessage(application, PartyMenu_Text_DoWhatWithMail, FALSE);
application->contextMenuChoices = StringList_New(3, HEAP_ID_PARTY_MENU);
@ -294,7 +294,7 @@ static void PartyMenu_SelectMailTake(PartyMenuApplication *application, int *par
Window_EraseStandardFrame(&application->windows[PARTY_MENU_WIN_GIVE_ITEM_OR_MAIL], 1);
Menu_Free(application->contextMenu, NULL);
StringList_Free(application->contextMenuChoices);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00043, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_SendMailToPC, TRUE);
application->unk_B04.unk_00 = sub_0208384C;
application->unk_B04.unk_04 = sub_020838C4;
@ -313,9 +313,9 @@ static int sub_0208384C(void *applicationPtr)
if (sub_02097788(application->partyMenu->mailbox, v1, HEAP_ID_PARTY_MENU) != 0xFFFFFFFF) {
application->partyMembers[application->currPartySlot].heldItem = ITEM_NONE;
PartyMenu_DrawMemberHeldItem(application, application->currPartySlot, application->partyMembers[application->currPartySlot].heldItem);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00046, FALSE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_MailWasSentToYourPC, FALSE);
} else {
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00050, FALSE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_MailboxIsFull, FALSE);
}
application->unk_B0E = PARTY_MENU_STATE_20;
@ -327,7 +327,7 @@ static int sub_020838C4(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00047, FALSE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_IfmailIsRemovedMessageWillBeLostConfirm, FALSE);
application->unk_B04.unk_00 = sub_020838F4;
application->unk_B04.unk_04 = sub_02083990;
@ -354,9 +354,9 @@ static int sub_020838F4(void *applicationPtr)
application->partyMembers[application->currPartySlot].heldItem = ITEM_NONE;
PartyMenu_DrawMemberHeldItem(application, application->currPartySlot, application->partyMembers[application->currPartySlot].heldItem);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00051, FALSE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_MailWasTakenFromMon, FALSE);
} else {
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00083, FALSE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_BagIsFull, FALSE);
}
application->unk_B0E = PARTY_MENU_STATE_20;
@ -398,7 +398,7 @@ static void PartyMenu_SelectBallSeal(PartyMenuApplication *application, int *par
}
PartyMenu_ClearContextWindow(application);
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00195, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_BallCapsuleWillBeDetached, TRUE);
application->unk_B04.unk_00 = sub_02083A78;
application->unk_B04.unk_04 = sub_02083AA4;
@ -443,7 +443,7 @@ static void PartyMenu_SelectSwitch(PartyMenuApplication *application, int *party
PartyMenu_UpdateSlotPalette(application, application->switchTargetSlot);
Window_EraseMessageBox(&application->windows[PARTY_MENU_WIN_MEDIUM_MESSAGE], 1);
PartyMenu_ClearContextWindow(application);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00030, TRUE);
PartyMenu_PrintShortMessage(application, PartyMenu_MoveToWhere, TRUE);
*partyMenuState = PARTY_MENU_STATE_28;
}
@ -723,7 +723,7 @@ static void sub_020844B0(PartyMenuApplication *application, int *partyMenuState)
application->partyMenu->selectionOrder[v0] = application->currPartySlot + 1;
PartyMenu_PrintSelectionEligibility(application, application->currPartySlot);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], 0);
if (v0 == application->partyMenu->maxSelectionSlots - 1) {
@ -736,19 +736,19 @@ static void sub_020844B0(PartyMenuApplication *application, int *partyMenuState)
switch (application->partyMenu->maxSelectionSlots) {
case 1:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00123, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NoMoreThanOneMon, TRUE);
break;
case 2:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00100, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NoMoreThanTwoMon, TRUE);
break;
case 3:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00124, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NoMoreThanThreeMon, TRUE);
break;
case 4:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00125, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NoMoreThanFourMon, TRUE);
break;
case 5:
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00126, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NoMoreThanFiveMon, TRUE);
break;
}
@ -760,7 +760,7 @@ int sub_020845A8(PartyMenuApplication *application)
{
if (gSystem.pressedKeys & (PAD_BUTTON_A | PAD_BUTTON_B)) {
Window_EraseMessageBox(&application->windows[PARTY_MENU_WIN_LONG_MESSAGE], 1);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00034, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_ChooseMonAndConfirm, TRUE);
Sprite_SetExplicitPalette2(application->sprites[PARTY_MENU_SPRITE_CURSOR_NORMAL], 0);
return PARTY_MENU_STATE_1;
}
@ -843,10 +843,10 @@ int sub_02084780(PartyMenuApplication *application)
Pokemon *v0 = Party_GetPokemonBySlotIndex(application->partyMenu->party, application->currPartySlot);
if (Pokemon_GetValue(v0, MON_DATA_BALL_CAPSULE_ID, NULL) == 0) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00129, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_BallCapsuleWasSet, application->tmpString);
Sprite_SetDrawFlag(application->sprites[22 + application->currPartySlot], TRUE);
} else {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00130, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_TwoCapsulsesCantBeSet, application->tmpString);
application->currPartySlot = 7;
}
@ -879,16 +879,16 @@ static void PartyMenu_SelectFieldMove(PartyMenuApplication *windowLayout, int *p
*partyMenuState = PARTY_MENU_STATE_32;
return;
case 1:
msgID = 104; // pl_msg_00000453_00104: You cant use that here.
msgID = PartyMenu_Text_CantUseThatHere;
break;
case 2:
msgID = 76; // pl_msg_00000453_00076: This cant be used until a new Badge is obtained
msgID = PartyMenu_Text_CantBeUsedUntilBadgeIsObtained;
break;
case 3:
msgID = 196; // pl_msg_00000453_00196: You cant use that when you have someone with you
msgID = PartyMenu_Text_CantUseWhenYouHaveSomeoneWithYou;
break;
case 4:
msgID = 102; // pl_msg_00000453_00102: You're already surfing
msgID = PartyMenu_Text_YoureAlreadySurfing;
break;
}
@ -1004,7 +1004,7 @@ static int sub_02084A18(PartyMenuApplication *application)
application->monStats[0] = application->partyMembers[application->currPartySlot].maxHP / 5;
if (application->partyMembers[application->currPartySlot].curHP <= application->monStats[0]) {
PartyMenu_PrintLongMessage(application, pl_msg_00000453_00138, TRUE);
PartyMenu_PrintLongMessage(application, PartyMenu_Text_NotEnoughHP, TRUE);
application->unk_B0E = PARTY_MENU_STATE_3;
return PARTY_MENU_STATE_24;
} else {
@ -1019,7 +1019,7 @@ static int sub_02084A18(PartyMenuApplication *application)
Sprite_SetAnim(application->sprites[PARTY_MENU_SPRITE_CURSOR_SWITCH], PartyMenu_GetMemberPanelAnim(application->partyMenu->type, application->switchTargetSlot) + 2);
Sprite_SetDrawFlag(application->sprites[PARTY_MENU_SPRITE_CURSOR_SWITCH], TRUE);
PartyMenu_UpdateSlotPalette(application, application->switchTargetSlot);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00036, TRUE);
PartyMenu_PrintShortMessage(application, PartyMenu_Text_UseOnWhichPokemon, TRUE);
application->monStats[1] = 0;
return PARTY_MENU_STATE_30;

View File

@ -233,129 +233,129 @@ static void BufferUsedItemMessage(PartyMenuApplication *application, u16 param1,
switch (sub_02084B70(param1)) {
case 4:
string = MessageLoader_GetNewString(application->messageLoader, 65);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWasCuredOfPoison);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 3:
string = MessageLoader_GetNewString(application->messageLoader, 91);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWokeUp);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 5:
string = MessageLoader_GetNewString(application->messageLoader, 67);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonsBurnWasHealed);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 6:
string = MessageLoader_GetNewString(application->messageLoader, 68);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWasThawedOut);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 7:
string = MessageLoader_GetNewString(application->messageLoader, 66);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWasCuredOfParalysis);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 8:
string = MessageLoader_GetNewString(application->messageLoader, 73);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonSnappedOutOfConfusion);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 10:
string = MessageLoader_GetNewString(application->messageLoader, 74);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonGotOverInfatuation);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 9:
string = MessageLoader_GetNewString(application->messageLoader, 71);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameHealthy);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 12:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 0);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 13:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 1);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 14:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 2);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 15:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 3);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 16:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 4);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 17:
string = MessageLoader_GetNewString(application->messageLoader, 75);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBaseStatRose);
StringTemplate_SetPokemonStatName(application->template, 1, 5);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 18:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 0);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 19:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 1);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 20:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 2);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 21:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 3);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 22:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 4);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 23:
string = MessageLoader_GetNewString(application->messageLoader, 110 + param2);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonBecameMoreFriendly + param2);
StringTemplate_SetPokemonStatName(application->template, 1, 5);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 25:
case 26:
string = MessageLoader_GetNewString(application->messageLoader, 72);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MovesPPIncreased);
StringTemplate_SetMoveName(application->template, 0, param2);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
break;
case 27:
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00069, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_PPWasRestored, application->tmpString);
break;
default:
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00105, application->tmpString);
MessageLoader_GetString(application->messageLoader, Partymenu_Text_ItWontHaveAnyEffect, application->tmpString);
}
}
@ -583,7 +583,7 @@ int sub_02085804(PartyMenuApplication *application)
application->currPartySlot = GetFirstFaintedMon(application, 0);
if (application->currPartySlot == 0xff) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00105, application->tmpString);
MessageLoader_GetString(application->messageLoader, Partymenu_Text_ItWontHaveAnyEffect, application->tmpString);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
application->unk_B00 = sub_02085348;
PartyMenu_UpdateCursor(application, 0, 1);
@ -844,7 +844,7 @@ int sub_02085EF4(PartyMenuApplication *application)
}
StringTemplate_SetMoveName(application->template, 1, Pokemon_GetValue(mon, 54 + application->partyMenu->selectedMoveSlot, NULL));
string = MessageLoader_GetNewString(application->messageLoader, 60);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonForgotMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -858,7 +858,7 @@ int sub_02085EF4(PartyMenuApplication *application)
static int sub_02085FB4(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 59);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_WhichMoveShouldBeForgotten);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -873,7 +873,7 @@ static int sub_02085FB4(void *applicationPtr)
static int sub_02086008(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 55);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_StopTryingToTeachMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -889,7 +889,7 @@ static int sub_02086008(void *applicationPtr)
static int sub_02086060(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 58);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonDidNotLearnMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -904,7 +904,7 @@ static int sub_02086060(void *applicationPtr)
static int sub_020860AC(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 52);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWantsToLearnMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -962,7 +962,7 @@ int sub_0208615C(PartyMenuApplication *application)
case 2:
case 3:
TeachMove(application, mon, v2);
string = MessageLoader_GetNewString(application->messageLoader, 61);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonLearnedMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -970,7 +970,7 @@ int sub_0208615C(PartyMenuApplication *application)
application->unk_B0E = PARTY_MENU_STATE_25;
break;
case 0xfd:
string = MessageLoader_GetNewString(application->messageLoader, 63);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonAlreadyKnowsMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -978,7 +978,7 @@ int sub_0208615C(PartyMenuApplication *application)
application->unk_B0E = PARTY_MENU_STATE_25;
break;
case 0xfe:
string = MessageLoader_GetNewString(application->messageLoader, 52);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWantsToLearnMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -988,7 +988,7 @@ int sub_0208615C(PartyMenuApplication *application)
application->unk_B0E = PARTY_MENU_STATE_26;
break;
case 0xff:
string = MessageLoader_GetNewString(application->messageLoader, 62);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonAndMoveAreNotCompatible);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -1015,7 +1015,7 @@ int sub_020862F8(PartyMenuApplication *application)
}
StringTemplate_SetMoveName(application->template, 1, Pokemon_GetValue(mon, 54 + application->partyMenu->selectedMoveSlot, NULL));
string = MessageLoader_GetNewString(application->messageLoader, 60);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonForgotMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -1033,7 +1033,7 @@ int sub_020863A0(PartyMenuApplication *application)
mon = Party_GetPokemonBySlotIndex(application->partyMenu->party, application->currPartySlot);
TeachMove(application, mon, application->partyMenu->selectedMoveSlot);
string = MessageLoader_GetNewString(application->messageLoader, 61);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonLearnedMove);
StringTemplate_SetMoveName(application->template, 1, application->partyMenu->learnedMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -1051,7 +1051,7 @@ int sub_020863A0(PartyMenuApplication *application)
static int sub_02086438(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 59);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_WhichMoveShouldBeForgotten);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -1066,7 +1066,7 @@ static int sub_02086438(void *applicationPtr)
static int sub_0208648C(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 55);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_StopTryingToTeachMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -1082,7 +1082,7 @@ static int sub_0208648C(void *applicationPtr)
static int sub_020864E4(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 58);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonDidNotLearnMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -1097,7 +1097,7 @@ static int sub_020864E4(void *applicationPtr)
static int sub_02086538(void *applicationPtr)
{
PartyMenuApplication *application = applicationPtr;
String *string = MessageLoader_GetNewString(application->messageLoader, 52);
String *string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MonWantsToLearnMove);
StringTemplate_Format(application->template, application->tmpString, string);
String_Free(string);
@ -1138,7 +1138,7 @@ static u8 BufferLearnedMoveInSlot(PartyMenuApplication *application, u8 moveSlot
mon = Party_GetPokemonBySlotIndex(application->partyMenu->party, application->currPartySlot);
moveID = (u16)Pokemon_GetValue(mon, MON_DATA_MOVE1 + moveSlot, NULL);
string = MessageLoader_GetNewString(application->messageLoader, 162 + moveSlot);
string = MessageLoader_GetNewString(application->messageLoader, PartyMenu_Text_MoveSlot0 + moveSlot);
StringTemplate_SetMoveName(application->template, 0, moveID);
StringTemplate_Format(application->template, application->tmpFormat, string);
@ -1159,9 +1159,9 @@ void sub_020866A0(PartyMenuApplication *application, u8 param1)
u8 moveCount;
if (param1 == 0) {
PartyMenu_PrintMediumMessage(application, pl_msg_00000453_00041, TRUE);
PartyMenu_PrintMediumMessage(application, PartyMenu_Text_BoostPPOfWhichMove, TRUE);
} else {
PartyMenu_PrintMediumMessage(application, pl_msg_00000453_00040, TRUE);
PartyMenu_PrintMediumMessage(application, PartyMenu_Text_RestoreWhichMove, TRUE);
}
application->contextMenuChoices = StringList_New(4, HEAP_ID_PARTY_MENU);
@ -1201,7 +1201,7 @@ int sub_02086774(PartyMenuApplication *application)
Window_EraseStandardFrame(&application->windows[36], 1);
Menu_Free(application->contextMenu, NULL);
StringList_Free(application->contextMenuChoices);
PartyMenu_PrintShortMessage(application, pl_msg_00000453_00032, TRUE);
PartyMenu_PrintShortMessage(application, Partymenu_Text_UseOnWhichMon, TRUE);
return PARTY_MENU_STATE_4;
default:
Window_EraseMessageBox(&application->windows[33], 1);
@ -1215,7 +1215,7 @@ int sub_02086774(PartyMenuApplication *application)
Bag_TryRemoveItem(application->partyMenu->bag, application->partyMenu->usedItemID, 1, HEAP_ID_PARTY_MENU);
Sound_PlayEffect(SEQ_SE_DP_KAIFUKU);
} else {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00105, application->tmpString);
MessageLoader_GetString(application->messageLoader, Partymenu_Text_ItWontHaveAnyEffect, application->tmpString);
}
PartyMenu_PrintLongMessage(application, PRINT_MESSAGE_PRELOADED, TRUE);
@ -1234,10 +1234,10 @@ void sub_020868B0(PartyMenuApplication *application)
Window_EraseMessageBox(&application->windows[32], 1);
if (application->partyMembers[application->currPartySlot].heldItem == ITEM_NONE) {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00127, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MailWasTransferredFromMailbox, application->tmpString);
PartyMenu_DrawMemberMail(application, application->currPartySlot);
} else {
MessageLoader_GetString(application->messageLoader, pl_msg_00000453_00128, application->tmpString);
MessageLoader_GetString(application->messageLoader, PartyMenu_Text_MonHoldingItemCannotHoldMail, application->tmpString);
application->currPartySlot = 7;
}