Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
BattleStats Struct Reference

A side's stats as FIGHTSTG_computeStats works them out. More...

#include <battle/battle_mode/battle.h>

Collaboration diagram for BattleStats:
[legend]

Data Fields

s16 level
 
s16 stats [5]
 with the fighter's boosts
 
s16 resist [12]
 
u8 flags
 the fighter's
 
u8 family
 
u8 damageBonus
 in 64ths: the fighter's charge
 
u8 damageCut
 taken off each hit
 
u8 weaponFamilies [3]
 from the equipment, as are the ones after
 
u8 element
 the accessory's, for techniques without one
 
u8 elementPower
 
HitStatus statuses [5]
 by HIT_*, from the weapon
 
u8 tripleHit
 plain physical techniques hit 3 times for 0.4 of the damage
 
u8 criticalBonus
 to plain techniques' critical chance, off their accuracy
 
u8 counter
 answers hits with the partner's first skill
 
u8 accuracy
 
u8 evasion
 
u8 runAwayBonus
 to the player's chance to run away
 
u8 runAwayGuard
 halves the enemy's chance to run away
 
u8 stealBonus
 
u8 pad
 only cleared with the rest (HEAP.zero of sizeof); BattleFuncs.stats[2] spans 0x80 bytes
 

Detailed Description

A side's stats as FIGHTSTG_computeStats works them out.

A family is the kind of Digimon that a technique (TechData.family) or a weapon does half again the damage to, and to which it lands critical hits more often.

Definition at line 305 of file battle.h.

Field Documentation

◆ level

◆ stats

◆ resist

◆ flags

u8 BattleStats::flags

the fighter's

Definition at line 309 of file battle.h.

Referenced by computeEnemyStats(), FIGHTSTG_computeStats(), and FIGHTSTG_testRunAway().

◆ family

◆ damageBonus

u8 BattleStats::damageBonus

in 64ths: the fighter's charge

Definition at line 311 of file battle.h.

Referenced by computeEnemyStats(), FIGHTSTG_adjustDamage(), and FIGHTSTG_computeStats().

◆ damageCut

u8 BattleStats::damageCut

taken off each hit

Definition at line 312 of file battle.h.

Referenced by FIGHTSTG_adjustDamage(), FIGHTSTG_computeMagicDamage(), and FIGHTSTG_computeStats().

◆ weaponFamilies

u8 BattleStats::weaponFamilies[3]

from the equipment, as are the ones after

Definition at line 313 of file battle.h.

Referenced by choosePartnerScript(), FIGHTSTG_adjustDamage(), FIGHTSTG_computeStats(), FIGHTSTG_rollCritical(), and WFIGHTMN_startTech().

◆ element

u8 BattleStats::element

the accessory's, for techniques without one

Definition at line 314 of file battle.h.

Referenced by FIGHTSTG_adjustDamage(), FIGHTSTG_computeStats(), playCounterTech(), and WFIGHTMN_startTech().

◆ elementPower

u8 BattleStats::elementPower

◆ statuses

◆ tripleHit

u8 BattleStats::tripleHit

plain physical techniques hit 3 times for 0.4 of the damage

Definition at line 317 of file battle.h.

Referenced by choosePartnerScript(), FIGHTSTG_adjustDamage(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeStats(), and FIGHTSTG_startAction().

◆ criticalBonus

u8 BattleStats::criticalBonus

to plain techniques' critical chance, off their accuracy

Definition at line 318 of file battle.h.

Referenced by FIGHTSTG_computeStats(), FIGHTSTG_rollCritical(), and FIGHTSTG_rollHit().

◆ counter

u8 BattleStats::counter

answers hits with the partner's first skill

Definition at line 319 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_updateCounterattack().

◆ accuracy

u8 BattleStats::accuracy

Definition at line 320 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_rollHit().

◆ evasion

u8 BattleStats::evasion

Definition at line 321 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_rollHit().

◆ runAwayBonus

u8 BattleStats::runAwayBonus

to the player's chance to run away

Definition at line 322 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_testRunAway().

◆ runAwayGuard

u8 BattleStats::runAwayGuard

halves the enemy's chance to run away

Definition at line 323 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_testRunAway().

◆ stealBonus

u8 BattleStats::stealBonus

Definition at line 324 of file battle.h.

Referenced by FIGHTSTG_computeStats(), and FIGHTSTG_rollSteal().

◆ pad

u8 BattleStats::pad

only cleared with the rest (HEAP.zero of sizeof); BattleFuncs.stats[2] spans 0x80 bytes

Definition at line 325 of file battle.h.


The documentation for this struct was generated from the following file: