forked from MagicBane/Server
Corner trebs go into slot 1.
This commit is contained in:
@@ -139,7 +139,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
if (this.contract != null)
|
if (this.contract != null)
|
||||||
this.level = 10;
|
this.level = 10;
|
||||||
|
|
||||||
//initializeMob(false, false);
|
|
||||||
clearStatic();
|
clearStatic();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1916,12 +1915,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
// if Arty Tower then the slot will always be 1
|
|
||||||
|
|
||||||
if (building.getBlueprint() != null &&
|
|
||||||
building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER))
|
|
||||||
putSlot = 1;
|
|
||||||
|
|
||||||
for (BuildingLocation slotLoc : buildingModel.getLocations())
|
for (BuildingLocation slotLoc : buildingModel.getLocations())
|
||||||
if (slotLoc.getType() == 6)
|
if (slotLoc.getType() == 6)
|
||||||
count++;
|
count++;
|
||||||
|
|||||||
@@ -1451,6 +1451,11 @@ public class NPC extends AbstractCharacter {
|
|||||||
else if (!siegeMinionMap.containsValue(2))
|
else if (!siegeMinionMap.containsValue(2))
|
||||||
slot = 2;
|
slot = 2;
|
||||||
|
|
||||||
|
// Corner trebs always are slot 1
|
||||||
|
|
||||||
|
if (this.building.getBlueprint().getBuildingGroup().equals(BuildingGroup.ARTYTOWER))
|
||||||
|
slot = 1;
|
||||||
|
|
||||||
siegeMinionMap.put(mob, slot);
|
siegeMinionMap.put(mob, slot);
|
||||||
mob.setInBuildingLoc(this.building, this);
|
mob.setInBuildingLoc(this.building, this);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user