Skip to content

Commit

Permalink
snow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Nov 10, 2023
1 parent 8a8be20 commit f611529
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]")
Expand All @@ -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)

0 comments on commit f611529

Please sign in to comment.