|
|
|
@ -1402,7 +1402,8 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1402,7 +1402,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
// Set Name based on parent zone level
|
|
|
|
|
Zone camp = this.getParentZone(); |
|
|
|
|
this.lastName = this.originalLastName + ZoneLevel.getNameSuffix(camp); |
|
|
|
|
PowersManager.applyPower(this, this, this.getLoc(), "CMP-001", camp.getCamplvl(), false); |
|
|
|
|
|
|
|
|
|
//PowersManager.applyPower(this, this, this.getLoc(), "CMP-001", camp.getCamplvl(), false);
|
|
|
|
|
|
|
|
|
|
this.recalculateStats(); |
|
|
|
|
this.setHealth(this.healthMax); |
|
|
|
@ -1518,8 +1519,8 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1518,8 +1519,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Modify max health based on camp level - bad, we need to use effects for this
|
|
|
|
|
//Zone camp = this.getParentZone();
|
|
|
|
|
//h = h * ZoneLevel.getMaxHealthPctModifier(camp);
|
|
|
|
|
Zone camp = this.getParentZone(); |
|
|
|
|
h = h * ZoneLevel.getMaxHealthPctModifier(camp); |
|
|
|
|
|
|
|
|
|
// Set max health, mana and stamina
|
|
|
|
|
|
|
|
|
@ -1623,8 +1624,8 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1623,8 +1624,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
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);
|
|
|
|
|
Zone camp = this.getParentZone(); |
|
|
|
|
defense = defense * ZoneLevel.getDefPctModifier(camp); |
|
|
|
|
|
|
|
|
|
this.defenseRating = (short) (defense + 0.5f); |
|
|
|
|
} catch (Exception e) { |
|
|
|
@ -1827,6 +1828,10 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1827,6 +1828,10 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
atr *= (1 + neg_Bonus); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Modify atr for camp level - bad, we need to use effects for this
|
|
|
|
|
Zone camp = this.getParentZone(); |
|
|
|
|
atr = atr * ZoneLevel.getAtrPctModifier(camp); |
|
|
|
|
|
|
|
|
|
atr = (atr < 1) ? 1 : atr; |
|
|
|
|
|
|
|
|
|
// set atr
|
|
|
|
|