|
Digimon World 3 decomp
The European version, SLES_039.36
|
FIGHTSTG's battle state (FIGHTSTG_action, FIGHTSTG_battle and FIGHTSTG_battleFuncs) and the events of the partner's special techniques. More...
#include "battle/battle_mode.h"Go to the source code of this file.
Functions | |
| void | FIGHTSTG_startRestriction (s32 tech) |
| Restricts the partner with technique tech: sets FIGHTER_NO_SWITCH or FIGHTER_NO_DIGIVOLVE by the technique's effect, and queues the restriction's end (by its effectPower) or pushes back the one already queued. | |
| void | FIGHTSTG_queuePartnerTech (s32 tech) |
| Queues the partner's technique tech, to run as its command. | |
| void | FIGHTSTG_queueBlast (void) |
| Queues the partner's digivolution for the battle (event 18), now. | |
| void | FIGHTSTG_queueBlastEnd (s32 kind) |
| Queues the end of the partner's digivolution for the battle (event 19), after delay kind + 3. | |
| void | FIGHTSTG_queueKnockOut (u8 side) |
| Queues the fall of side's active fighter (event 20), first. | |
| void | FIGHTSTG_queueSpecialEnd (void) |
| Queues the end of the partner's special state (event 21): the USA version pushes back the one already queued. | |
| void | FIGHTSTG_queueDigidevolve (void) |
| Queues the partner's digidevolution, first. | |
| void | FIGHTSTG_queueLastEnemy (void) |
| Queues the coming in of the last battle's third enemy, first. | |
| void | FIGHTSTG_weakenEnemy (void) |
| Weakens the enemy in BATTLE_KIND_FINAL_LAST: halves its boosts of stats 1 and 2 and queues the end (event 24) in 3000. | |
| void | FIGHTSTG_endEnemyWeakness (void) |
| Ends the enemy's weakness now: its queued event 24 runs next. | |
Variables | |
| s32 | FIGHTSTG_techEvents [] |
| the event types of FIGHTSTG_startRestriction, by whether the technique's effect is TECH_EFFECT_NO_DIGIVOLVE | |
| BattleAction | FIGHTSTG_action |
| the command being carried out | |
| Battle | FIGHTSTG_battle |
| the battle: its fighters, speed and drawing functions | |
| FighterCache | FIGHTSTG_fighterCache |
| the fighters' data, loaded one at a time | |
| BattleFuncs | FIGHTSTG_battleFuncs |
| the battle's stats and the functions that compute with them | |
FIGHTSTG's battle state (FIGHTSTG_action, FIGHTSTG_battle and FIGHTSTG_battleFuncs) and the events of the partner's special techniques.
Definition in file battle.c.
| void FIGHTSTG_startRestriction | ( | s32 | tech | ) |
Restricts the partner with technique tech: sets FIGHTER_NO_SWITCH or FIGHTER_NO_DIGIVOLVE by the technique's effect, and queues the restriction's end (by its effectPower) or pushes back the one already queued.
< FIGHTER_NO_SWITCH for a while
< FIGHTER_NO_DIGIVOLVE for a while
< can't switch out or run away (TECH_EFFECT_NO_SWITCH)
< can't digivolve or use a switch-in technique (TECH_EFFECT_NO_DIGIVOLVE)
Definition at line 43 of file battle.c.
Referenced by applyStatusEvent(), and useSupportTech().
| void FIGHTSTG_queuePartnerTech | ( | s32 | tech | ) |
Queues the partner's technique tech, to run as its command.
< a technique of the partner's, run as its command
Definition at line 80 of file battle.c.
Referenced by dealTechDamage().
| void FIGHTSTG_queueBlast | ( | void | ) |
Queues the partner's digivolution for the battle (event 18), now.
< the partner's digivolution for the battle
Definition at line 90 of file battle.c.
Referenced by WFIGHTMN_chargeGauge().
| void FIGHTSTG_queueBlastEnd | ( | s32 | kind | ) |
Queues the end of the partner's digivolution for the battle (event 19), after delay kind + 3.
Definition at line 98 of file battle.c.
Referenced by WFIGHTMN_blast().
| void FIGHTSTG_queueKnockOut | ( | u8 | side | ) |
Queues the fall of side's active fighter (event 20), first.
Definition at line 107 of file battle.c.
Referenced by damageEnemy(), dealTechDamage(), drainEnemy(), FIGHTSTG_updateEnemyAttack(), showCounterResult(), showFirstTechResult(), showOtherAttackResult(), takeFirstTechDamage(), and WFIGHTMN_takeDamage().
| void FIGHTSTG_queueSpecialEnd | ( | void | ) |
Queues the end of the partner's special state (event 21): the USA version pushes back the one already queued.
< the end of the partner's special state
Definition at line 117 of file battle.c.
Referenced by announceKnockOut(), startSpecial(), and WFIGHTMN_tag().
| void FIGHTSTG_queueDigidevolve | ( | void | ) |
Queues the partner's digidevolution, first.
Definition at line 143 of file battle.c.
Referenced by useSupportTech().
| void FIGHTSTG_queueLastEnemy | ( | void | ) |
Queues the coming in of the last battle's third enemy, first.
< the last battle's third enemy comes in
Definition at line 152 of file battle.c.
Referenced by FIGHTSTG_updateOneHpTurn().
| void FIGHTSTG_weakenEnemy | ( | void | ) |
Weakens the enemy in BATTLE_KIND_FINAL_LAST: halves its boosts of stats 1 and 2 and queues the end (event 24) in 3000.
< the end of the enemy's weakness (BATTLE_KIND_FINAL_LAST)
Definition at line 160 of file battle.c.
Referenced by WFIGHTMN_countHit().
| void FIGHTSTG_endEnemyWeakness | ( | void | ) |
Ends the enemy's weakness now: its queued event 24 runs next.
< the end of the enemy's weakness (BATTLE_KIND_FINAL_LAST)
Definition at line 173 of file battle.c.
Referenced by FIGHTSTG_updateEnemyAttack(), and WFIGHTMN_endWeakness().
| s32 FIGHTSTG_techEvents[] |
the event types of FIGHTSTG_startRestriction, by whether the technique's effect is TECH_EFFECT_NO_DIGIVOLVE
and of FIGHTSTG_startRestriction
Definition at line 7 of file battle.c.
Referenced by FIGHTSTG_startRestriction().
| BattleAction FIGHTSTG_action |
the command being carried out
Definition at line 12 of file battle.c.
Referenced by announceFirstTech(), announceTech(), applyStatusEvent(), choosePartnerScript(), damagePlayer(), dealTechDamage(), drainHp(), drainMp(), FIGHTSTG_applyTechEffect(), FIGHTSTG_drainMp(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), FIGHTSTG_raiseAllStatus(), FIGHTSTG_raiseEachStatus(), FIGHTSTG_raiseOneStatus(), FIGHTSTG_rollMultiHit(), FIGHTSTG_startAction(), FIGHTSTG_startDoubleMagic(), FIGHTSTG_startEndBattle(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryKnockOut(), FIGHTSTG_tryNoSwitch(), FIGHTSTG_tryParalysis(), FIGHTSTG_tryPoison(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateActionEvents(), FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateFirstTech(), markTechEffect(), setTechIdleMotions(), showFirstTechResult(), showNextRaisedStatus(), showOtherAttackResult(), showRaisedStatus(), startTechScript(), and WFIGHTMN_startTech().
| Battle FIGHTSTG_battle |
the battle: its fighters, speed and drawing functions
Shared between the overlay's objects.
Definition at line 16 of file battle.c.
Referenced by addFighters(), announceEnemyTech(), announceFirstTech(), announceKnockOut(), applyStatusEvent(), boostAttack(), boostDefense(), boostElement(), boostFieldElement(), boostFighterStat(), boostRandomElement(), boostSideStat(), boostSpeed(), bringSecondEnemy(), confirmSwitchIn(), confuseFighters(), cureStatus(), cureStatusTech(), damageEnemy(), damagePlayer(), drainEnemy(), drainMp(), drainMp(), endBattleOnKnockOut(), FIGHTSTG_changeBoost(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeDamage(), FIGHTSTG_computeHeal(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_computeStats(), FIGHTSTG_countFrames(), FIGHTSTG_createTechWindows(), FIGHTSTG_cureStatus(), FIGHTSTG_drainMp(), FIGHTSTG_drawHud(), FIGHTSTG_drawSpriteAnim(), FIGHTSTG_findFighters(), FIGHTSTG_getActiveFighter(), FIGHTSTG_getDamage(), FIGHTSTG_getElementBoost(), FIGHTSTG_getEnemyAction(), FIGHTSTG_getEventDelay(), FIGHTSTG_getGaugeGain(), FIGHTSTG_getHeal(), FIGHTSTG_getPairDigimon(), FIGHTSTG_getTechCost(), FIGHTSTG_inflictConfusion(), FIGHTSTG_inflictParalysis(), FIGHTSTG_inflictPoison(), FIGHTSTG_inflictSleep(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), FIGHTSTG_pickEnemySwitch(), FIGHTSTG_queueAutoRecoverEnd(), FIGHTSTG_queueBlastEnd(), FIGHTSTG_queueDigidevolve(), FIGHTSTG_queueKnockOut(), FIGHTSTG_queuePartnerTech(), FIGHTSTG_queueRunAway(), FIGHTSTG_queueSpecialEnd(), FIGHTSTG_raiseAllStatus(), FIGHTSTG_raiseEachStatus(), FIGHTSTG_raiseOneStatus(), FIGHTSTG_reviveFighter(), FIGHTSTG_rollCounter(), FIGHTSTG_rollCritical(), FIGHTSTG_rollDedigivolve(), FIGHTSTG_rollDrain(), FIGHTSTG_rollHit(), FIGHTSTG_rollMagicCritical(), FIGHTSTG_rollMagicHit(), FIGHTSTG_rollMultiHit(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollStatusRaise(), FIGHTSTG_rollSteal(), FIGHTSTG_runItemScript(), FIGHTSTG_setConfusedName(), FIGHTSTG_setMessageName(), FIGHTSTG_setSpeed(), FIGHTSTG_showCommands(), FIGHTSTG_showDigivolveNames(), FIGHTSTG_showFighterNames(), FIGHTSTG_showFightersMessage(), FIGHTSTG_showMessage(), FIGHTSTG_showSwitchFighters(), FIGHTSTG_showSwitchInChoices(), FIGHTSTG_showTechPage(), FIGHTSTG_startAction(), FIGHTSTG_startEndBattle(), FIGHTSTG_startRestriction(), FIGHTSTG_stepMotion(), FIGHTSTG_testConfusion(), FIGHTSTG_testEnemyCondition(), FIGHTSTG_testParalysis(), FIGHTSTG_testRunAway(), FIGHTSTG_testWakeUp(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryParalysis(), FIGHTSTG_tryPoison(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateActionEvents(), FIGHTSTG_updateBattleSound(), FIGHTSTG_updateCameraTurn(), FIGHTSTG_updateCommandMenu(), FIGHTSTG_updateCounterattack(), FIGHTSTG_updateDigivolveMenu(), FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateEnemyTurn(), FIGHTSTG_updateFace(), FIGHTSTG_updateFirstTech(), FIGHTSTG_updateHpTweens(), FIGHTSTG_updateHud(), FIGHTSTG_updateItem(), FIGHTSTG_updateJump(), FIGHTSTG_updateMove(), FIGHTSTG_updateOneHpTurn(), FIGHTSTG_updateRoot(), FIGHTSTG_updateSpriteAnim(), FIGHTSTG_updateSwitchMenu(), FIGHTSTG_updateTechAction(), FIGHTSTG_updateTechMenu(), FIGHTSTG_weakenEnemy(), fillGauge(), findPairTech(), fleeWhenWeak(), healEnemy(), healPartner(), healWithTech(), lowerEnemySpeed(), lowerEnemyStat(), playCounterTech(), queueFirstTurns(), restoreHalfHpMp(), restoreSide(), reviveParty(), reviveSide(), rollStatus(), runDigivolveMenu(), setBattleKind(), setUpDrain(), setUpItemTech(), showCounterResult(), showEnemyName(), showLoweredStat(), showOtherAttackResult(), showRunAway(), startTechScript(), stealEnemyItem(), switchConfusionMusic(), useEnemyTech(), useItemTech(), wakeCounteredUp(), wakePlayerUp(), wakeUpOrCounter(), weakenEnemyDefense(), WFIGHTMN_blast(), WFIGHTMN_bringLastEnemy(), WFIGHTMN_cancelBlast(), WFIGHTMN_chargeGauge(), WFIGHTMN_clearField(), WFIGHTMN_countHit(), WFIGHTMN_cureStatus(), WFIGHTMN_digidevolve(), WFIGHTMN_digivolve(), WFIGHTMN_endBattle(), WFIGHTMN_endBlast(), WFIGHTMN_endBoost(), WFIGHTMN_endRestriction(), WFIGHTMN_endSpecial(), WFIGHTMN_endWeakness(), WFIGHTMN_initFighters(), WFIGHTMN_knockOut(), WFIGHTMN_limitDamage(), WFIGHTMN_markFought(), WFIGHTMN_pairTech(), WFIGHTMN_recordTech(), WFIGHTMN_recover(), WFIGHTMN_restoreEnemy(), WFIGHTMN_runCommand(), WFIGHTMN_runTurn(), WFIGHTMN_setIdleMotion(), WFIGHTMN_start(), WFIGHTMN_startTech(), WFIGHTMN_tag(), WFIGHTMN_takeDamage(), and WFIGHTTS_battleTest().
| FighterCache FIGHTSTG_fighterCache |
the fighters' data, loaded one at a time
Shared between the overlay's objects.
Definition at line 21 of file battle.c.
Referenced by FIGHTSTG_addFighterModel(), FIGHTSTG_cacheFighter(), FIGHTSTG_createFace(), FIGHTSTG_faceModel(), FIGHTSTG_getEnemyView(), FIGHTSTG_getFighterInfo(), FIGHTSTG_getFighterView(), FIGHTSTG_loadCamera(), FIGHTSTG_runScriptModel(), FIGHTSTG_updateBattleScript(), FIGHTSTG_updateDigimonChange(), FIGHTSTG_updateEntrance(), fillEffectLists(), runCameraList(), WFIGHTTS_fighterList(), and WFIGHTTS_motionList().
| BattleFuncs FIGHTSTG_battleFuncs |
the battle's stats and the functions that compute with them
Definition at line 25 of file battle.c.
Referenced by boostAttack(), boostDefense(), boostFieldElement(), boostFighterStat(), boostSideStat(), boostSpeed(), FIGHTSTG_adjustDamage(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeDamage(), FIGHTSTG_computeHeal(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_computeStats(), FIGHTSTG_getDamage(), FIGHTSTG_getEventDelay(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), FIGHTSTG_raiseAllStatus(), FIGHTSTG_raiseEachStatus(), FIGHTSTG_raiseOneStatus(), FIGHTSTG_reviveFighter(), FIGHTSTG_rollCritical(), FIGHTSTG_rollDrain(), FIGHTSTG_rollHit(), FIGHTSTG_rollMagicCritical(), FIGHTSTG_rollMagicHit(), FIGHTSTG_rollMultiHit(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollStatusRaise(), FIGHTSTG_rollSteal(), FIGHTSTG_showTechPage(), FIGHTSTG_startAction(), FIGHTSTG_startDoubleMagic(), FIGHTSTG_startEndBattle(), FIGHTSTG_testConfusion(), FIGHTSTG_testParalysis(), FIGHTSTG_testRunAway(), FIGHTSTG_testWakeUp(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryKnockOut(), FIGHTSTG_tryNoSwitch(), FIGHTSTG_tryParalysis(), FIGHTSTG_tryPoison(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateConfusedMenu(), FIGHTSTG_updateCounterattack(), FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateEnemyTurn(), FIGHTSTG_updateFirstTech(), FIGHTSTG_updateTechMenu(), getHealDamage(), healEnemy(), healWithTech(), lowerEnemySpeed(), lowerEnemyStat(), playCounterTech(), queueFirstTurns(), rollStatus(), setUpItemTech(), useSupportTech(), wakeUpOrCounter(), weakenEnemyDefense(), WFIGHTMN_chargeGauge(), WFIGHTMN_recover(), WFIGHTMN_runAway(), WFIGHTMN_runCommand(), WFIGHTMN_startTech(), and WFIGHTMN_takeDamage().