Merge pull request #2807 from Verkister/patch-27

Fixes a couple vorgan duping causes
This commit is contained in:
Nadyr
2021-08-15 23:47:01 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -281,11 +281,13 @@
if(bellies)
release_vore_contents(silent = TRUE)
vore_organs.Cut()
QDEL_LIST(vore_organs)
bellies_loaded = FALSE //CHOMPedit
for(var/entry in P.belly_prefs)
list_to_object(entry,src)
if(!full_vorgans) //CHOMPedit: full_vorgans var to bypass 1-belly load optimization.
break //CHOMPedit: Belly load optimization. Only load first belly, save the rest for vorepanel.
bellies_loaded = TRUE //CHOMPedit
return TRUE

View File

@@ -34,7 +34,7 @@
//CHOMPedit: On-demand belly loading.
/mob/living/simple_mob/perform_the_nom(mob/living/user, mob/living/prey, mob/living/pred, obj/belly/belly, delay)
if(vore_active && !voremob_loaded)
if(vore_active && !voremob_loaded && pred == src) //Only init your own bellies.
voremob_loaded = TRUE
init_vore()
belly = vore_selected