8 0x0000, 0x0001, 0x0004, 0x0000,
27 if (fighter->
id == 0 || fighter->
hp == 0) {
30 if (fighter->
boosts[stat] != 0) {
35 fighter->
boosts[stat] += value * percent / 128;
36 if (fighter->
boosts[stat] < min) {
37 fighter->
boosts[stat] = min;
39 if (fighter->
boosts[stat] > value) {
40 fighter->
boosts[stat] = value;
55 ratio = damage * 100 / fighter->
maxHp;
56 value = ratio * ratio / 20;
58 acc = &partner->
equip[4];
59 for (i = 0; i < 2; i++) {
60 if (acc[i] == 0x149) {
62 }
else if (acc[i] == 0x14A) {
63 value += value * 4 / 10;
80 cost =
TECHS[(
id & 0x1FFF) - 1].mp;
86 if (partner->
equip[4] == 0x143 || partner->
equip[4] == 0x144) {
87 item = partner->
equip[4];
89 if (partner->
equip[5] == 0x143 || partner->
equip[5] == 0x144) {
90 item = partner->
equip[5];
Battle FIGHTSTG_battle
the battle: its fighters, speed and drawing functions
#define SIDE_PLAYER
The battle's sides, as the functions that take a side want them: side >> 4 is its row of FIGHTSTG_bat...
BattleStats * FIGHTSTG_computeStats(u8 side, s32 which, s32 index)
Works out a side's stats into its BattleStats: the partner's totals with the fighter's boosts,...
FIGHTSTG.PRO: the battle.
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 ...
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,...
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.
s16 FIGHTSTG_boostStats[]
the stat of BattleStats.stats that each of BattleFighter.boosts adds to
GameState GAME
The save data, the game mode and the methods.
TechData TECHS[443]
The techniques, from 1: technique n is TECHS[n - 1].
One of the battle's fighters, three on each side (WFIGHTMN's BattleUnit): a partner's HP and MP go ba...
s16 id
the Digimon (DIGIMON_DATA)
s16 boosts[4]
added to the stats FIGHTSTG_boostStats picks
s32 active[2]
each side's fighter
BattleFighter fighters[2][3]
A side's stats as FIGHTSTG_computeStats works them out.
s16 stats[5]
with the fighter's boosts
struct PartnerStats *(* getPartnerStats)(s32 partner)
s32(* getPartyMember)(u32 index)
struct ItemInfo *(* get)(s32 item)
getItem
ItemRecord data
the type's record, or the usable items' effect
A partner Digimon from its name on (Partner.info), as getPartnerStats gives it.