mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #13317 from Very-Soft/kob
Makes AI not flee while in a tummy
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
if(can_flee)
|
if(can_flee)
|
||||||
if(special_flee_check())
|
if(special_flee_check())
|
||||||
return TRUE
|
return TRUE
|
||||||
|
if(isbelly(holder.loc)) //VOREStation Add - Don't flee while you're in a tummy, silly
|
||||||
|
return FALSE //VOREStation Add
|
||||||
if(!hostile && !retaliate)
|
if(!hostile && !retaliate)
|
||||||
return TRUE // We're not hostile and someone attacked us first.
|
return TRUE // We're not hostile and someone attacked us first.
|
||||||
if(flee_when_dying && (holder.health / holder.getMaxHealth()) <= dying_threshold)
|
if(flee_when_dying && (holder.health / holder.getMaxHealth()) <= dying_threshold)
|
||||||
|
|||||||
Reference in New Issue
Block a user