More battle doc, add battle window ids
This commit is contained in:
+13
-13
@@ -2341,12 +2341,12 @@ static void EndLinkBattleInSteps(void)
|
||||
if (IsLinkTaskFinished() == TRUE)
|
||||
{
|
||||
SetLinkStandbyCallback();
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, 0);
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, B_WIN_MSG);
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (!IsTextPrinterActive(0))
|
||||
if (!IsTextPrinterActive(B_WIN_MSG))
|
||||
{
|
||||
if (IsLinkTaskFinished() == TRUE)
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
@@ -2484,15 +2484,15 @@ static void AskRecordBattle(void)
|
||||
if (!gPaletteFade.active)
|
||||
{
|
||||
// "Would you like to record your battle on your FRONTIER PASS?"
|
||||
BattlePutTextOnWindow(gText_RecordBattleToPass, 0);
|
||||
BattlePutTextOnWindow(gText_RecordBattleToPass, B_WIN_MSG);
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
break;
|
||||
case STATE_PRINT_YES_NO:
|
||||
if (!IsTextPrinterActive(0))
|
||||
if (!IsTextPrinterActive(B_WIN_MSG))
|
||||
{
|
||||
HandleBattleWindow(0x18, 8, 0x1D, 0xD, 0);
|
||||
BattlePutTextOnWindow(gText_BattleYesNoChoice, 0xC);
|
||||
BattlePutTextOnWindow(gText_BattleYesNoChoice, B_WIN_YESNO);
|
||||
gBattleCommunication[CURSOR_POSITION] = 1;
|
||||
BattleCreateYesNoCursorAt(1);
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
@@ -2551,7 +2551,7 @@ static void AskRecordBattle(void)
|
||||
{
|
||||
// Other battlers may be recording, wait for them
|
||||
SetLinkStandbyCallback();
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, 0);
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, B_WIN_MSG);
|
||||
}
|
||||
gBattleCommunication[MULTIUSE_STATE]++; // STATE_END_RECORD_NO
|
||||
}
|
||||
@@ -2582,32 +2582,32 @@ static void AskRecordBattle(void)
|
||||
{
|
||||
PlaySE(SE_SAVE);
|
||||
BattleStringExpandPlaceholdersToDisplayedString(gText_BattleRecordedOnPass);
|
||||
BattlePutTextOnWindow(gDisplayedStringBattle, 0);
|
||||
BattlePutTextOnWindow(gDisplayedStringBattle, B_WIN_MSG);
|
||||
gBattleCommunication[1] = 128; // Delay
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
BattleStringExpandPlaceholdersToDisplayedString(BattleFrontier_BattleTowerBattleRoom_Text_RecordCouldntBeSaved);
|
||||
BattlePutTextOnWindow(gDisplayedStringBattle, 0);
|
||||
BattlePutTextOnWindow(gDisplayedStringBattle, B_WIN_MSG);
|
||||
gBattleCommunication[1] = 128; // Delay
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
break;
|
||||
case STATE_RECORD_WAIT:
|
||||
if (IsLinkTaskFinished() == TRUE && !IsTextPrinterActive(0) && --gBattleCommunication[1] == 0)
|
||||
if (IsLinkTaskFinished() == TRUE && !IsTextPrinterActive(B_WIN_MSG) && --gBattleCommunication[1] == 0)
|
||||
{
|
||||
if (gMain.anyLinkBattlerHasFrontierPass)
|
||||
{
|
||||
SetLinkStandbyCallback();
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, 0);
|
||||
BattlePutTextOnWindow(gText_LinkStandby3, B_WIN_MSG);
|
||||
}
|
||||
gBattleCommunication[MULTIUSE_STATE]++;
|
||||
}
|
||||
break;
|
||||
case STATE_END_RECORD_YES:
|
||||
case STATE_END_RECORD_NO:
|
||||
if (!IsTextPrinterActive(0))
|
||||
if (!IsTextPrinterActive(B_WIN_MSG))
|
||||
{
|
||||
if (gMain.anyLinkBattlerHasFrontierPass)
|
||||
{
|
||||
@@ -3866,7 +3866,7 @@ static void TryDoEventsBeforeFirstTurn(void)
|
||||
TurnValuesCleanUp(FALSE);
|
||||
SpecialStatusesClear();
|
||||
*(&gBattleStruct->field_91) = gAbsentBattlerFlags;
|
||||
BattlePutTextOnWindow(gText_EmptyString3, 0);
|
||||
BattlePutTextOnWindow(gText_EmptyString3, B_WIN_MSG);
|
||||
gBattleMainFunc = HandleTurnActionSelectionState;
|
||||
ResetSentPokesToOpponentValue();
|
||||
|
||||
@@ -3973,7 +3973,7 @@ void BattleTurnPassed(void)
|
||||
*(gBattleStruct->monToSwitchIntoId + i) = PARTY_SIZE;
|
||||
|
||||
*(&gBattleStruct->field_91) = gAbsentBattlerFlags;
|
||||
BattlePutTextOnWindow(gText_EmptyString3, 0);
|
||||
BattlePutTextOnWindow(gText_EmptyString3, B_WIN_MSG);
|
||||
gBattleMainFunc = HandleTurnActionSelectionState;
|
||||
gRandomTurnNumber = Random();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user