VS: Changes for AI refactor, makes voremobs behave more sane

This commit is contained in:
Aronai Sieyes
2020-04-26 23:44:42 -04:00
parent 8ec31c9aa4
commit 93f9d2f552
3 changed files with 17 additions and 0 deletions
+11
View File
@@ -201,6 +201,17 @@
var/taste
if(can_taste && (taste = M.get_taste_message(FALSE)))
to_chat(owner, "<span class='notice'>[M] tastes of [taste].</span>")
//Stop AI processing in bellies
if(M.ai_holder)
M.ai_holder.go_sleep()
// Called whenever an atom leaves this belly
/obj/belly/Exited(atom/movable/thing, atom/OldLoc)
. = ..()
if(isliving(thing) && !isbelly(thing.loc))
var/mob/living/L = thing
if((L.stat != DEAD) && L.ai_holder)
L.ai_holder.go_wake()
// Release all contents of this belly into the owning mob's location.
// If that location is another mob, contents are transferred into whichever of its bellies the owning mob is in.