Merge pull request #17826 from xxalpha/bebebebenukesandshit

Clean up plutonium core a bit
This commit is contained in:
oranges
2016-05-23 21:01:24 +12:00
+10 -6
View File
@@ -11,7 +11,8 @@
var/cooldown = 0
/obj/item/nuke_core/New()
SSobj.processing += src
..()
SSobj.processing |= src
/obj/item/nuke_core/attackby(obj/item/nuke_core_container/container, mob/user)
if(istype(container))
@@ -41,13 +42,16 @@
core = ncore
icon_state = "core_container_loaded"
user << "<span class='warning'>Container is sealing...</span>"
spawn(50)
addtimer(src, "seal", 50)
return 1
/obj/item/nuke_core_container/proc/seal()
if(istype(core))
SSobj.processing -= core
icon_state = "core_container_sealed"
playsound(loc, 'sound/items/Deconstruct.ogg', 100, 1)
if(loc == user)
user << "<span class='warning'>Container is sealed, the radiation is contained.</span>"
return 1
playsound(loc, 'sound/items/Deconstruct.ogg', 60, 1)
if(ismob(loc))
loc << "<span class='warning'>[src] is permanently sealed, [core]'s radiation is contained.</span>"
/obj/item/nuke_core_container/attackby(obj/item/nuke_core/core, mob/user)
if(istype(core))