Vore preference helpers (#18656)

* Procs

* Pref checks

* Snack eat changes

* Fix
This commit is contained in:
Guti
2025-10-31 04:26:10 +01:00
committed by GitHub
parent fb73d362a0
commit aa14f1fbcc
18 changed files with 140 additions and 120 deletions
+4 -5
View File
@@ -34,11 +34,10 @@
/atom/movable/proc/end_fall(var/crushing = FALSE)
if(isliving(src))
var/mob/living/L = src
if(L.vore_selected && L.can_be_drop_pred && L.drop_vore)
for(var/mob/living/P in loc)
if(P.can_be_drop_prey && P.drop_vore)
L.feed_grabbed_to_self_falling_nom(L,P)
L.visible_message(span_vdanger("\The [L] falls right onto \the [P]!"))
for(var/mob/living/P in loc)
if(CanDropVore(L, P))
L.feed_grabbed_to_self_falling_nom(L,P)
L.visible_message(span_vdanger("\The [L] falls right onto \the [P]!"))
if(crushing)
for(var/atom/movable/AM in loc)
@@ -101,7 +101,7 @@
if(food_inserted_micros && food_inserted_micros.len)
for(var/mob/living/F in food_inserted_micros)
food_inserted_micros -= F
if(!F.can_be_drop_prey || !F.food_vore)
if(!CanFoodVore(M, F))
F.forceMove(get_turf(src))
else
F.forceMove(M.vore_selected)
+1 -1
View File
@@ -296,7 +296,7 @@
return
else if(isliving(source))
var/mob/living/L = source
if(gargoyle.throw_vore && L.throw_vore && gargoyle.can_be_drop_pred && L.can_be_drop_prey)
if(CanThrowVore(gargoyle, L))
var/drop_prey_temp = FALSE
if(gargoyle.can_be_drop_prey)
drop_prey_temp = TRUE