EnchantEquipmentEffect ​
Inherits: Effect < DatabaseResource < Resource
Applies an enchant effect to equipment in a specific slot Similar to ItemDefinitionEnchantScroll but works through the effect system
Properties ​
int | enchant_effect_id | |
int | equipment_slot_id | |
float | enchant_duration | -1.0 |
bool | override_effect_duration | true |
bool | enchant_all_slots | false |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
int enchant_effect_id ​
The effect to apply as an enchantment
int equipment_slot_id ​
Which equipment slot to enchant
float enchant_duration = -1.0 ​
Duration override for enchantment (-1 = permanent, >0 = temporary in seconds)
bool override_effect_duration = true ​
Whether to override the effect's own duration
bool enchant_all_slots = false ​
If true and slot supports multiple items, enchant all equipped items in that slot
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
Applies an enchantment to the target's equipped item in the specified slot
String get_effect_description() ​
The text of the effect for tooltips, with its values filled in.
String get_editor_description() ​
A short text for the effect editor that says what the effect does.