Adds SIGNAL_HANDLER to a bunch of procs (#6186)

* signal handler

* Remove a few that threw a shitton of errors

I'll get someone else to look at that

* we do a little async
This commit is contained in:
Tom
2021-06-09 13:10:47 +12:00
committed by GitHub
parent 698e2a4d59
commit 9599e8d313
14 changed files with 28 additions and 5 deletions
@@ -135,6 +135,7 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa
/// Handling of cell removal.
/datum/component/cell/proc/remove_cell(datum/source, mob/user)
SIGNAL_HANDLER
if(!equipment.can_interact(user))
return
@@ -161,6 +162,7 @@ component_cell_out_of_charge/component_cell_removed proc using loc where necessa
/// Handling of cell insertion.
/datum/component/cell/proc/insert_cell(datum/source, obj/item/inserting_item, mob/living/user, params)
SIGNAL_HANDLER
if(!equipment.can_interact(user))
return