Skip to content

DamageEffect ​

Inherits: CombatResultEffect < ScalingEffect < Effect < DatabaseResource < Resource

DamageEffect is a an effect that applies damage to the target entity.

Properties ​

intdamage_type0
booluse_weapon_damage_typefalse
floatthreat_multiplier1.0
floatprotective_pool_multiplier1.0
boolscales_with_chargefalse
floatmin_charge_multiplier0.3
boolcan_be_avoidedtrue
floatleech_percentage0.0
TriggerTagDefinitionrepeat_tag
floatrepeat_damage_percent50.0
CombatOptions.BasisChoicethreat_basisCombatOptions.BasisChoice.PROJECT_DEFAULT
CombatOptions.BasisChoiceleech_basisCombatOptions.BasisChoice.PROJECT_DEFAULT

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()
boolis_one_off_application()

Property descriptions ​

int damage_type = 0 ​

Type of damage dealt (physical, fire, cold, poison, etc.)

bool use_weapon_damage_type = false ​

If true, uses equipped weapon's damage type instead of damage_type

float threat_multiplier = 1.0 ​

Multiplier for threat generation (1.0 = normal, 2.0 = double threat)

float protective_pool_multiplier = 1.0 ​

Damage dealt to protective pools (shields, mana shields) is multiplied by this: 4 = a shield loses four points for every point of damage it absorbs (1 = normal)

bool scales_with_charge = false ​

The damage scales with how far a drawn shot was drawn (a bow released early hits for less)

float min_charge_multiplier = 0.3 ​

Share of the damage of a shot released at once (1 = fully drawn)

bool can_be_avoided = true ​

Whether this damage can be dodged, parried, or blocked

float leech_percentage = 0.0 ​

Percentage of damage dealt that heals the originator

TriggerTagDefinition repeat_tag ​

Repeat hits (multistrike): when this trigger tag fires on the hit, its magnitude is the number of extra hits. The tag is fired by a stat (a trigger with this tag) or forced by a trigger rule on this effect (always, magnitude 2 = two extra hits)

float repeat_damage_percent = 50.0 ​

The damage of each extra hit, as a percentage of this effect's damage

CombatOptions.BasisChoice threat_basis = CombatOptions.BasisChoice.PROJECT_DEFAULT ​

Which number of the hit generates threat. Project default: GameplayConfig, Combat, Damage Results

CombatOptions.BasisChoice leech_basis = CombatOptions.BasisChoice.PROJECT_DEFAULT ​

Which number of the hit the life leech is taken from. Project default: GameplayConfig, Combat, Damage Results

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies the specific logic for this effect

String get_effect_description() ​

Calculates damage for tooltip display

String get_editor_description() ​

A short text for the effect editor that says what the effect does.

bool is_one_off_application() ​

What this effect does it does once, when it is applied: a loaded save does not do it again