From 11dc1ff2b730c89ed098a41a17d9437852ab80c5 Mon Sep 17 00:00:00 2001 From: Guti <32563288+TheCaramelion@users.noreply.github.com> Date: Wed, 23 Jul 2025 11:53:11 +0200 Subject: [PATCH] vomit (#18044) --- code/modules/mob/living/living.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 5cc26706058..724179cd855 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -964,6 +964,13 @@ if(!check_has_mouth()) return TRUE + if(ishuman(src)) + var/mob/living/carbon/human/H = src + if(CE_ANTACID in H.chem_effects) + if(prob(min(90, H.chem_effects[CE_ANTACID] * 15))) + VARSET_IN(src, lastpuke, FALSE, rand(30 SECONDS, 2 MINUTES)) + return FALSE + if(nutrition < 100 && !blood) if(message) visible_message(span_warning("[src] dry heaves!"), span_userdanger("You try to throw up, but there's nothing in your stomach!"))