From f98eaa4d6be8b99705ca77a60de59685a3f06e0d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 28 Jan 2023 12:11:24 -0600 Subject: [PATCH] fixed boon stat application --- src/engine/objects/PlayerCharacter.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 1aeb9f77..1fcbd66c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -3580,19 +3580,16 @@ public void dismissNecroPets() { conVal += Math.round(this.bonuses.getFloat(ModType.Attr, SourceType.Constitution)); intVal += Math.round(this.bonuses.getFloat(ModType.Attr, SourceType.Intelligence)); spiVal += Math.round(this.bonuses.getFloat(ModType.Attr, SourceType.Spirit)); - // apply dex penalty for armor dexVal *= this.dexPenalty; // modify percent amounts. DO THIS LAST! - strVal *= (1 +Math.round(this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Strength))); - dexVal *= (1 +Math.round(this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Dexterity))); - conVal *= (1 + Math.round(this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Constitution))); - intVal *= (1+Math.round(this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Intelligence))); - spiVal *= (1+Math.round(this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Spirit))); - - //boons? + strVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Strength)); + dexVal *= (1 + this.bonuses.getFloatPercentAll(ModType.Attr, SourceType.Dexterity)); + 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