Skip to Content
The Alchemy Project

struct BATTLE_BASE_STATS

A unit's base stats from UNIT.baseHp on, as one block: an enemy's level or strength change keeps a copy to hold each new stat to 70 percent of the old (btEnemyAdjustLevel, btUnitStrengthen), and the Clear Data password writes its members' stats through it.

Declared in battle_unit.h.

Fields

NameDescription
Sint16baseHp
Sint16basePp
Sint16hpGauge
Sint16ppGauge
Uint16baseAttack
Uint16baseDefense
Uint16baseAgility
Uint8baseLuck
Uint8actionCount
Uint8hpRegen
Uint8ppRegen
Uint8unused [2]UNIT.baseUnused.
BATTLE_ELEMENT_STATSelement [ELEMENT_COUNT]Only the power is read.

Description

A unit's base stats from UNIT.baseHp on, as one block: an enemy's level or strength change keeps a copy to hold each new stat to 70 percent of the old (btEnemyAdjustLevel, btUnitStrengthen), and the Clear Data password writes its members' stats through it.

struct BATTLE_BASE_STATS

Referenced by btEnemyAdjustLevel(), btUnitStrengthen(), scClearApplyImportedData() and scClearPackPasswordData().

Definition at line 585 of file battle_unit.h.

Fields in detail

baseHp

Sint16 baseHp

basePp

Sint16 basePp

hpGauge

Sint16 hpGauge

ppGauge

Sint16 ppGauge

baseAttack

Uint16 baseAttack

baseDefense

Uint16 baseDefense

baseAgility

Uint16 baseAgility

baseLuck

Uint8 baseLuck

actionCount

Uint8 actionCount

hpRegen

Uint8 hpRegen

ppRegen

Uint8 ppRegen

unused

Uint8 unused[2]

UNIT.baseUnused.

element

BATTLE_ELEMENT_STATS element[ELEMENT_COUNT]

Only the power is read.