struct LEVEL_UP_RESULT
A level up's result: the level reached and the gain in each stat. More…
Declared in character.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | level | the level reached; the old level when it was already 99 |
Uint16 | ability | Always 0xffff: gmUnitLevelUp stores no ability here, and the spoils find a new one by comparing the unit's actions with a copy taken before. |
Uint16 | hp | The gain in each base stat; the spoils read them as signed. |
Uint16 | pp | |
Uint16 | attack | |
Uint16 | defense | |
Uint16 | agility | |
Uint16 | luck |
Description
A level up's result: the level reached and the gain in each stat. The caller
provides it; gmUnitLevelUp fills it, and btAwardSpoils reports each gain that
is not zero.
struct LEVEL_UP_RESULT
Referenced by btAwardSpoils(), gmUnitCheckLevelUp(), gmUnitLevelUp(), gmUnitLevelUpTo() and gmUnitTryLevelUp().
Definition at line 293 of file character.h.
Fields in detail
level
Sint16 level
the level reached; the old level when it was already 99
ability
Uint16 ability
Always 0xffff: gmUnitLevelUp stores no ability here, and
the spoils find a new one by comparing the unit's actions
with a copy taken before.
hp
Uint16 hp
The gain in each base stat; the spoils read them as signed.
pp
Uint16 pp
attack
Uint16 attack
defense
Uint16 defense
agility
Uint16 agility
luck
Uint16 luck