From e4aa276cca865a5f98074009fb86c0426fc57292 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 1 Sep 2023 20:42:33 -0500 Subject: [PATCH] cleanup old code --- src/engine/objects/Mob.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index be9c11eb..55ec33d4 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -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) {