You can no longer get the supermatter sliver objective if the station does not have a supermatter (#21337)

* You can no longer get the supermatter sliver objective if the station does not have a supermatter

* sirryans changes
This commit is contained in:
Qwertytoforty
2023-06-21 17:55:39 -04:00
committed by GitHub
parent fd853221b3
commit 01b09bf3e8
4 changed files with 17 additions and 1 deletions
@@ -85,6 +85,7 @@
#define SUPERMATTER_SINGULARITY_RAYS_COLOUR "#750000"
#define SUPERMATTER_SINGULARITY_LIGHT_COLOUR "#400060"
/obj/machinery/atmospherics/supermatter_crystal
name = "supermatter crystal"
desc = "A strangely translucent and iridescent crystal."
@@ -213,7 +214,8 @@
radio.follow_target = src
radio.config(list("Engineering" = 0))
investigate_log("has been created.", "supermatter")
if(is_main_engine)
GLOB.main_supermatter_engine = src
soundloop = new(list(src), TRUE)
/obj/machinery/atmospherics/supermatter_crystal/Destroy()
@@ -227,6 +229,8 @@
if(!processes)
GLOB.frozen_atom_list -= src
QDEL_NULL(countdown)
if(is_main_engine && GLOB.main_supermatter_engine == src)
GLOB.main_supermatter_engine = null
QDEL_NULL(soundloop)
return ..()