From e586c442c1ddd68bb23241f3b69c9d415772d56d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 25 Jan 2025 16:39:27 -0600 Subject: [PATCH] PlayerCombatStats dex penalty applied correctly --- src/engine/objects/PlayerCombatStats.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCombatStats.java b/src/engine/objects/PlayerCombatStats.java index 3a9451f9..1298c3c7 100644 --- a/src/engine/objects/PlayerCombatStats.java +++ b/src/engine/objects/PlayerCombatStats.java @@ -535,10 +535,10 @@ public class PlayerCombatStats { masteryName = weapon.getItemBase().getMastery(); } if(this.owner.skills.containsKey(skillName)) - weaponSkill = this.owner.skills.get(skillName).getSkillPercentFromTrains();//calculateModifiedSkill(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount(); + weaponSkill = this.owner.skills.get(skillName).getModifiedAmount();//calculateModifiedSkill(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount(); if(this.owner.skills.containsKey(masteryName)) - masterySkill = this.owner.skills.get(masteryName).getSkillPercentFromTrains();//calculateModifiedSkill(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount(); + masterySkill = this.owner.skills.get(masteryName).getModifiedAmount();//calculateModifiedSkill(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount(); float dexterity = getDexAfterPenalty(this.owner); @@ -594,11 +594,11 @@ public class PlayerCombatStats { } public static float calculateModifiedSkill(String skillName, PlayerCharacter pc) { + CharacterSkill skill = null; if (pc.skills.containsKey(skillName)) { skill = pc.skills.get(skillName); } - SkillsBase skillBase = skill.getSkillsBase(); if(skillBase == null) return 0;