Added health scaling to mobs based on camp level

This commit is contained in:
2024-08-17 15:39:12 -04:00
parent d87d3e2f41
commit d991a4f2d8
+6 -1
View File
@@ -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 {
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)