mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Fixes pancakes not being able to be made on the griddle (#3240)
* Fix pancakes not being able to be made on the griddle (#56730) Puts the signal registration in initialization, and not in deconstruction. Fixes #56629 * Fixes pancakes not being able to be made on the griddle Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
This commit is contained in:
co-authored by
necromanceranne
parent
d7d8f5ca52
commit
6114542e33
@@ -27,6 +27,7 @@
|
||||
grill_loop = new(list(src), FALSE)
|
||||
if(isnum(variant))
|
||||
variant = rand(1,3)
|
||||
RegisterSignal(src, COMSIG_ATOM_EXPOSE_REAGENT, .proc/on_expose_reagent)
|
||||
|
||||
/obj/machinery/griddle/crowbar_act(mob/living/user, obj/item/I)
|
||||
. = ..()
|
||||
@@ -35,7 +36,6 @@
|
||||
if(default_deconstruction_crowbar(I, ignore_panel = TRUE))
|
||||
return
|
||||
variant = rand(1,3)
|
||||
RegisterSignal(src, COMSIG_ATOM_EXPOSE_REAGENT, .proc/on_expose_reagent)
|
||||
|
||||
/obj/machinery/griddle/proc/on_expose_reagent(atom/parent_atom, datum/reagent/exposing_reagent, reac_volume)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
Reference in New Issue
Block a user