Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
boosts.c File Reference

FIGHTSTG's stat boosts, the technique gauge's gain and the techniques' MP cost. More...

Include dependency graph for boosts.c:

Go to the source code of this file.

Functions

void FIGHTSTG_changeBoost (u8 side, s32 index, s32 stat, s32 percent)
 Changes a fighter's stat boost by percent 128ths of the stat without it, between minus half the stat and the stat; nothing for an empty or knocked-out fighter.
 
s32 FIGHTSTG_getGaugeGain (s32 damage)
 What the partner's damage adds to the gauge: the square of its percent of the max HP over 20, more with accessories 0x149 and 0x14A, at most 1000.
 
s32 FIGHTSTG_getTechCost (u8 side, s32 id)
 A technique's MP cost; accessories 0x143 and 0x144 cut the player's, to no less than 1.
 

Variables

s16 FIGHTSTG_boostStats []
 the stat of BattleStats.stats that each of BattleFighter.boosts adds to
 

Detailed Description

FIGHTSTG's stat boosts, the technique gauge's gain and the techniques' MP cost.

Definition in file boosts.c.

Function Documentation

◆ FIGHTSTG_changeBoost()

void FIGHTSTG_changeBoost ( u8  side,
s32  index,
s32  stat,
s32  percent 
)

Changes a fighter's stat boost by percent 128ths of the stat without it, between minus half the stat and the stat; nothing for an empty or knocked-out fighter.

Definition at line 14 of file boosts.c.

Here is the call graph for this function:

◆ FIGHTSTG_getGaugeGain()

s32 FIGHTSTG_getGaugeGain ( s32  damage)

What the partner's damage adds to the gauge: the square of its percent of the max HP over 20, more with accessories 0x149 and 0x14A, at most 1000.

Definition at line 46 of file boosts.c.

◆ FIGHTSTG_getTechCost()

s32 FIGHTSTG_getTechCost ( u8  side,
s32  id 
)

A technique's MP cost; accessories 0x143 and 0x144 cut the player's, to no less than 1.

Definition at line 74 of file boosts.c.

Variable Documentation

◆ FIGHTSTG_boostStats

s16 FIGHTSTG_boostStats[]
Initial value:
= {
0x0000, 0x0001, 0x0004, 0x0000,
}

the stat of BattleStats.stats that each of BattleFighter.boosts adds to

Definition at line 7 of file boosts.c.

Referenced by FIGHTSTG_changeBoost().