Skip to Content
The Alchemy Project

struct CLASS_DEFINITION

A class: its series, the element levels it needs, its stat multipliers and the abilities it teaches.

Declared in character.h.

Fields

NameDescription
longseriesThe series the class belongs to; gmClassDetermine picks the series from the character's two strongest elements.
Uint8required [4]The element levels the class needs, in tens: the last class of the series the character meets in all four is its class.
Uint8hpTenths of the base stat.
Uint8ppTenths of the base stat.
Uint8attackTenths of the base stat.
Uint8defenseTenths of the base stat.
Uint8agilityTenths of the base stat.
Uint8luckTenths of the base stat.
Uint8padding [2]
CLASS_ABILITYabilities [CLASS_ABILITY_SLOTS]The Psynergy the class teaches.
Uint8weakEffects [4][0] to [2]: the ability effects the class is weak to (gmBattleAbilityIsWeakToEffect); [3] is 0 in every row and not read.

Description

A class: its series, the element levels it needs, its stat multipliers and the abilities it teaches.

struct CLASS_DEFINITION

Referenced by ClassDefinitionTable, gmClassGetDefinition(), gmUnitCalculate() and gmUnitRefreshPsynergy().

Definition at line 90 of file character.h.

Fields in detail

series

long series

The series the class belongs to; gmClassDetermine picks the series from the character's two strongest elements.

required

Uint8 required[4]

The element levels the class needs, in tens: the last class of the series the character meets in all four is its class.

hp

Uint8 hp

Tenths of the base stat.

pp

Uint8 pp

Tenths of the base stat.

attack

Uint8 attack

Tenths of the base stat.

defense

Uint8 defense

Tenths of the base stat.

agility

Uint8 agility

Tenths of the base stat.

luck

Uint8 luck

Tenths of the base stat.

padding

Uint8 padding[2]

abilities

CLASS_ABILITY abilities[CLASS_ABILITY_SLOTS]

The Psynergy the class teaches.

weakEffects

Uint8 weakEffects[4]

[0] to [2]: the ability effects the class is weak to (gmBattleAbilityIsWeakToEffect); [3] is 0 in every row and not read.