From e9d1868c41007283448e5151f51d41525f102fc2 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Sat, 27 Jul 2024 22:12:51 +0200 Subject: [PATCH] edits some no_vore usage (#16131) * edits some no_vore usage * . * . * no hook call if qdeleting either --- code/modules/mob/living/bot/bot.dm | 2 -- code/modules/vore/eating/living_vr.dm | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/bot/bot.dm b/code/modules/mob/living/bot/bot.dm index e9ab9b665c9..2a9fcba5b4a 100644 --- a/code/modules/mob/living/bot/bot.dm +++ b/code/modules/mob/living/bot/bot.dm @@ -563,9 +563,7 @@ return ..() /mob/living/bot/Logout() - no_vore = TRUE // ROBOT VORE release_vore_contents() - init_vore() // ROBOT VORE verbs -= /mob/proc/insidePanel no_vore = TRUE devourable = FALSE diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index 0dcae0ea9f1..447bf1b260e 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -45,7 +45,7 @@ /hook/living_new/proc/vore_setup(mob/living/M) //Tries to load prefs if a client is present otherwise gives freebie stomach spawn(2 SECONDS) - if(M) + if(!QDELETED(M)) M.init_vore() //return TRUE to hook-caller @@ -80,6 +80,11 @@ allow_spontaneous_tf = TRUE return TRUE +/mob/living/init_vore() + if(no_vore) + return FALSE + return ..() + // // Hide vore organs in contents //