Process digest triggers death hooks now - Fixes #5540

This commit is contained in:
purplefoxy27
2023-02-10 21:38:33 -08:00
parent f81a4f1bd1
commit 2ac96d157d

View File

@@ -1095,6 +1095,7 @@
var/mob/living/carbon/human/h = l
thismuch = thismuch * h.species.digestion_nutrition_modifier
l.adjust_nutrition(thismuch)
ourtarget.death() //CHOMPEdit - Call .death() on process digest to trigger death hooks like nif_soulcatcher or digest_check (setting vore respawn timer)
b.handle_digestion_death(ourtarget, instant = TRUE) //CHOMPEdit
if("Absorb")
if(tgui_alert(ourtarget, "\The [usr] is attempting to instantly absorb you. Is this something you are okay with happening to you?","Instant Absorb", list("No", "Yes")) != "Yes")