Moved scaling to a new power

This commit is contained in:
kevin committed 2024-08-18 07:02:56 -04:00
1 parent d991a4f2d8
commit 5c34853293
4 files changed
+49 -50

No files matched your search

+9 -4
View File
@@ -1401,7 +1401,7 @@ public class Mob extends AbstractIntelligenceAgent {
// Set Name based on parent zone level
Zone camp = this.getParentZone();
this.lastName = this.originalLastName + ZoneLevel.GetNameSuffix(camp);
this.lastName = this.originalLastName + ZoneLevel.getNameSuffix(camp);
this.recalculateStats();
this.setHealth(this.healthMax);
@@ -1516,9 +1516,9 @@ 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);
// Modify max health based on camp level - bad, we need to use effects for this
//Zone camp = this.getParentZone();
//h = h * ZoneLevel.getMaxHealthPctModifier(camp);
// Set max health, mana and stamina
@@ -1620,6 +1620,11 @@ public class Mob extends AbstractIntelligenceAgent {
Logger.error("Error: missing bonuses");
defense = (defense < 1) ? 1 : defense;
// Modify defense for camp level - bad, we need to use effects for this
// Zone camp = this.getParentZone();
// defense = defense * ZoneLevel.getDefPctModifier(camp);
this.defenseRating = (short) (defense + 0.5f);
} catch (Exception e) {
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. Setting to Default Defense." + e.getMessage());