mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user