Health scanner will report rough target radiation level (#8314)

This commit is contained in:
mikomyazaki
2020-02-23 02:46:00 -03:00
committed by GitHub
parent 3395fc0a7d
commit 1277770019
4 changed files with 34 additions and 9 deletions
+9 -9
View File
@@ -3,32 +3,32 @@
/mob/living/carbon/brain/handle_mutations_and_radiation()
if (total_radiation)
if (total_radiation > 100)
total_radiation = 100
if (total_radiation > RADS_MAX)
total_radiation = RADS_MAX
if(!container)//If it's not in an MMI
to_chat(src, "<span class='warning'>You feel weak.</span>")
to_chat(src, SPAN_WARNING("You feel weak."))
else//Fluff-wise, since the brain can't detect anything itself, the MMI handles thing like that
to_chat(src, "<span class='warning'>STATUS: CRITICAL AMOUNTS OF RADIATION DETECTED.</span>")
to_chat(src, SPAN_WARNING("STATUS: CRITICAL AMOUNTS OF RADIATION DETECTED."))
switch(total_radiation)
if(1 to 49)
if(RADS_LOW to RADS_MED-1)
apply_radiation(-1)
if(prob(25))
adjustToxLoss(1)
updatehealth()
if(50 to 74)
if(RADS_MED to RADS_HIGH-1)
apply_radiation(-2)
adjustToxLoss(1)
if(prob(5))
apply_radiation(-5)
if(!container)
to_chat(src, "<span class='warning'>You feel weak.</span>")
to_chat(src, SPAN_WARNING("You feel weak."))
else
to_chat(src, "<span class='danger'>STATUS: DANGEROUS LEVELS OF RADIATION DETECTED.</span>")
to_chat(src, SPAN_DANGER("STATUS: DANGEROUS LEVELS OF RADIATION DETECTED."))
updatehealth()
if(75 to 100)
if(RADS_HIGH to RADS_MAX)
apply_radiation(-3)
adjustToxLoss(3)
updatehealth()