Apply more suggestions without doing multiline

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2021-07-23 13:52:43 -04:00
committed by GitHub
co-authored by SabreML
parent 76d64ecc4b
commit 18f3e19051
4 changed files with 11 additions and 9 deletions
+5 -5
View File
@@ -31,7 +31,7 @@
return ..()
/obj/item/nuke_core/process()
if(cooldown < world.time - 60)
if(cooldown < world.time - 6 SECONDS)
cooldown = world.time
flick(pulseicon, src)
radiation_pulse(src, 400, 2)
@@ -55,11 +55,11 @@
QDEL_NULL(core)
return ..()
/obj/item/nuke_core_container/proc/load(obj/item/nuke_core/plutonium/ncore, mob/user)
if(core || !istype(ncore))
/obj/item/nuke_core_container/proc/load(obj/item/nuke_core/plutonium/new_core, mob/user)
if(core || !istype(new_core))
return FALSE
ncore.forceMove(src)
core = ncore
new_core.forceMove(src)
core = new_core
icon_state = "core_container_loaded"
to_chat(user, "<span class='warning'>Container is sealing...</span>")
addtimer(CALLBACK(src, .proc/seal), 10 SECONDS)