Implant Checking (#10290)

This commit is contained in:
Geeves
2020-10-23 11:42:54 +02:00
committed by GitHub
parent a812dfa1b1
commit 4ccf4ca5ab
2 changed files with 13 additions and 3 deletions
+7 -3
View File
@@ -255,10 +255,14 @@
status += "dangling uselessly"
if(org.status & ORGAN_BLEEDING)
status += SPAN_DANGER("bleeding")
if(status.len)
src.show_message("My [org.name] is [SPAN_WARNING("[english_list(status)].")]", 1)
var/output = ""
if(length(status))
output = "My [org.name] is [SPAN_WARNING("[english_list(status)].")]"
else
src.show_message("My [org.name] feels [SPAN_NOTICE("OK.")]" ,1)
output = "My [org.name] feels [SPAN_NOTICE("OK.")]"
if(length(org.implants))
output += " [SPAN_WARNING("I can feel something inside it.")]"
to_chat(src, output)
if((isskeleton(H)) && (!H.w_uniform) && (!H.wear_suit))
H.play_xylophone()