DamageEffect ​
Inherits: CombatResultEffect < ScalingEffect < Effect < DatabaseResource < Resource
DamageEffect is a an effect that applies damage to the target entity.
Properties ​
int | damage_type | 0 |
bool | use_weapon_damage_type | false |
float | threat_multiplier | 1.0 |
float | protective_pool_multiplier | 1.0 |
bool | scales_with_charge | false |
float | min_charge_multiplier | 0.3 |
bool | can_be_avoided | true |
float | leech_percentage | 0.0 |
TriggerTagDefinition | repeat_tag | |
float | repeat_damage_percent | 50.0 |
CombatOptions.BasisChoice | threat_basis | CombatOptions.BasisChoice.PROJECT_DEFAULT |
CombatOptions.BasisChoice | leech_basis | CombatOptions.BasisChoice.PROJECT_DEFAULT |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
bool | is_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