Skip to Content
The Alchemy Project

include/battle/weapon_kind.h

The kinds of weapon a party member's attack shows, and how BattleUnitWeaponKinds packs one with its item.

Included by battle_internal.h, battle_tables.c and battle_unit_tables.c.

Macros

NameDescription
#defineWEAPON_ITEM_MASK 0x1ffBattleUnitWeaponKinds: a weapon's item id with its kind above it.
#defineWEAPON_KIND_SHIFT 9
#defineWEAPON (item, kind) ((item) | (kind) << WEAPON_KIND_SHIFT)A row of BattleUnitWeaponKinds: the item and its kind.

Enumerations

NameDescription
enumBATTLE_WEAPON_KIND { WEAPON_KIND_LONG_SWORD, WEAPON_KIND_LIGHT_BLADE, WEAPON_KIND … }The kinds of weapon a party member's attack shows, by the rows of BattleUnitWeaponKinds lists for each.

Description

The kinds of weapon a party member's attack shows, and how BattleUnitWeaponKinds packs one with its item.

Macros in detail

WEAPON_ITEM_MASK

#define WEAPON_ITEM_MASK 0x1ff

BattleUnitWeaponKinds: a weapon's item id with its kind above it.

Referenced by btUnitGetWeaponKind() and btUnitGetWeaponSprite().

Definition at line 7 of file weapon_kind.h.

WEAPON_KIND_SHIFT

#define WEAPON_KIND_SHIFT 9

Referenced by btUnitGetWeaponKind().

Definition at line 8 of file weapon_kind.h.

WEAPON

#define WEAPON(item, kind) ((item) | (kind) << WEAPON_KIND_SHIFT)

A row of BattleUnitWeaponKinds: the item and its kind.

Referenced by BattleUnitWeaponKinds.

Definition at line 25 of file weapon_kind.h.

Enumerations in detail

BATTLE_WEAPON_KIND

enum BATTLE_WEAPON_KIND

The kinds of weapon a party member's attack shows, by the rows of BattleUnitWeaponKinds lists for each.

EnumeratorValueDescription
WEAPON_KIND_LONG_SWORDLong Sword to Muramasa
WEAPON_KIND_LIGHT_BLADEMachete to Bandit's Sword
WEAPON_KIND_AXEBattle Axe to Demon Axe
WEAPON_KIND_MACEMace to Wicked Mace
WEAPON_KIND_STAFFWooden Stick to Shaman's Rod, but the two ankhs among them
WEAPON_KIND_ANKHthe Blessed Ankh and Angelic Ankh
WEAPON_KIND_NONEan item the list lacks

Definition at line 12 of file weapon_kind.h.