diff --git a/code/game/objects/effects/gibs.dm b/code/game/objects/effects/gibs.dm index c43951f5dd2..18754297e12 100644 --- a/code/game/objects/effects/gibs.dm +++ b/code/game/objects/effects/gibs.dm @@ -42,6 +42,9 @@ for(var/j = 1, j<= gibamounts[i], j++) var/gibType = gibtypes[i] gib = new gibType(location) + if(istype(location,/mob/living/carbon)) + var/mob/living/carbon/digester = location + digester.stomach_contents += gib if(viruses.len > 0) for(var/datum/disease/D in viruses) diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm index 530fa9cb8d0..70e4eada2f7 100644 --- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm +++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm @@ -161,12 +161,11 @@ Doesn't work on other aliens/AI.*/ set desc = "Empties the contents of your stomach" set category = "Alien" - if(powerc()) - if(stomach_contents.len) - for(var/mob/M in src) - if(M in stomach_contents) - stomach_contents.Remove(M) - M.loc = loc - //Paralyse(10) - src.visible_message("\green [src] hurls out the contents of their stomach!") + if(powerc() && stomach_contents.len) + for(var/atom/movable/A in stomach_contents) + if(A in stomach_contents) + stomach_contents.Remove(A) + A.loc = loc + //Paralyse(10) + src.visible_message("\green [src] hurls out the contents of their stomach!") return \ No newline at end of file diff --git a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm index c12e5b31611..861f63f0c10 100644 --- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm +++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm @@ -100,6 +100,9 @@ var/const/ALIEN_AFK_BRACKET = 450 // 45 seconds new_xeno << sound('sound/voice/hiss5.ogg',0,0,0,100) //To get the player's attention if(gib_on_success) affected_mob.gib() + if(istype(new_xeno.loc,/mob/living/carbon)) + var/mob/living/carbon/digester = new_xeno.loc + digester.stomach_contents += new_xeno del(src) /*----------------------------------------