Files
2022-06-06 16:51:51 -04:00

58 lines
2.1 KiB
Plaintext

/mob/living/silicon/robot/examine(mob/user)
. = list("<span class='info'>This is [icon2html(src, user)] \a <EM>[src]</EM>, a [src.module.name] unit!")
if(desc)
. += "[desc]"
var/obj/act_module = get_active_held_item()
if(act_module)
. += "It is holding [icon2html(act_module, user)] \a [act_module]."
var/effects_exam = status_effect_examines()
if(!isnull(effects_exam))
. += effects_exam
if (getBruteLoss())
if (getBruteLoss() < maxHealth*0.5)
. += "<span class='warning'>It looks slightly dented.</span>"
else
. += "<span class='warning'><B>It looks severely dented!</B></span>"
if (getFireLoss() || getToxLoss())
var/overall_fireloss = getFireLoss() + getToxLoss()
if (overall_fireloss < maxHealth * 0.5)
. += "<span class='warning'>It looks slightly charred.</span>"
else
. += "<span class='warning'>It looks slightly charred.</span>"
if (health < -maxHealth*0.5)
. += "<span class='warning'>It looks barely operational.</span>"
if (fire_stacks < 0)
. += "<span class='warning'>It's covered in water.</span>"
else if (fire_stacks > 0)
. += "<span class='warning'>It's coated in something flammable.</span>"
if(opened)
. += "<span class='warning'>Its cover is open and the power cell is [cell ? "installed" : "missing"].</span>"
else
. += "Its cover is closed[locked ? "" : ", and looks unlocked"]."
if(cell && cell.charge <= 0)
. += "<span class='warning'>Its battery indicator is blinking red!</span>"
if(is_servant_of_ratvar(src) && get_dist(user, src) <= 1 && !stat) //To counter pseudo-stealth by using headlamps
. += "<span class='warning'>Its eyes are glowing a blazing yellow!</span>"
switch(stat)
if(CONSCIOUS)
if(shell)
. += "It appears to be an [deployed ? "active" : "empty"] AI shell."
else if(!client)
. += "It appears to be in stand-by mode." //afk
if(UNCONSCIOUS)
. += "<span class='warning'>It doesn't seem to be responding.</span>"
if(DEAD)
. += "<span class='deadsay'>It looks like its system is corrupted and requires a reset.</span>"
if(LAZYLEN(.) > 1)
.[2] = "<hr>[.[2]]"
SEND_SIGNAL(src, COMSIG_PARENT_EXAMINE, usr, .)
. += ..()