Browse Source

load guard in barracks

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

8
src/engine/objects/Mob.java

@ -839,6 +839,14 @@ public class Mob extends AbstractIntelligenceAgent {
if (!isPet && !isSiege) if (!isPet && !isSiege)
Mob.mobMapByDBID.put(this.dbID, this); Mob.mobMapByDBID.put(this.dbID, this);
if (this.building != null && this.building.getBlueprint() != null && this.isPlayerGuard()) {
int maxSlots = 10;
for (int slot = 1; slot < maxSlots + 1; slot++)
if (!this.building.getHirelings().containsValue(slot)) {
this.building.getHirelings().put(this, slot);
break;
}
}
} }
/* /*

Loading…
Cancel
Save