Alchemy
Loading...
Searching...
No Matches

ClassDefinition Struct Reference

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

#include <character.h>

Data Fields

long series
 The series the class belongs to; Class_Determine picks the series from the character's two strongest elements.
u8 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.
u8 hp
 tenths of the base stat
u8 pp
 tenths of the base stat
u8 atk
 tenths of the base stat
u8 def
 tenths of the base stat
u8 agi
 tenths of the base stat
u8 luck
 tenths of the base stat
u8 unk0e [2]
 Padding in classes.tsv.
struct ClassAbility abilities [16]
 the Psynergy the class teaches
u8 unk50 [4]
 [0] to [2]: the ability effects the class is weak to (BattleTarget_IsWeakToEffect); [3] is not read there.

Detailed Description

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

Definition at line 50 of file character.h.

Field Documentation

◆ series

long ClassDefinition::series

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

Definition at line 53 of file character.h.

◆ required

u8 ClassDefinition::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.

Definition at line 56 of file character.h.

◆ hp

u8 ClassDefinition::hp

tenths of the base stat

Definition at line 57 of file character.h.

Referenced by UnitCalc().

◆ pp

u8 ClassDefinition::pp

tenths of the base stat

Definition at line 58 of file character.h.

Referenced by UnitCalc().

◆ atk

u8 ClassDefinition::atk

tenths of the base stat

Definition at line 59 of file character.h.

Referenced by UnitCalc().

◆ def

u8 ClassDefinition::def

tenths of the base stat

Definition at line 60 of file character.h.

Referenced by UnitCalc().

◆ agi

u8 ClassDefinition::agi

tenths of the base stat

Definition at line 61 of file character.h.

Referenced by UnitCalc().

◆ luck

u8 ClassDefinition::luck

tenths of the base stat

Definition at line 62 of file character.h.

Referenced by UnitCalc().

◆ unk0e

u8 ClassDefinition::unk0e[2]

Padding in classes.tsv.

Definition at line 63 of file character.h.

◆ abilities

struct ClassAbility ClassDefinition::abilities[16]

the Psynergy the class teaches

Definition at line 64 of file character.h.

Referenced by Unit_RefreshPsynergy().

◆ unk50

u8 ClassDefinition::unk50[4]

[0] to [2]: the ability effects the class is weak to (BattleTarget_IsWeakToEffect); [3] is not read there.

Definition at line 67 of file character.h.

Referenced by BattleTarget_IsWeakToEffect().