Skip to Content
The Alchemy Project

struct ENEMY_ELEMENT_PRESET

An enemy's element preset in EnemyElementPresetTable: the element it attacks with, its level in each element, and its base power and resistance in each.

Declared in character.h.

Fields

NameDescription
Sint32attackElementThe element it attacks with (gmEnemyGetAttackElement).
Uint8elementLevels [4]Its level in each element; gmUnitGetElementLevels returns ten times each.
BATTLE_ELEMENT_STATSstats [4]Its base power and resistance in each element, as gmUnitCalculateBaseElements gives them to the unit.

Description

An enemy's element preset in EnemyElementPresetTable: the element it attacks with, its level in each element, and its base power and resistance in each.

struct ENEMY_ELEMENT_PRESET

Referenced by EnemyElementPresetTable and gmUnitGetElementLevels().

Definition at line 218 of file character.h.

Fields in detail

attackElement

Sint32 attackElement

The element it attacks with (gmEnemyGetAttackElement).

elementLevels

Uint8 elementLevels[4]

Its level in each element; gmUnitGetElementLevels returns ten times each.

stats

BATTLE_ELEMENT_STATS stats[4]

Its base power and resistance in each element, as gmUnitCalculateBaseElements gives them to the unit.