From 1961e1ed3c56e655d819c64200e3fbfc26666385 Mon Sep 17 00:00:00 2001 From: DeltaFire Date: Fri, 13 Nov 2020 03:33:50 +0100 Subject: [PATCH] no random toxdamage vomit for robots Title. Organics sometimes vomit at high toxdamage, robots get the fun of the handle_corruption() system instead --- code/modules/mob/living/carbon/human/life.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 68e8c5ac29..bdf7faf10b 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -268,9 +268,9 @@ return round(thermal_protection/max_protection, 0.001) /mob/living/carbon/human/handle_random_events() - //Puke if toxloss is too high + //Puke if toxloss is too high and we aren't a robot, because those have advanced toxins (corruption) handling if(!stat) - if(getToxLoss() >= 45 && nutrition > 20) + if(getToxLoss() >= 45 && nutrition > 20 && !HAS_TRAIT(src, TRAIT_ROBOTIC_ORGANISM)) lastpuke += prob(50) if(lastpuke >= 50) // about 25 second delay I guess vomit(20, toxic = TRUE)