Skip to Content
The Alchemy Project

struct LEVEL_UP_RESULT

A level up's result: the level reached and the gain in each stat. More…

Declared in character.h.

Fields

NameDescription
Sint16level
Uint16abilitySet to -1 and read by nothing: the battle finds an ability learned by comparing the unit's Psynergy before and after.
Uint16hp
Uint16pp
Uint16attack
Uint16defense
Uint16agility
Uint16luck

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 gmUnitCheckLevelUp(), gmUnitLevelUp(), gmUnitLevelUpTo() and gmUnitTryLevelUp().

Definition at line 293 of file character.h.

Fields in detail

level

Sint16 level

ability

Uint16 ability

Set to -1 and read by nothing: the battle finds an ability learned by comparing the unit's Psynergy before and after.

hp

Uint16 hp

pp

Uint16 pp

attack

Uint16 attack

defense

Uint16 defense

agility

Uint16 agility

luck

Uint16 luck