src/battle/battle_tables.c
The battle's small tables: where a formation's enemies stand, the party's weapon sprites, the camera's command matrix, how an ability weakens with distance, and the forms Dullahan takes.
#include "enemy_ids.h"#include "fixed_math.h"#include "macros.h"#include "sprite_ids.h"#include "battle/weapon_kind.h"
Variables
| Name | Description | |
|---|---|---|
const Uint32 | BattleTablesUnusedWord | Unused: a word no code names, at the head of the tables; The Broken Seal's is 16. |
const Sint8 | BattleFormationCenteredOffsets [] | Where a centred formation's enemies stand, as places from the middle of the line: the first in the middle, the rest either side in turn. |
const Uint16 | BattleUnitWeaponAnimationsIsaac [] | Each party member's weapon in battle, by BATTLE_WEAPON_KIND. |
const Uint16 | BattleUnitWeaponAnimationsGaret [] | Garet's battle sprite for each kind of weapon he holds. |
const Uint16 | BattleUnitWeaponAnimationsIvan [] | Ivan's battle sprite for each kind of weapon he holds. |
const Uint16 | BattleUnitWeaponAnimationsMia [] | Mia's battle sprite for each kind of weapon she holds. |
const Uint16 | BattleUnitWeaponAnimationsJenna [] | Jenna's battle sprite for each kind of weapon she holds. |
const Uint16 | BattleUnitWeaponAnimationsFelix [] | Felix's battle sprite for each kind of weapon he holds. |
const Uint16 | BattleUnitWeaponAnimationsSheba [] | Sheba's battle sprite for each kind of weapon she holds. |
const Uint16 | BattleUnitWeaponAnimationsPiers [] | Piers's battle sprite for each kind of weapon he holds. |
const Sint8 | BattlePlacementSpots [] | Spots on the battlefield, x and y pixels from its centre, each layout ended by a 0, 0 pair: the party's four, the same four again, then six in the enemies' column (ENEMY_COLUMN_X). |
const FIXED | BattleCameraCommandMatrix [] | The tilt the camera adds while commands are chosen: a shear that moves x by -0.8 of y. |
Uint8 | RangeFalloffEffectChance [] | The chance an effect lands. |
Sint32 | RangeFalloffPpLoss [] | The PP an effect drains. |
Sint32 | RangeFalloffHealHp [] | The HP healed. |
Sint32 | RangeFalloffPpDamage [] | The PP damage done. |
Sint32 | RangeFalloffPsynergyDamage [] | Psynergy's damage. |
Sint32 | RangeFalloffSummonDamage [] | A summon's damage. |
Sint32 | RangeFalloffEnemyDamage [] | An enemy ability's damage. |
Sint32 | RangeFalloffHealPp [] | The PP restored. |
Sint32 | RangeFalloffEffectDamage [] | An effect's own damage. |
Uint16 | BattleAIDullahanForms [] | The enemy definitions Dullahan acts as, one drawn at random. |
Uint16 | BattleAIUnusedDullahanForms [] | Unused: three zeros after Dullahan's forms that no code reads. |
Description
The battle's small tables: where a formation's enemies stand, the party's weapon sprites, the camera's command matrix, how an ability weakens with distance, and the forms Dullahan takes.
Variables in detail
BattleTablesUnusedWord
const Uint32 BattleTablesUnusedWord
Unused: a word no code names, at the head of the tables; The Broken Seal's is 16.
Definition at line 13 of file battle_tables.c.
BattleFormationCenteredOffsets
const Sint8 BattleFormationCenteredOffsets[]
Where a centred formation's enemies stand, as places from the middle of the line: the first in the middle, the rest either side in turn.
Referenced by btUnitCollect().
Definition at line 17 of file battle_tables.c.
BattleUnitWeaponAnimationsIsaac
const Uint16 BattleUnitWeaponAnimationsIsaac[]
Each party member's weapon in battle, by BATTLE_WEAPON_KIND. Isaac's battle sprite for each kind
of weapon he holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 22 of file battle_tables.c.
BattleUnitWeaponAnimationsGaret
const Uint16 BattleUnitWeaponAnimationsGaret[]
Garet's battle sprite for each kind of weapon he holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 32 of file battle_tables.c.
BattleUnitWeaponAnimationsIvan
const Uint16 BattleUnitWeaponAnimationsIvan[]
Ivan's battle sprite for each kind of weapon he holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 42 of file battle_tables.c.
BattleUnitWeaponAnimationsMia
const Uint16 BattleUnitWeaponAnimationsMia[]
Mia's battle sprite for each kind of weapon she holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 52 of file battle_tables.c.
BattleUnitWeaponAnimationsJenna
const Uint16 BattleUnitWeaponAnimationsJenna[]
Jenna's battle sprite for each kind of weapon she holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 62 of file battle_tables.c.
BattleUnitWeaponAnimationsFelix
const Uint16 BattleUnitWeaponAnimationsFelix[]
Felix's battle sprite for each kind of weapon he holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 72 of file battle_tables.c.
BattleUnitWeaponAnimationsSheba
const Uint16 BattleUnitWeaponAnimationsSheba[]
Sheba's battle sprite for each kind of weapon she holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 82 of file battle_tables.c.
BattleUnitWeaponAnimationsPiers
const Uint16 BattleUnitWeaponAnimationsPiers[]
Piers's battle sprite for each kind of weapon he holds.
Referenced by btUnitGetWeaponSprite().
Definition at line 92 of file battle_tables.c.
BattlePlacementSpots
const Sint8 BattlePlacementSpots[]
Spots on the battlefield, x and y pixels from its centre, each layout ended by a 0, 0 pair: the
party's four, the same four again, then six in the enemies' column (ENEMY_COLUMN_X). Only the
unused btPlacementGetStepPair reads it, by party place.
Referenced by btPlacementGetStepPair() and btUnitRefreshPlacement().
Definition at line 105 of file battle_tables.c.
BattleCameraCommandMatrix
const FIXED BattleCameraCommandMatrix[]
The tilt the camera adds while commands are chosen: a shear that moves x by -0.8 of y.
Referenced by btCameraApplyTransform().
Definition at line 127 of file battle_tables.c.
RangeFalloffEffectChance
Uint8 RangeFalloffEffectChance[]
The chance an effect lands.
Referenced by btAbilityApplyToTarget().
Definition at line 139 of file battle_tables.c.
RangeFalloffPpLoss
Sint32 RangeFalloffPpLoss[]
The PP an effect drains.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 141 of file battle_tables.c.
RangeFalloffHealHp
Sint32 RangeFalloffHealHp[]
The HP healed.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 143 of file battle_tables.c.
RangeFalloffPpDamage
Sint32 RangeFalloffPpDamage[]
The PP damage done.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 145 of file battle_tables.c.
RangeFalloffPsynergyDamage
Sint32 RangeFalloffPsynergyDamage[]
Psynergy's damage.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 147 of file battle_tables.c.
RangeFalloffSummonDamage
Sint32 RangeFalloffSummonDamage[]
A summon's damage.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 149 of file battle_tables.c.
RangeFalloffEnemyDamage
Sint32 RangeFalloffEnemyDamage[]
An enemy ability's damage.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 151 of file battle_tables.c.
RangeFalloffHealPp
Sint32 RangeFalloffHealPp[]
The PP restored.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 153 of file battle_tables.c.
RangeFalloffEffectDamage
Sint32 RangeFalloffEffectDamage[]
An effect's own damage.
References Sint32.
Referenced by btAbilityApplyToTarget().
Definition at line 155 of file battle_tables.c.
BattleAIDullahanForms
Uint16 BattleAIDullahanForms[]
The enemy definitions Dullahan acts as, one drawn at random.
Referenced by btAIChooseAction().
Definition at line 158 of file battle_tables.c.
BattleAIUnusedDullahanForms
Uint16 BattleAIUnusedDullahanForms[]
Unused: three zeros after Dullahan's forms that no code reads.
Definition at line 162 of file battle_tables.c.