|
Digimon World 3 decomp
The European version, SLES_039.36
|
FIGHTSTG's counterattack, and the European version's revival of a fighter. More...
#include "battle/battle_mode.h"Go to the source code of this file.
Functions | |
| static void | playCounterTech (Counterattack *task, BattleChild *children) |
| Starts the battle script of the counterattack's technique, with its element's stage, and its hit result, and empties the countering fighter's charge. | |
| static void | showCounterResult (Counterattack *task, BattleChild *children) |
| Shows whether the counterattack hit and for how much, and takes the damage from the countered fighter's HP (queueing its knockout at 0). | |
| void | FIGHTSTG_updateCounterattack (Counterattack *task, BattleChild *children) |
| A counterattack (FIGHTSTG_startCounterattack): the player's from an event of type 8 or the partner's first technique, the enemy's from its table entry; substate 0 plays the technique (playCounterTech), 1 shows the damage and takes the HP (showCounterResult), 2 hands received to WFIGHTMN_chargeGauge. | |
| Counterattack * | FIGHTSTG_startCounterattack (s32 side, s32 received, s32 noKnockOutEvent) |
| Starts SIDE's counterattack (FIGHTSTG_updateCounterattack) to RECEIVED damage; NOKNOCKOUTEVENT keeps a knockout from queueing its event. | |
| void | FIGHTSTG_reviveFighter (s32 tech, s32 fighter) |
| Revives one of the player's fighters at full HP, clearing its status events, and raises its defense by tech's effectPower (FIGHTSTG_battleFuncs.changeBoost) | |
FIGHTSTG's counterattack, and the European version's revival of a fighter.
Definition in file counterattack.c.
|
inlinestatic |
Starts the battle script of the counterattack's technique, with its element's stage, and its hit result, and empties the countering fighter's charge.
Definition at line 8 of file counterattack.c.
Referenced by FIGHTSTG_updateCounterattack().
|
inlinestatic |
Shows whether the counterattack hit and for how much, and takes the damage from the countered fighter's HP (queueing its knockout at 0).
Definition at line 70 of file counterattack.c.
Referenced by FIGHTSTG_updateCounterattack().
| void FIGHTSTG_updateCounterattack | ( | Counterattack * | task, |
| BattleChild * | children | ||
| ) |
A counterattack (FIGHTSTG_startCounterattack): the player's from an event of type 8 or the partner's first technique, the enemy's from its table entry; substate 0 plays the technique (playCounterTech), 1 shows the damage and takes the HP (showCounterResult), 2 hands received to WFIGHTMN_chargeGauge.
The match depends on playCounterTech's technique and side being declared in it, on the event index and the stats being variables of their own, on the stage being written element * 3 + 0x21 and one more and on one row variable for both of playCounterTech's rows.
< loses turns at random (FIGHTSTG_battleFuncs.testParalysis)
< a technique of the partner's, run as its command
Definition at line 103 of file counterattack.c.
Referenced by FIGHTSTG_startCounterattack().
| Counterattack * FIGHTSTG_startCounterattack | ( | s32 | side, |
| s32 | received, | ||
| s32 | noKnockOutEvent | ||
| ) |
Starts SIDE's counterattack (FIGHTSTG_updateCounterattack) to RECEIVED damage; NOKNOCKOUTEVENT keeps a knockout from queueing its event.
Definition at line 200 of file counterattack.c.
Referenced by FIGHTSTG_updateFirstTech(), FIGHTSTG_updateTechAction(), and wakeUpOrCounter().
Revives one of the player's fighters at full HP, clearing its status events, and raises its defense by tech's effectPower (FIGHTSTG_battleFuncs.changeBoost)
Definition at line 212 of file counterattack.c.
Referenced by restoreSide().