Browse Source

Don't override level or name for minions.

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

Loading…
Cancel
Save