Workorders cleared with hireling removal.
This commit is contained in:
@@ -432,7 +432,7 @@ public class MobAI {
|
||||
|
||||
ChatManager.chatSayInfo(null, mob.getName() + " calls for help!");
|
||||
|
||||
Zone mobCamp = mob.getParentZone();
|
||||
Zone mobCamp = mob.parentZone;
|
||||
|
||||
for (Mob helper : mobCamp.zoneMobSet) {
|
||||
if (helper.behaviourType.respondsToCallForHelp && helper.behaviourType.BehaviourHelperType.equals(mob.behaviourType)) {
|
||||
|
||||
@@ -68,8 +68,9 @@ public class MovementUtilities {
|
||||
float zoneRange = 250;
|
||||
|
||||
if (agent.getParentZone() != null) {
|
||||
if (agent.getParentZone().bounds != null)
|
||||
if (agent.getParentZone().bounds != null) {
|
||||
zoneRange = agent.getParentZone().bounds.getHalfExtents().x * 2;
|
||||
}
|
||||
}
|
||||
|
||||
if (zoneRange > 300)
|
||||
|
||||
Reference in New Issue
Block a user