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 element.

Declared in character.h.

Fields

NameDescription
Sint32attackElementThe element of its attacks, ELEMENT_NONE for most (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 element.

struct ENEMY_ELEMENT_PRESET

Referenced by EnemyElementPresetTable.

Definition at line 226 of file character.h.

Fields in detail

attackElement

Sint32 attackElement

The element of its attacks, ELEMENT_NONE for most (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.