cleanup old code

This commit is contained in:
2023-09-01 20:42:33 -05:00
parent 90ff2d679e
commit e4aa276cca
-9
View File
@@ -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) {