Alchemy
Loading...
Searching...
No Matches

StatWork Struct Reference

The running totals UnitCalc builds a unit's stats in, in a block of the alternate pool that it frees at the end. More...

Data Fields

s32 hp
 maximum HP
s32 pp
 maximum PP
s32 atk
 Attack.
s32 def
 Defense.
s32 agi
 Agility.
s32 unk14
 never written; a gap between Agility and Luck
s32 luck
s32 turns
 actions a round, 0 to 2
s32 hpRegen
 HP regained each round.
s32 ppRegen
 PP regained each round.
s32 element [4][2]
 [element][0] power and [1] resistance
s32 kind
 the item effect being applied
s32 unk4c [2]
 never written
s32 amount
 the amount of the item effect being applied
struct ItemDefinition * item
 the equipped item being applied
s32 unk5c
 never written

Detailed Description

The running totals UnitCalc builds a unit's stats in, in a block of the alternate pool that it frees at the end.

Definition at line 9 of file units.c.

Field Documentation

◆ hp

s32 StatWork::hp

maximum HP

Definition at line 10 of file units.c.

Referenced by UnitCalc().

◆ pp

s32 StatWork::pp

maximum PP

Definition at line 11 of file units.c.

Referenced by UnitCalc().

◆ atk

s32 StatWork::atk

Attack.

Definition at line 12 of file units.c.

Referenced by UnitCalc().

◆ def

s32 StatWork::def

Defense.

Definition at line 13 of file units.c.

Referenced by UnitCalc().

◆ agi

s32 StatWork::agi

Agility.

Definition at line 14 of file units.c.

Referenced by UnitCalc().

◆ unk14

s32 StatWork::unk14

never written; a gap between Agility and Luck

Definition at line 15 of file units.c.

◆ luck

s32 StatWork::luck

Definition at line 16 of file units.c.

Referenced by UnitCalc().

◆ turns

s32 StatWork::turns

actions a round, 0 to 2

Definition at line 17 of file units.c.

Referenced by UnitCalc().

◆ hpRegen

s32 StatWork::hpRegen

HP regained each round.

Definition at line 18 of file units.c.

Referenced by UnitCalc().

◆ ppRegen

s32 StatWork::ppRegen

PP regained each round.

Definition at line 19 of file units.c.

Referenced by UnitCalc().

◆ element

s32 StatWork::element[4][2]

[element][0] power and [1] resistance

Definition at line 20 of file units.c.

Referenced by UnitCalc().

◆ kind

s32 StatWork::kind

the item effect being applied

Definition at line 21 of file units.c.

Referenced by UnitCalc().

◆ unk4c

s32 StatWork::unk4c[2]

never written

Definition at line 22 of file units.c.

◆ amount

s32 StatWork::amount

the amount of the item effect being applied

Definition at line 23 of file units.c.

Referenced by UnitCalc().

◆ item

struct ItemDefinition* StatWork::item

the equipped item being applied

Definition at line 24 of file units.c.

Referenced by UnitCalc().

◆ unk5c

s32 StatWork::unk5c

never written

Definition at line 25 of file units.c.