no random toxdamage vomit for robots

Title. Organics sometimes vomit at high toxdamage, robots get the fun of the handle_corruption() system instead
This commit is contained in:
DeltaFire
2020-11-13 03:33:50 +01:00
parent 8948133efc
commit 1961e1ed3c
+2 -2
View File
@@ -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)