Adds the name of the occupant to the examine text of sleepers and body scanners (#21324)

* Adds a line featuring the name of the occupant and whether they are dead to the examine text of sleepers and body scanners.

* Gives <span class='notice'> to description. Also adds the feature to cryo cells.

* Now using occupant.p_are()
This commit is contained in:
Divulf
2023-07-08 00:56:48 +12:00
committed by GitHub
parent 11e7d641e8
commit 54d2ac2ca5
3 changed files with 15 additions and 0 deletions
@@ -31,6 +31,11 @@
/obj/machinery/atmospherics/unary/cryo_cell/examine(mob/user)
. = ..()
if(occupant)
if(occupant.is_dead())
. += "<span class='warning'>You see [occupant.name] inside. [occupant.p_they(TRUE)] [occupant.p_are()] dead!</span>"
else
. += "<span class='notice'>You see [occupant.name] inside.</span>"
. += "<span class='notice'>The Cryogenic cell chamber is effective at treating those with genetic damage, but all other damage types at a moderate rate.</span>"
. += "<span class='notice'>Mostly using cryogenic chemicals, such as cryoxadone for it's medical purposes, requires that the inside of the cell be kept cool at all times. Hooking up a freezer and cooling the pipeline will do this nicely.</span>"
. += "<span class='notice'><b>Click-drag</b> someone to a cell to place them in it, use the 'Eject occupant' verb to remove them.</span>"