Alchemy
Loading...
Searching...
No Matches

CharacterDefinition Struct Reference

A character's definition: the growth curves of its stats, its element bonus, starting level and starting equipment. More...

#include <character.h>

Data Fields

u8 unk00 [0x50]
 Twenty words in chars.tsv; not named by any TBS code.
u8 elementBonus [4]
 Added to ten times the Djinn set in each element to give the character's element levels (Unit_GetElementLevels).
u8 startingLevel
 the level a new game raises the character to
u8 unk097
 Padding in chars.tsv.
u16 items [13]
 The starting items, each added and equipped at a new game; the low nine bits are the item.
u8 unk0b2 [2]
 Padding in chars.tsv.
s16 hp [6]
 The growth curves: each stat at levels 0, 20, 40, 60, 80 and 100.
s16 pp [6]
u16 atk [6]
u16 def [6]
u16 agi [6]
u8 luck [6]

Detailed Description

A character's definition: the growth curves of its stats, its element bonus, starting level and starting equipment.

Definition at line 17 of file character.h.

Field Documentation

◆ unk00

u8 CharacterDefinition::unk00[0x50]

Twenty words in chars.tsv; not named by any TBS code.

Definition at line 18 of file character.h.

◆ hp

s16 CharacterDefinition::hp[6]

The growth curves: each stat at levels 0, 20, 40, 60, 80 and 100.

A level up adds a twentieth of the step around the new level, with a random part; level 1 adds the first point (Owner_LevelUp).

Definition at line 23 of file character.h.

Referenced by Owner_LevelUp().

◆ pp

s16 CharacterDefinition::pp[6]

Definition at line 24 of file character.h.

Referenced by Owner_LevelUp().

◆ atk

u16 CharacterDefinition::atk[6]

Definition at line 25 of file character.h.

Referenced by Owner_LevelUp().

◆ def

u16 CharacterDefinition::def[6]

Definition at line 26 of file character.h.

Referenced by Owner_LevelUp().

◆ agi

u16 CharacterDefinition::agi[6]

Definition at line 27 of file character.h.

Referenced by Owner_LevelUp().

◆ luck

u8 CharacterDefinition::luck[6]

Definition at line 28 of file character.h.

Referenced by Owner_LevelUp().

◆ elementBonus

u8 CharacterDefinition::elementBonus[4]

Added to ten times the Djinn set in each element to give the character's element levels (Unit_GetElementLevels).

Definition at line 32 of file character.h.

Referenced by Unit_GetElementLevels().

◆ startingLevel

u8 CharacterDefinition::startingLevel

the level a new game raises the character to

Definition at line 33 of file character.h.

Referenced by Party_InitCharacters().

◆ unk097

u8 CharacterDefinition::unk097

Padding in chars.tsv.

Definition at line 34 of file character.h.

◆ items

u16 CharacterDefinition::items[13]

The starting items, each added and equipped at a new game; the low nine bits are the item.

Definition at line 37 of file character.h.

Referenced by Party_InitCharacters().

◆ unk0b2

u8 CharacterDefinition::unk0b2[2]

Padding in chars.tsv.

Definition at line 38 of file character.h.