Browse Source

removed siegeminion map from NPC

combat-2
FatBoy-DOTC 1 year ago
parent
commit
3060b394ab
  1. 6
      src/engine/objects/Mob.java
  2. 1
      src/engine/objects/NPC.java

6
src/engine/objects/Mob.java

@ -513,7 +513,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -513,7 +513,11 @@ public class Mob extends AbstractIntelligenceAgent {
Mob siegeMinion;
if (artyCaptain.getSiegeMinionMap().size() == 3)
int maxSlots = 1;
if(artyCaptain.getContractID() == 839)//artillery captain for bulwark
maxSlots = 3;
if (artyCaptain.getSiegeMinionMap().size() == maxSlots)
return null;
siegeMinion = new Mob();

1
src/engine/objects/NPC.java

@ -50,7 +50,6 @@ public class NPC extends AbstractCharacter { @@ -50,7 +50,6 @@ public class NPC extends AbstractCharacter {
// Used for thread safety
public final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
private final ArrayList<MobLoot> rolling = new ArrayList<>();
private final ConcurrentHashMap<Mob, Integer> siegeMinionMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
public ReentrantReadWriteLock minionLock = new ReentrantReadWriteLock();
public ArrayList<ProducedItem> forgedItems = new ArrayList<>();
public HashMap<Integer, MobEquipment> equip = null;

Loading…
Cancel
Save