From 7e08a3d8ab366dad01b2a67bf475a55af4116bf7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Apr 2023 20:44:28 -0500 Subject: [PATCH] GuardCaptain flag when slotting in barracks --- src/engine/objects/Mob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index a4916a65..3cd19230 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -249,7 +249,6 @@ public class Mob extends AbstractIntelligenceAgent { this.spawnTime = 60 * 15; this.isPlayerGuard = true; this.nameOverride = contract.getName(); - this.BehaviourType = MobileFSM.MobBehaviourType.GuardCaptain; } int guildID = rs.getInt("mob_guildUID"); @@ -844,6 +843,7 @@ public class Mob extends AbstractIntelligenceAgent { for (int slot = 1; slot < maxSlots + 1; slot++) if (!this.building.getHirelings().containsValue(slot)) { this.building.getHirelings().put(this, slot); + this.BehaviourType = MobileFSM.MobBehaviourType.GuardCaptain; break; } }