src/game/element_table.c
The element tables: class series by element, element power and resistance by level, the enemies' element presets and the power and resistance curve.
Variables
| Name | Description | |
|---|---|---|
const Sint32 | ClassSeriesByElements [] | ClassSeriesByElements, read as [strongest * 4 + second], a row for each strongest element and a column for each second, in element order (Venus, Mercury, Mars, Jupiter). |
ELEMENT_LEVEL_BONUS | ElementPowerResistByLevel [16] | A character's base power and resistance in an element, by its whole element level 0 to 15; gmUnitCalculateBaseElements adds the level's tenths to both. |
const ENEMY_ELEMENT_PRESET | EnemyElementPresetTable [] | The 44 enemy element presets, by ENEMY_DEFINITION.elementPreset; each is named by the enemies that have it, in the English release's words. |
const Sint16 | ElementPowerResistCurve [5][2] | Pairs of an element difference (power less resistance) and what it adds to the multiplier in 256ths (256 = 1x), from 200 (+256) down to -200 (-256); gmBattleGetElementMultiplier interpolates and adds 256. |
Description
The element tables: class series by element, element power and resistance by level, the enemies' element presets and the power and resistance curve.
Variables in detail
ClassSeriesByElements
const Sint32 ClassSeriesByElements[]
ClassSeriesByElements, read as [strongest * 4 + second], a row for each
strongest element and a column for each second, in element order (Venus,
Mercury, Mars, Jupiter).
References Sint32.
Referenced by gmClassGetSeries().
Definition at line 10 of file element_table.c.
ElementPowerResistByLevel
ELEMENT_LEVEL_BONUS ElementPowerResistByLevel[16]
A character's base power and resistance in an element, by its whole element level 0 to 15;
gmUnitCalculateBaseElements adds the level's tenths to both.
Referenced by gmUnitCalculateBaseElements().
Definition at line 19 of file element_table.c.
EnemyElementPresetTable
const ENEMY_ELEMENT_PRESET EnemyElementPresetTable[]
The 44 enemy element presets, by ENEMY_DEFINITION.elementPreset; each is named by the enemies
that have it, in the English release's words.
Referenced by gmEnemyGetAttackElement(), gmUnitCalculateBaseElements() and gmUnitGetElementLevels().
Definition at line 29 of file element_table.c.
ElementPowerResistCurve
const Sint16 ElementPowerResistCurve[5][2]
Pairs of an element difference (power less resistance) and what it adds to
the multiplier in 256ths (256 = 1x), from 200 (+256) down to -200 (-256);
gmBattleGetElementMultiplier interpolates and adds 256.
Referenced by gmBattleGetElementMultiplier().
Definition at line 518 of file element_table.c.