edits some no_vore usage (#16131)

* edits some no_vore usage

* .

* .

* no hook call if qdeleting either
This commit is contained in:
Kashargul
2024-07-28 06:12:51 +10:00
committed by GitHub
parent 9f996ebcc3
commit e9d1868c41
2 changed files with 6 additions and 3 deletions
+6 -1
View File
@@ -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
//