Skip to Content
The Alchemy Project

src/battle/battle_unit_tables.c

What every battle unit starts with: its actor script, and the kind of weapon each item is.

Variables

NameDescription
const Sint32BattleObjectEmptyScript []A lone SC_END: a battle unit's actor script, which btObjectMake starts.
const Uint16BattleUnitWeaponKinds []Each weapon's kind: bits 15..9 the kind, which indexes each member's weapon animation table (BattleUnitWeaponAnimationsIsaac and the rest), and 8..0 the item id; ended by 0xffff (btUnitGetWeaponKind).

Description

What every battle unit starts with: its actor script, and the kind of weapon each item is.

Variables in detail

BattleObjectEmptyScript

const Sint32 BattleObjectEmptyScript[]

A lone SC_END: a battle unit's actor script, which btObjectMake starts.

References Sint32.

Referenced by btObjectMake().

Definition at line 8 of file battle_unit_tables.c.

BattleUnitWeaponKinds

const Uint16 BattleUnitWeaponKinds[]

Each weapon's kind: bits 15..9 the kind, which indexes each member's weapon animation table (BattleUnitWeaponAnimationsIsaac and the rest), and 8..0 the item id; ended by 0xffff (btUnitGetWeaponKind).

Referenced by btUnitGetWeaponKind().

Definition at line 11 of file battle_unit_tables.c.