Update scrubble.dm

This commit is contained in:
SatinIsle
2024-04-08 13:03:43 +01:00
parent cf56b714c7
commit 82c68f7ac1
@@ -37,6 +37,7 @@
vore_default_mode = DM_DIGEST
vore_pounce_maxhealth = 1000
vore_bump_emote = "pounces on"
vore_pounce_falloff = 0 //Always eat someone at full health
/mob/living/simple_mob/vore/scrubble/init_vore()
..()
@@ -114,19 +115,6 @@
step_away(holder, target, 7)
ai_log("flee_from_target() : Exiting.", AI_LOG_DEBUG)
/mob/living/simple_mob/vore/scrubble/CanPounceTarget(var/mob/living/M) //returns either FALSE or a %chance of success
if(!M.canmove || issilicon(M) || world.time < vore_pounce_cooldown) //eliminate situations where pouncing CANNOT happen
return FALSE
if(!prob(vore_pounce_chance) || !will_eat(M)) //mob doesn't want to pounce
return FALSE
if(vore_standing_too) //100% chance of hitting people we can eat on the spot
return 100
var/TargetHealthPercent = (M.health/M.getMaxHealth())*100 //now we start looking at the target itself
if (TargetHealthPercent > vore_pounce_maxhealth) //target is too healthy to pounce
return FALSE
else
return 100 //Changed for scrubbles, they will pounce someone at full health.
/datum/ai_holder/simple_mob/hostile/scrubble/find_target(list/possible_targets, has_targets_list)
if(!isanimal(holder)) //Only simplemobs have the vars we need
return ..()