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