EqualizeDamageAreaEffect ​
Inherits: EqualizeAreaEffect < MinimumApplicationAreaEffect < AreaEffect < CollisionEffect < CompositeEffect < Effect < DatabaseResource < Resource
EqualizeDamageAreaEffect distributes damage among all targets in area.
Properties ​
int | damage_type | 0 |
float | base_damage | 1.0 |
float | weapon_damage_percentage | 0.0 |
bool | can_be_avoided | true |
Methods ​
void | apply_equalization_to_targets( effect_instance: EffectInstance, targets: Array[Variant] ) |
Dictionary | get_damage_distribution_preview( effect_instance: EffectInstance ) |
Dictionary | get_detailed_damage_preview( effect_instance: EffectInstance ) |
bool | has_meaningful_damage_targets( effect_instance: EffectInstance, min_damage: float = 1.0 ) |
Array[Variant] | get_targets_that_would_take_damage( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_mode_description() |
String | get_editor_description() |
Property descriptions ​
Damage Settings
int damage_type = 0 ​
Damage Type for the effect
float base_damage = 1.0 ​
The base damage that should be dealt
float weapon_damage_percentage = 0.0 ​
Percentage of weapon damage that should be added to damage done
bool can_be_avoided = true ​
If the effect can be avoided
Method descriptions ​
void apply_equalization_to_targets( effect_instance: EffectInstance, targets: Array[Variant] ) ​
Implement the specific damage distribution logic using CombatSystem
Dictionary get_damage_distribution_preview( effect_instance: EffectInstance ) ​
Get damage distribution preview for UI/tooltips
Dictionary get_detailed_damage_preview( effect_instance: EffectInstance ) ​
Get detailed damage breakdown for each target
bool has_meaningful_damage_targets( effect_instance: EffectInstance, min_damage: float = 1.0 ) ​
Check if any targets would actually take meaningful damage
Array[Variant] get_targets_that_would_take_damage( effect_instance: EffectInstance ) ​
Get only targets that would take damage (useful for EQUALIZE_CURRENT mode)
String get_effect_description() ​
The text of the effect for tooltips, with its values filled in.
String get_mode_description() ​
Get mode-specific description
String get_editor_description() ​
A short text for the effect editor that says what the effect does.