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
| Name | Description | |
|---|---|---|
Sint16 | baseHp | |
Sint16 | basePp | |
Sint16 | hpGauge | |
Sint16 | ppGauge | |
Uint16 | baseAttack | |
Uint16 | baseDefense | |
Uint16 | baseAgility | |
Uint8 | baseLuck | |
Uint8 | actionCount | |
Uint8 | hpRegen | |
Uint8 | ppRegen | |
Uint8 | unused [2] | UNIT.baseUnused. |
BATTLE_ELEMENT_STATS | element [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]
element
BATTLE_ELEMENT_STATS element[ELEMENT_COUNT]
Only the power is read.