Browse Source

Don't override level or name for minions.

combat-2
MagicBot 1 year ago
parent
commit
c179e4aaf3
  1. 6
      src/engine/objects/Mob.java

6
src/engine/objects/Mob.java

@ -1734,7 +1734,10 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1734,7 +1734,10 @@ public class Mob extends AbstractIntelligenceAgent {
this.firstName = this.mobBase.getFirstName();
if (this.contract != null) {
this.equipmentSetID = this.contract.getEquipmentSet();
if (this.lastName.isEmpty())
this.lastName = this.getContract().getName();
}
@ -1746,7 +1749,10 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1746,7 +1749,10 @@ public class Mob extends AbstractIntelligenceAgent {
this.mana.set(this.manaMax);
this.stamina.set(this.staminaMax);
// Don't override level for guard minions
if (this.contract == null)
if (!this.behaviourType.equals(MobBehaviourType.GuardMinion))
this.level = (short) this.mobBase.getLevel();
//set bonuses

Loading…
Cancel
Save