fixes some bugs in absorption and struggling

This commit is contained in:
Screemonster
2018-01-04 23:49:06 +00:00
parent bbc84ccce9
commit a0b02b57c1
2 changed files with 17 additions and 13 deletions
@@ -36,6 +36,8 @@
/mob/living/simple_animal/Destroy()
for(var/I in vore_organs)
var/datum/belly/B = vore_organs[I]
for(var/mob/living/M in B.internal_contents) // because release_all_contents doesn't release absorbed things
M.absorbed = 0
B.release_all_contents() // When your stomach is empty
prey_excludes.Cut()
. = ..()
@@ -127,6 +129,8 @@
/mob/living/simple_animal/death()
for(var/I in vore_organs)
var/datum/belly/B = vore_organs[I]
for(var/mob/living/M in B.internal_contents) // because release_all_contents doesn't release absorbed things
M.absorbed = 0
B.release_all_contents() // When your stomach is empty
..() // then you have my permission to die.