12#define WFIGHTMN_RECOVERY_ITEM 0x140
FIGHTSTG.PRO: the battle.
#define TASK_HEADER(Type)
ElementLook WFIGHTMN_elementVisuals[]
A technique's look (its scriptEffect, scriptSound and scriptStage) by its element,...
void WFIGHTMN_endSpecial(BattleMenu *task, BattleMenuChildren *children)
The end of the partner's special state (EVENT_SPECIAL_END): clears it and shows message 0x59.
void WFIGHTMN_createLayers(void)
setup.c
void WFIGHTMN_blast(BattleMenu *task, BattleMenuChildren *children)
Digivolves the current partner for the battle, to the Digimon its level reaches (DigimonData....
void WFIGHTMN_clearField(BattleMenu *task, BattleMenuChildren *children)
EVENT_CLEAR_FIELD: shows message 0x6A and ends the element boost (FIGHTSTG_battle....
void WFIGHTMN_recover(BattleMenu *task, BattleMenuChildren *children)
A fighter's recovery (EVENT_RECOVERY): unless its HP is full, plays technique 0xBD on it when it is t...
void WFIGHTMN_runCommand(BattleMenu *task, BattleMenuChildren *children)
The states in WFIGHTMN_states.
void WFIGHTMN_tag(BattleMenu *task, BattleMenuChildren *children)
Swaps the partner on the field for the one picked (children->commands): message 0x38,...
void WFIGHTMN_runAway(BattleMenu *task, BattleMenuChildren *children)
Asks FIGHTSTG (FIGHTSTG_battleFuncs.testRunAway) whether the current action's actor gets away; if so ...
void WFIGHTMN_bringLastEnemy(BattleMenu *task, BattleMenuChildren *children)
The enemy's third fighter comes in (BATTLE_KIND_FINAL_LAST), takes the first's place,...
void WFIGHTMN_restoreEnemy(BattleMenu *task, BattleMenuChildren *children)
The end of the enemy's weakness (EVENT_WEAKNESS_END): its lowered stats come back and it takes its tu...
EffectLook WFIGHTMN_effectVisuals[]
A technique's look (its scriptEffect and scriptSound) by its effect, for WFIGHTMN_bringLastEnemy; the...
void WFIGHTMN_digivolve(BattleMenu *task, BattleMenuChildren *children)
The state that changes the current partner's Digimon to the one picked (commands->digimon),...
void WFIGHTMN_pairTech(BattleMenu *task, BattleMenuChildren *children)
State 6, the pair technique (the player turn's action 6): the outgoing and incoming partners do comma...
void WFIGHTMN_recordTech(u8 side, s32 id)
In BATTLE_KIND_FINAL, keeps the partner's technique ID in FIGHTSTG_battle.state.tech when its script ...
s32 WFIGHTMN_rollAmbush(void)
Checks the chance in BATTLE_SETUP.ambushChance, scaled by how far the first partner's level and the f...
void WFIGHTMN_digidevolve(BattleMenu *task, BattleMenuChildren *children)
EVENT_DIGIDEVOLVE: the partner goes back to its own form, its blast and its queued technique are drop...
void(* WFIGHTMN_states[])(BattleMenu *task, BattleMenuChildren *children)
The battle menu's states, by its substate.
void WFIGHTMN_cancelBlast(void)
Ends the current partner's temporary Digimon and the actions that go with it.
void WFIGHTMN_endBlast(BattleMenu *task, BattleMenuChildren *children)
Turns the current partner back into the Digimon it was (prevId)
void WFIGHTMN_endRestriction(BattleMenu *task, BattleMenuChildren *children)
Clears the restriction that the current action ends (FIGHTER_NO_SWITCH or FIGHTER_NO_DIGIVOLVE) from ...
void WFIGHTMN_knockOut(BattleMenu *task, BattleMenuChildren *children)
EVENT_KNOCK_OUT (substate 0x15), a fighter's fall: case 0 takes its event off the queue,...
void WFIGHTMN_runConfusedCommand(BattleMenu *task, BattleMenuChildren *children)
A confused partner's turn (FIGHTER_CONFUSED): the player's turn at step 3, where only an attack does ...
void WFIGHTMN_markFought(void)
Marks in BATTLE_RESULT that the current partner fought, and with which of its slots' Digimon if it is...
RECT WFIGHTMN_screen
The screen its layers cover.
void WFIGHTMN_updateMenu(BattleMenu *task, BattleMenuChildren *children)
menu.c
void WFIGHTMN_endBattle(BattleMenu *task, BattleMenuChildren *children)
After a won battle, picks the enemy whose item the player may get; saves the partners' HP and MP,...
void WFIGHTMN_endAutoRecover(BattleMenu *task, BattleMenuChildren *children)
Removes the current action's EVENT_RECOVERY event, unless the partner it is for has WFIGHTMN_RECOVERY...
void WFIGHTMN_endBoost(BattleMenu *task, BattleMenuChildren *children)
Clears the boost (BattleFighter.boosts) that the current action ends.
void WFIGHTMN_runTurn(BattleMenu *task)
The battle menu's main state: waits for FIGHTSTG's turn (FIGHTSTG_events.funcs.pop),...
void WFIGHTMN_takeDamage(BattleMenu *task, BattleMenuChildren *children)
Carries out the current action's damage (FIGHTSTG_battleFuncs.getDamage) on its unit.
BattleLoader * WFIGHTMN_createLoader(void)
Starts loading the battle menu's files.
void WFIGHTMN_cureStatus(BattleMenu *task, BattleMenuChildren *children)
States 13-15: end the current action's unit's paralysis, confusion or sleep.
void WFIGHTMN_loadFiles(BattleLoader *task)
Loads the battle menu's images into VRAM, one file a frame, then its other files, and ends.
void WFIGHTMN_showWon(BattleMenu *task, BattleMenuChildren *children)
Shows the won message (from WFIGHTMN_knockOut) for its time, then closes it.
ScriptLook WFIGHTMN_actionEffects[]
WFIGHTMN_startTech's effects.
void WFIGHTMN_markPicked(BattleMenu *task, BattleMenuChildren *children)
Records in BATTLE_RESULT that the partner of the player's turn fought, and which of its digivolution ...
void WFIGHTMN_initFighters(s32 digimon)
Fills the battle's fighters: the party's partners (the first one with the id DIGIMON) and the encount...
void WFIGHTMN_checkParty(void)
Checks each of the party's three partners for WFIGHTMN_RECOVERY_ITEM (WFIGHTMN_checkEquip)
The battle camera (FIGHTSTG_createBattleCamera), registered as BATTLE_TASK_CAMERA on a layer: set put...
The task that loads the battle menu's files (WFIGHTMN_createLoader)
s32 pad
never read or written: createTask allocates 0x54 bytes
A technique's look (TechData's script fields) by its effect, for WFIGHTMN_bringLastEnemy.
s32 effect
TechData.effect, -1 ends the list.
A technique's look by its element, for WFIGHTMN_bringLastEnemy.
s32 element
TechData.element.
The fight stage (FIGHTSTG_createStage), registered as BATTLE_TASK_STAGE: its model,...
The stage lights (FIGHTSTG_createLights), registered as BATTLE_TASK_LIGHTS: set puts a light set,...
The fighters' models (FIGHTSTG_createModels), registered as BATTLE_TASK_MODELS: up to four,...
The player's turn (FIGHTSTG_updatePlayerTurn, BATTLE_TASK_PLAYER_TURN): the battle menu,...
A battle script's look (BattleScript.effect and sound)
A turn's or a counterattack's one child, and what WFIGHTMN's battle menu waits for (NULL when it is d...