More adjustments

Makes it so the mobs with vore_hostile will only be hostile when their capacity isn't full
This commit is contained in:
VerySoft
2023-08-04 21:13:28 -04:00
parent 697386c1b0
commit 514b6b954d
2 changed files with 6 additions and 0 deletions
@@ -21,6 +21,11 @@
/datum/ai_holder/simple_mob/vore/find_target(list/possible_targets, has_targets_list)
if(!vore_hostile)
return ..()
if(!isanimal(holder)) //Only simplemobs have the vars we need
return ..()
var/mob/living/simple_mob/H = holder
if(H.vore_fullness >= H.vore_capacity) //Don't beat people up if we're full
return ..()
ai_log("find_target() : Entered.", AI_LOG_TRACE)
. = list()
@@ -1333,6 +1333,7 @@
if(isobserver(AM))
return
playsound(src, teleport_sound, vol = 100, vary = 1, preference = /datum/client_preference/eating_noises, volume_channel = VOLUME_CHANNEL_VORE)
playsound(target, teleport_sound, vol = 100, vary = 1, preference = /datum/client_preference/eating_noises, volume_channel = VOLUME_CHANNEL_VORE)
if(isliving(AM))
var/mob/living/L = AM
if(teleport_message && L.client)