mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-03 14:04:41 +00:00
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
/mob/living/silicon/ai/examine(mob/user)
|
|
if(!..(user))
|
|
return
|
|
|
|
var/msg = ""
|
|
if (src.stat == DEAD)
|
|
msg += "<span class='deadsay'>It appears to be powered-down.</span>\n"
|
|
else
|
|
msg += "<span class='warning'>"
|
|
if (src.getBruteLoss())
|
|
if (src.getBruteLoss() < 30)
|
|
msg += "It looks slightly dented.\n"
|
|
else
|
|
msg += "<B>It looks severely dented!</B>\n"
|
|
if (src.getFireLoss())
|
|
if (src.getFireLoss() < 30)
|
|
msg += "It looks slightly charred.\n"
|
|
else
|
|
msg += "<B>Its casing is melted and heat-warped!</B>\n"
|
|
if (src.getOxyLoss() && (aiRestorePowerRoutine != 0 && !APU_power))
|
|
if (src.getOxyLoss() > 175)
|
|
msg += "<B>It seems to be running on backup power. Its display is blinking a \"BACKUP POWER CRITICAL\" warning.</B>\n"
|
|
else if(src.getOxyLoss() > 100)
|
|
msg += "<B>It seems to be running on backup power. Its display is blinking a \"BACKUP POWER LOW\" warning.</B>\n"
|
|
else
|
|
msg += "It seems to be running on backup power.\n"
|
|
|
|
if (src.stat == UNCONSCIOUS)
|
|
msg += "It is non-responsive and displaying the text: \"RUNTIME: Sensory Overload, stack 26/3\".\n"
|
|
msg += "</span>"
|
|
if(deployed_shell)
|
|
msg += "The wireless networking light is blinking.\n"
|
|
msg += "*---------*"
|
|
if(hardware && (hardware.owner == src))
|
|
msg += "<br>"
|
|
msg += hardware.get_examine_desc()
|
|
to_chat(user,msg)
|
|
user.showLaws(src)
|
|
return
|
|
|
|
/mob/proc/showLaws(var/mob/living/silicon/S)
|
|
return
|
|
|
|
/mob/observer/dead/showLaws(var/mob/living/silicon/S)
|
|
if(antagHUD || is_admin(src))
|
|
S.laws.show_laws(src)
|