Skip to content

Commit

Permalink
adds description helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Nov 10, 2023
1 parent 2ad7bb8 commit 8a8be20
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/component/unusual_handler
var/atom/source_object
///the description added to the unusual.
var/unusual_description = ""
var/unusual_description = "Not Implemented Yet Teehee"
///the round the unusual was created at
var/round_id = 0
///the particle spewer component path
Expand All @@ -23,6 +23,17 @@
source_object = parent

source_object.AddComponent(particle_path)

RegisterSignal(source_object, COMSIG_ATOM_UPDATE_DESC, PROC_REF(append_unusual))

/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]")
source_object.desc += span_notice("\n Unboxed on: [round_id]")
source_object.desc += span_notice("\n Unusual Type: [unusual_description]")

/datum/component/unusual_handler/proc/setup_from_list(list/parsed_results)
return
Expand Down

0 comments on commit 8a8be20

Please sign in to comment.