Browse Source

Added health scaling to mobs based on camp level

NovaTest
kevin 3 months ago
parent
commit
d991a4f2d8
  1. 7
      src/engine/objects/Mob.java

7
src/engine/objects/Mob.java

@ -1399,7 +1399,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1399,7 +1399,8 @@ public class Mob extends AbstractIntelligenceAgent {
NPCManager.applyRuneSetEffects(this);
Zone camp = ZoneManager.findSmallestZone(this.loc);
// Set Name based on parent zone level
Zone camp = this.getParentZone();
this.lastName = this.originalLastName + ZoneLevel.GetNameSuffix(camp);
this.recalculateStats();
@ -1515,6 +1516,10 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1515,6 +1516,10 @@ public class Mob extends AbstractIntelligenceAgent {
s *= (1 + this.bonuses.getFloatPercentAll(ModType.StaminaFull, SourceType.None));
}
// Modify max health based on camp level
Zone camp = this.getParentZone();
h = h * ZoneLevel.GetMaxHealthPctModifier(camp);
// Set max health, mana and stamina
if (h > 0)

Loading…
Cancel
Save