PlayerCombatStats 30% damage reduction for duel wielding

This commit is contained in:
2025-01-24 06:08:08 -06:00
parent 96a80ce1b6
commit 80ec681a2c
+12
View File
@@ -270,6 +270,12 @@ public class PlayerCombatStats {
minDMG *= 1 + this.owner.bonuses.getFloatPercentAll(Enum.ModType.MeleeDamageModifier, Enum.SourceType.None);
}
if(this.owner.charItemManager != null){
if(this.owner.charItemManager.getEquipped(1) != null && this.owner.charItemManager.getEquipped(2) != null && !this.owner.charItemManager.getEquipped(2).getItemBase().isShield()){
minDMG *= 0.7f;
}
}
int roundedMin = (int)Math.round(minDMG);
if (mainHand) {
@@ -341,6 +347,12 @@ public class PlayerCombatStats {
maxDMG *= 1 + this.owner.bonuses.getFloatPercentAll(Enum.ModType.MeleeDamageModifier, Enum.SourceType.None);
}
if(this.owner.charItemManager != null){
if(this.owner.charItemManager.getEquipped(1) != null && this.owner.charItemManager.getEquipped(2) != null && !this.owner.charItemManager.getEquipped(2).getItemBase().isShield()){
maxDMG *= 0.7f;
}
}
int roundedMax = (int)Math.round(maxDMG);
if(mainHand){