Browse Source

GuardCaptain flag when slotting in barracks

master
FatBoy-DOTC 2 years ago
parent
commit
7e08a3d8ab
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -249,7 +249,6 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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 { @@ -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;
}
}

Loading…
Cancel
Save