Skip to Content
The Alchemy Project

include/battle/range_falloff.h

The battle calculation tables: hit chances, HP and PP damage and recovery.

Included by battle_internal.h.

Variables

NameDescription
extern const Uint8RangeFalloffEffectChance []Percentages by a target's distance from the aimed position, 0 for the aimed target to 5 for the farthest: btAbilityApplyToTarget scales an amount by the entry and divides by 100, so an ability spread over a group weakens step by step.
extern const Sint32RangeFalloffPpLoss []PP loss (ABILITY_FORMULA_PP_DAMAGE), Crazy Voice's and Psy Drain's: 100, 50, 30, then 10.
extern const Sint32RangeFalloffHealHp []HP healing (ABILITY_FORMULA_HEAL_HP): 100 down to 20 by 20, then 10.
extern const Sint32RangeFalloffPpDamage []PP damage of the never-reached ability kind -1: 100, 50, 30, then 10.
extern const Sint32RangeFalloffPsynergyDamage []Psynergy damage (ABILITY_FORMULA_DAMAGE): 100 down to 20 by 20, then 10.
extern const Sint32RangeFalloffSummonDamage []Summon damage (ABILITY_FORMULA_SUMMON): 100, 70, 40, 30, 20, then 10.
extern const Sint32RangeFalloffEnemyDamage []An enemy's unleashed damage (ABILITY_FORMULA_ENEMY_DAMAGE): 100, 50, 30, then 10.
extern const Sint32RangeFalloffHealPp []PP healing (ABILITY_FORMULA_HEAL_PP): 100 down to 20 by 20, then 10.
extern const Sint32RangeFalloffEffectDamage []The damage of an effect ability whose effect lands (ABILITY_FORMULA_EFFECT): 100, 50, 30, then 10.

Description

The battle calculation tables: hit chances, HP and PP damage and recovery.