mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
Bools and returns super-pr (#53221)
Replaces like 70-80% of 0 and such, as a side effect cleaned up a bunch of returns Edit: Most left out ones are in mecha which should be done in mecha refactor already Oh my look how clean it is Co-authored-by: TiviPlus <TiviPlus> Co-authored-by: Couls <coul422@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new)
|
||||
var/event = ""
|
||||
var/obj/machinery/keycard_auth/event_source
|
||||
var/mob/triggerer = null
|
||||
var/waiting = 0
|
||||
var/waiting = FALSE
|
||||
|
||||
/obj/machinery/keycard_auth/Initialize()
|
||||
. = ..()
|
||||
@@ -82,14 +82,14 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new)
|
||||
/obj/machinery/keycard_auth/proc/sendEvent(event_type)
|
||||
triggerer = usr
|
||||
event = event_type
|
||||
waiting = 1
|
||||
waiting = TRUE
|
||||
GLOB.keycard_events.fireEvent("triggerEvent", src)
|
||||
addtimer(CALLBACK(src, .proc/eventSent), 20)
|
||||
|
||||
/obj/machinery/keycard_auth/proc/eventSent()
|
||||
triggerer = null
|
||||
event = ""
|
||||
waiting = 0
|
||||
waiting = FALSE
|
||||
|
||||
/obj/machinery/keycard_auth/proc/triggerEvent(source)
|
||||
icon_state = "auth_on"
|
||||
|
||||
Reference in New Issue
Block a user