|
|
@ -725,8 +725,6 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
conVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Constitution)); |
|
|
|
conVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Constitution)); |
|
|
|
intVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Intelligence)); |
|
|
|
intVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Intelligence)); |
|
|
|
spiVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Spirit)); |
|
|
|
spiVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Spirit)); |
|
|
|
} else { |
|
|
|
|
|
|
|
// apply dex penalty for armor
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Set current stats
|
|
|
|
// Set current stats
|
|
|
@ -1717,16 +1715,9 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter player = (PlayerCharacter) ac; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.getCombatTarget() == null) { |
|
|
|
if (this.getCombatTarget() == null) { |
|
|
|
this.setCombatTarget(ac); |
|
|
|
this.setCombatTarget(ac); |
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (player.getObjectUUID() == this.getCombatTarget().getObjectUUID()) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setRank(int newRank) { |
|
|
|
public void setRank(int newRank) { |
|
|
|