CombatCalculations ​
Inherits: RefCounted
Global combat calculations configuration Holds universal effect ordering for all calculation types
Variables ​
DamageDoneCalculation | damage_done_config | |
DamageTakenCalculation | damage_taken_config | |
HealingDoneCalculation | healing_done_config | |
HealingTakenCalculation | healing_taken_config |
Methods ​
void | build_universal_effect_orders() |
Array | build_order( stat_definitions: Array, calc_type: int ) static |
Array | get_universal_effect_order( calc_type: CalculationBase.CalculationType ) |
void | invalidate_universal_cache() |
Dictionary | get_effect_order_stats() |
Variable descriptions ​
DamageDoneCalculation damage_done_config ​
Calculation configs
DamageTakenCalculation damage_taken_config ​
The setup of the damage taken calculation.
HealingDoneCalculation healing_done_config ​
The setup of the healing done calculation.
HealingTakenCalculation healing_taken_config ​
The setup of the healing taken calculation.
Method descriptions ​
void build_universal_effect_orders() ​
Build universal effect order from all stats in database Called once when game loads or when stats are modified in editor
Array build_order( stat_definitions: Array, calc_type: int ) ​
The modifier effects of the given stat definitions that apply to one calculation type, in execution order: higher priority first; equal priorities fall back to stat id, then to the order the effects are authored in the stat, so the order never depends on how the engine happens to sort equal elements.
Array get_universal_effect_order( calc_type: CalculationBase.CalculationType ) ​
Get universal effect order for a calculation type Automatically builds cache if not built yet
void invalidate_universal_cache() ​
Invalidate cache when stats change in editor Call this from the editor when stat definitions are modified
Dictionary get_effect_order_stats() ​
Get statistics about effect orders (for debugging/editor)