Document remainder of battle_controllers.c
This commit is contained in:
@@ -163,7 +163,7 @@ static void Cmd_trainerslidein(void);
|
||||
static void Cmd_playse(void);
|
||||
static void Cmd_fanfare(void);
|
||||
static void Cmd_playfaintcry(void);
|
||||
static void Cmd_unknown_57(void);
|
||||
static void Cmd_endlinkbattle(void);
|
||||
static void Cmd_returntoball(void);
|
||||
static void Cmd_handlelearnnewmove(void);
|
||||
static void Cmd_yesnoboxlearnmove(void);
|
||||
@@ -415,7 +415,7 @@ void (* const gBattleScriptingCommandsTable[])(void) =
|
||||
Cmd_playse, //0x54
|
||||
Cmd_fanfare, //0x55
|
||||
Cmd_playfaintcry, //0x56
|
||||
Cmd_unknown_57, //0x57
|
||||
Cmd_endlinkbattle, //0x57
|
||||
Cmd_returntoball, //0x58
|
||||
Cmd_handlelearnnewmove, //0x59
|
||||
Cmd_yesnoboxlearnmove, //0x5A
|
||||
@@ -4835,7 +4835,7 @@ static void Cmd_openpartyscreen(void)
|
||||
{
|
||||
gAbsentBattlerFlags |= gBitTable[gActiveBattler];
|
||||
gHitMarker &= ~(HITMARKER_FAINTED(gActiveBattler));
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
else if (!gSpecialStatuses[gActiveBattler].flag40)
|
||||
@@ -4846,7 +4846,7 @@ static void Cmd_openpartyscreen(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -4874,7 +4874,7 @@ static void Cmd_openpartyscreen(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
flags |= 1;
|
||||
}
|
||||
@@ -4896,7 +4896,7 @@ static void Cmd_openpartyscreen(void)
|
||||
}
|
||||
else if (!(flags & 1))
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -4917,7 +4917,7 @@ static void Cmd_openpartyscreen(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
flags |= 2;
|
||||
}
|
||||
@@ -4939,7 +4939,7 @@ static void Cmd_openpartyscreen(void)
|
||||
}
|
||||
else if (!(flags & 2))
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -4955,7 +4955,7 @@ static void Cmd_openpartyscreen(void)
|
||||
else
|
||||
gActiveBattler = 0;
|
||||
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
|
||||
@@ -4971,7 +4971,7 @@ static void Cmd_openpartyscreen(void)
|
||||
else
|
||||
gActiveBattler = 1;
|
||||
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -5079,7 +5079,7 @@ static void Cmd_openpartyscreen(void)
|
||||
{
|
||||
if (gActiveBattler != battlerId)
|
||||
{
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -5090,7 +5090,7 @@ static void Cmd_openpartyscreen(void)
|
||||
if (gAbsentBattlerFlags & gBitTable[gActiveBattler])
|
||||
gActiveBattler ^= BIT_FLANK;
|
||||
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, 0);
|
||||
BtlController_EmitLinkStandbyMsg(0, 2, FALSE);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
}
|
||||
}
|
||||
@@ -5282,10 +5282,10 @@ static void Cmd_playfaintcry(void)
|
||||
gBattlescriptCurrInstr += 2;
|
||||
}
|
||||
|
||||
static void Cmd_unknown_57(void)
|
||||
static void Cmd_endlinkbattle(void)
|
||||
{
|
||||
gActiveBattler = GetBattlerAtPosition(B_POSITION_PLAYER_LEFT);
|
||||
BtlController_EmitCmd55(0, gBattleOutcome);
|
||||
BtlController_EmitEndLinkBattle(0, gBattleOutcome);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
|
||||
gBattlescriptCurrInstr += 1;
|
||||
@@ -6362,7 +6362,7 @@ static void Cmd_various(void)
|
||||
gDisableStructs[1].truantSwitchInHack = 1;
|
||||
break;
|
||||
case VARIOUS_EMIT_YESNOBOX:
|
||||
BtlController_EmitUnknownYesNoBox(0);
|
||||
BtlController_EmitYesNoBox(0);
|
||||
MarkBattlerForControllerExec(gActiveBattler);
|
||||
break;
|
||||
case 14:
|
||||
|
||||
Reference in New Issue
Block a user