Browse Source

siege minions added to arty captain minion map

mobile-class-refactor
FatBoy-DOTC 1 year ago
parent
commit
8afe25fe85
  1. 20
      src/engine/objects/Mob.java

20
src/engine/objects/Mob.java

@ -525,13 +525,7 @@ public class Mob extends AbstractIntelligenceAgent {
//siegeMinion.spawnTime = (60 * 15); //siegeMinion.spawnTime = (60 * 15);
siegeMinion.spawnTime = 15; siegeMinion.spawnTime = 15;
int slot = 0; int slot = artyCaptain.getSiegeMinionMap().size() + 1;
if (!artyCaptain.getSiegeMinionMap().containsValue(1))
slot = 1;
else if (!artyCaptain.getSiegeMinionMap().containsValue(2))
slot = 2;
artyCaptain.getSiegeMinionMap().put(siegeMinion,slot); artyCaptain.getSiegeMinionMap().put(siegeMinion,slot);
siegeMinion.runAfterLoad(); siegeMinion.runAfterLoad();
@ -1657,13 +1651,13 @@ public class Mob extends AbstractIntelligenceAgent {
this.bonuses = new PlayerBonuses(this); this.bonuses = new PlayerBonuses(this);
//TODO set these correctly later //TODO set these correctly later
this.rangeHandOne = 8; this.rangeHandOne = this.mobBase.getAttackRange();
this.rangeHandTwo = -1; this.rangeHandTwo = -1;
this.minDamageHandOne = 0; this.minDamageHandOne = (int)this.mobBase.getMinDmg();
this.maxDamageHandOne = 0; this.maxDamageHandOne = (int)this.mobBase.getMaxDmg();
this.minDamageHandTwo = 1; this.minDamageHandTwo = 0;
this.maxDamageHandTwo = 4; this.maxDamageHandTwo = 0;
this.atrHandOne = 300; this.atrHandOne = this.mobBase.getAtr();
this.defenseRating = (short) this.mobBase.getDefenseRating(); this.defenseRating = (short) this.mobBase.getDefenseRating();
this.isActive = true; this.isActive = true;

Loading…
Cancel
Save