Skip to Content
The Alchemy Project

src/battle/knockback_tables.c

How far, how fast and how high each knockback sends a unit, by variant (BATTLE_KNOCKBACK).

Variables

NameDescription
const FIXEDBattleKnockbackAcceleration []A knocked-back unit's motion by variant, which btMotionApplyKnockback reads, as The Broken Seal's.
const FIXEDBattleKnockbackSpeedLimit []speed limit
const FIXEDBattleKnockbackVelocityY []upward velocity
const Sint32BattleKnockbackDistancePercent []distance, in percent of the anchor's x
const Sint32BattleKnockbackUnusedWords []Unused: three words after the knockback tables that no code names.

Description

How far, how fast and how high each knockback sends a unit, by variant (BATTLE_KNOCKBACK).

Variables in detail

BattleKnockbackAcceleration

const FIXED BattleKnockbackAcceleration[]

A knocked-back unit's motion by variant, which btMotionApplyKnockback reads, as The Broken Seal's.

acceleration

Referenced by btMotionApplyKnockback().

Definition at line 7 of file knockback_tables.c.

BattleKnockbackSpeedLimit

const FIXED BattleKnockbackSpeedLimit[]

speed limit

Referenced by btMotionApplyKnockback().

Definition at line 20 of file knockback_tables.c.

BattleKnockbackVelocityY

const FIXED BattleKnockbackVelocityY[]

upward velocity

Referenced by btMotionApplyKnockback().

Definition at line 33 of file knockback_tables.c.

BattleKnockbackDistancePercent

const Sint32 BattleKnockbackDistancePercent[]

distance, in percent of the anchor's x

References Sint32.

Referenced by btMotionApplyKnockback().

Definition at line 46 of file knockback_tables.c.

BattleKnockbackUnusedWords

const Sint32 BattleKnockbackUnusedWords[]

Unused: three words after the knockback tables that no code names.

References Sint32.

Definition at line 61 of file knockback_tables.c.