From d991a4f2d8e1569346b57ccffd0b4a01071a9998 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 17 Aug 2024 15:39:12 -0400 Subject: [PATCH] Added health scaling to mobs based on camp level --- src/engine/objects/Mob.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 731dce8c..1360ced2 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -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)