Hostile mobs no longer run all their hostile targeting/hunting code if there is nobody (or item, for those that hunt items) near them, they simply move to a simpler loop that decides whether to let the main loop continue.

This commit is contained in:
Remie Richards
2015-03-07 18:46:02 +00:00
parent 04dcfaddcf
commit 643de0c922
2 changed files with 44 additions and 1 deletions
+7
View File
@@ -44,12 +44,19 @@
#define GRAB_UPGRADING 4
#define GRAB_KILL 5
//Hostile Mob Stances
#define HOSTILE_STANCE_IDLE 1
//#define HOSTILE_STANCE_ALERT 2 //Was only used by bears
#define HOSTILE_STANCE_ATTACK 3
#define HOSTILE_STANCE_ATTACKING 4
//#define HOSTILE_STANCE_TIRED 5 //Was also only used by bears
//Hostile Mob AI Status
#define AI_ON 1
#define AI_SLEEP 2
#define AI_OFF 3
//Embedded objects
#define EMBEDDED_PAIN_CHANCE 15 //Chance for embedded objects to cause pain (damage user)