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
Sint16levelthe level reached; the old level when it was already 99
Uint16abilityAlways 0xffff: gmUnitLevelUp stores no ability here, and the spoils find a new one by comparing the unit's actions with a copy taken before.
Uint16hpThe gain in each base stat; the spoils read them as signed.
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 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