mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Signal Handler Preperation (#10917)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b92212f9ee
commit
68e70a00ad
@@ -55,7 +55,6 @@
|
||||
return 1
|
||||
|
||||
/obj/machinery/camera/HasProximity(turf/T, datum/weakref/WF, old_loc)
|
||||
SIGNAL_HANDLER
|
||||
if(isnull(WF))
|
||||
return
|
||||
var/atom/movable/AM = WF.resolve()
|
||||
|
||||
@@ -119,8 +119,11 @@
|
||||
operating = 1
|
||||
flick(text("[src.base_state]opening"), src)
|
||||
playsound(src, 'sound/machines/door/windowdoor.ogg', 100, 1)
|
||||
sleep(10)
|
||||
addtimer(CALLBACK(src, PROC_REF(finish_open)), 1 SECONDS, TIMER_DELETE_ME)
|
||||
|
||||
/obj/machinery/door/window/proc/finish_open()
|
||||
PRIVATE_PROC(TRUE)
|
||||
SHOULD_NOT_OVERRIDE(TRUE)
|
||||
explosion_resistance = 0
|
||||
density = FALSE
|
||||
update_icon()
|
||||
@@ -141,8 +144,11 @@
|
||||
update_icon()
|
||||
explosion_resistance = initial(explosion_resistance)
|
||||
update_nearby_tiles()
|
||||
addtimer(CALLBACK(src, PROC_REF(finish_close)), 1 SECONDS, TIMER_DELETE_ME)
|
||||
|
||||
sleep(10)
|
||||
/obj/machinery/door/window/proc/finish_close()
|
||||
PRIVATE_PROC(TRUE)
|
||||
SHOULD_NOT_OVERRIDE(TRUE)
|
||||
operating = FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
..(severity)
|
||||
|
||||
/obj/machinery/flasher/portable/HasProximity(turf/T, datum/weakref/WF, oldloc)
|
||||
SIGNAL_HANDLER
|
||||
if(isnull(WF))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user