From d3e4baf96b738b5dce9de2a1d99d76f55919e388 Mon Sep 17 00:00:00 2001 From: MistakeNot4892 Date: Wed, 9 Aug 2023 20:30:48 +1000 Subject: [PATCH] Adds stomach organ contents to Regurgitate verb. --- .../mob/living/carbon/human/human_powers.dm | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_powers.dm b/code/modules/mob/living/carbon/human/human_powers.dm index ee867ee5f1..18104dc99c 100644 --- a/code/modules/mob/living/carbon/human/human_powers.dm +++ b/code/modules/mob/living/carbon/human/human_powers.dm @@ -122,12 +122,19 @@ set category = "Abilities" if(stomach_contents.len) - for(var/mob/M in src) - if(M in stomach_contents) - stomach_contents.Remove(M) - M.loc = loc - src.visible_message("[src] hurls out the contents of their stomach!") - return + for(var/atom/movable/AM in src) + stomach_contents -= AM + AM.dropInto(loc) + . = TRUE + + var/obj/item/organ/internal/stomach = get_internal_organ(O_STOMACH) + if(stomach) + for(var/atom/movable/AM in stomach) + AM.dropInto(loc) + . = TRUE + + if(.) + visible_message("[src] hurls out the contents of their stomach!") /mob/living/carbon/human/proc/psychic_whisper(mob/M as mob in oview()) set name = "Psychic Whisper"