mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-18 17:44:22 +01:00
Cleaner formula for previous dual-wield fix.
This commit is contained in:
@@ -331,9 +331,7 @@ public final class SkillController {
|
||||
} else if (skillLevelFightStyle == 1) {
|
||||
percent = SkillCollection.DUALWIELD_EFFICIENCY_LEVEL1;
|
||||
//Take into account the case where the worst weapon AP-wise is in the off-hand.
|
||||
playerTraits.attackCost = Math.max(
|
||||
attackCostMainHand + getPercentage(attackCostOffHand, SkillCollection.DUALWIELD_LEVEL1_OFFHAND_AP_COST_PERCENT, 0),
|
||||
attackCostOffHand + getPercentage(attackCostMainHand, SkillCollection.DUALWIELD_LEVEL1_OFFHAND_AP_COST_PERCENT, 0));
|
||||
playerTraits.attackCost = Math.max(attackCostMainHand, attackCostOffHand) + getPercentage( Math.min(attackCostMainHand, attackCostOffHand), SkillCollection.DUALWIELD_LEVEL1_OFFHAND_AP_COST_PERCENT, 0);
|
||||
playerTraits.criticalMultiplier = Math.max(mainHandItem.effects_equip.stats.setCriticalMultiplier, getPercentage(offHandItem.effects_equip.stats.setCriticalMultiplier, SkillCollection.DUALWIELD_EFFICIENCY_LEVEL1, 0));
|
||||
} else {
|
||||
percent = SkillCollection.DUALWIELD_EFFICIENCY_LEVEL0;
|
||||
|
||||
Reference in New Issue
Block a user