class_name StatModEvent extends NBattleEvent ## Interceptable event fired when a stat mod is about to be applied. ## Effects can call set_mod_value() to modify the proposed mod value. var combatant_id: int var stat_def_id: int var source_id: int var mod_value: int func _init(combatant_id_val: int, stat_def_id_val: int, source_id_val: int, mod_value_val: int) -> void: combatant_id = combatant_id_val stat_def_id = stat_def_id_val source_id = source_id_val mod_value = mod_value_val func set_mod_value(new_value: int) -> void: mod_value = new_value func get_type() -> Type: return Type.STAT_MOD