From f6115295cdae234d9cc42cbb3462facc626de298 Mon Sep 17 00:00:00 2001 From: dwasint <82520990+dwasint@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:49:51 -0500 Subject: [PATCH] snow stuff --- .../modules/trading/unusual_effects/_unusual_component.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/monkestation/code/modules/trading/unusual_effects/_unusual_component.dm b/monkestation/code/modules/trading/unusual_effects/_unusual_component.dm index f12574fe70cf..6859bb62dc37 100644 --- a/monkestation/code/modules/trading/unusual_effects/_unusual_component.dm +++ b/monkestation/code/modules/trading/unusual_effects/_unusual_component.dm @@ -10,6 +10,9 @@ var/original_owner_ckey = "dwasint" /// the slot this item goes in used when creating the particle itself var/unusual_equip_slot = ITEM_SLOT_HEAD + +/datum/component/unusual_handler/snow + particle_path = /datum/component/particle_spewer/snow //this init is handled far differently than others. it parses data from the DB for information about the unusual itself //it than loads this info into the component itself, the particle_path is purely for spawning temporary ones in round @@ -29,6 +32,7 @@ /datum/component/unusual_handler/Destroy(force, silent) . = ..() UnregisterSignal(source_object, COMSIG_ATOM_UPDATE_DESC) + /datum/component/unusual_handler/proc/append_unusual(atom/source, updates) SIGNAL_HANDLER source_object.desc += span_notice("\n Unboxed by: [original_owner_ckey]") @@ -44,5 +48,5 @@ /obj/item/clothing/head/costume/chicken/snow_unusual/Initialize(mapload) . = ..() - AddComponent(/datum/component/unusual_handler) + AddComponent(/datum/component/unusual_handler/snow)