mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 20:16:19 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user