mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Health scanner will report rough target radiation level (#8314)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user