[WIP] Feed_Self_To for mob ai

Enables mobs to acces the list of bellies making forcefeeding possible even if you have more than 1 belly

Current state "should work" + "needs testing"
When the mob attempts to have you eat it it will currently simply look for a stomach of the name "stomach" or "belly" then it will execute it if it finds those
This commit is contained in:
Sharkmare
2019-08-07 15:14:21 +02:00
committed by GitHub
parent f22b42df52
commit 5a3329e688
+9 -1
View File
@@ -385,7 +385,15 @@
return perform_the_nom(user, prey, pred, belly)
/mob/living/proc/feed_self_to_grabbed(var/mob/living/user, var/mob/living/pred)
var/belly = input("Choose Belly") in pred.vore_organs
//CHOMPEDIT: PROTO TYPE; BELLY SELECTOR
var/plsvoreme = 0
if (!user.client)
for(var/obj/belly/guttoviolate in pred.vore_organs)
if(guttoviolate.name == "stomach" || guttoviolate.name == "belly" && !plsvoreme)
plsvoreme = 1
var/belly = guttoviolate
//CHOMPEDIT: END
else var/belly = input("Choose Belly") in pred.vore_organs
return perform_the_nom(user, user, pred, belly)
/mob/living/proc/feed_grabbed_to_other(var/mob/living/user, var/mob/living/prey, var/mob/living/pred)