forked from MagicBane/Server
cleanup old code
This commit is contained in:
@@ -725,8 +725,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
conVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Constitution));
|
||||
intVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Intelligence));
|
||||
spiVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Spirit));
|
||||
} else {
|
||||
// apply dex penalty for armor
|
||||
}
|
||||
|
||||
// Set current stats
|
||||
@@ -1717,16 +1715,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter))
|
||||
return;
|
||||
|
||||
PlayerCharacter player = (PlayerCharacter) ac;
|
||||
|
||||
if (this.getCombatTarget() == null) {
|
||||
this.setCombatTarget(ac);
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.getObjectUUID() == this.getCombatTarget().getObjectUUID())
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
public void setRank(int newRank) {
|
||||
|
||||
Reference in New Issue
Block a user