[MIRROR] Supermatter Can Display EER to Ghosts. (#3667)

* Supermatter Can Display EER to Ghosts. (#56991)

I'm not sure that there's a way for ghosts to check out the EER of the spicy rock without someone logging in on the console. This lets ghosts know if an SM is going to spawn tesla/skeleton in advance.

The part at the trait section (thanks to mothblocks) is changed to not cause runtimes when the supermatter is examined by ghosts.

Co-authored-by: coiax <yellowbounder@ gmail.com>

* Supermatter Can Display EER to Ghosts.

Co-authored-by: vincentiusvin <54709710+vincentiusvin@users.noreply.github.com>
Co-authored-by: coiax <yellowbounder@ gmail.com>
This commit is contained in:
SkyratBot
2021-02-26 15:06:29 +01:00
committed by GitHub
parent c0aeb77777
commit cf9e01964c
@@ -366,9 +366,14 @@ GLOBAL_DATUM(main_supermatter_engine, /obj/machinery/power/supermatter_crystal)
/obj/machinery/power/supermatter_crystal/examine(mob/user)
. = ..()
var/immune = HAS_TRAIT(user, TRAIT_SUPERMATTER_MADNESS_IMMUNE) || HAS_TRAIT(user.mind, TRAIT_SUPERMATTER_MADNESS_IMMUNE)
var/immune = HAS_TRAIT(user, TRAIT_SUPERMATTER_MADNESS_IMMUNE) || (user.mind && HAS_TRAIT(user.mind, TRAIT_SUPERMATTER_MADNESS_IMMUNE))
if(isliving(user) && !immune && (get_dist(user, src) < HALLUCINATION_RANGE(power)))
. += "<span class='danger'>You get headaches just from looking at it.</span>"
if(isobserver(user))
if(power > 5)
. += "<span class='notice'>The supermatter appears active at [power] MeV.</span>"
else
. += "<span class='notice'>The supermatter appears inactive or outputting minimal power.</span>"
/obj/machinery/power/supermatter_crystal/proc/get_status()
var/turf/T = get_turf(src)