mirror of
https://github.com/AndorsTrailRelease/andors-trail.git
synced 2026-02-13 21:28:10 +01:00
Fixed Dual-Wield level 1, so that the resulting attack cost is the
slowest weapon + half the fastest weapon, instead of the main hand + half the off-hand. Implies changes to the skill description in the string ID skill_longdescription_fightstyle_dualwield.
This commit is contained in:
@@ -590,7 +590,7 @@
|
||||
|
||||
Without this skill, only %1$d %% of a weapon\'s qualities may be used when equipped in the off-hand. This includes attack chance, critical skill, damage potential and block chance. Without this skill, attack speed (AP cost) of making an attack is the sum of the attack speed of the main weapon and that of the weapon used in the off-hand.
|
||||
|
||||
With one level of this skill, %2$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack speed is the attack speed of the weapon in the main hand plus %3$d %% of the attack speed of the weapon in the off-hand.
|
||||
With one level of this skill, %2$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack speed is the highest attack speed of both weapons plus %3$d %% of the lowest attack speed of both weapons.
|
||||
|
||||
With two levels of this skill, %4$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack speed equals the highest of the attack speeds of the two equipped weapons."</string>
|
||||
<string name="skill_longdescription_fightstyle_2hand">"Gives benefits when using weapons that require both hands to wield, such as two-handed swords, greataxes or giant hammers.
|
||||
|
||||
@@ -330,7 +330,10 @@ public final class SkillController {
|
||||
playerTraits.criticalMultiplier = Math.max(mainHandItem.effects_equip.stats.setCriticalMultiplier, getPercentage(offHandItem.effects_equip.stats.setCriticalMultiplier, SkillCollection.DUALWIELD_EFFICIENCY_LEVEL2, 0));
|
||||
} else if (skillLevelFightStyle == 1) {
|
||||
percent = SkillCollection.DUALWIELD_EFFICIENCY_LEVEL1;
|
||||
playerTraits.attackCost = attackCostMainHand + getPercentage(attackCostOffHand, SkillCollection.DUALWIELD_LEVEL1_OFFHAND_AP_COST_PERCENT, 0);
|
||||
//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.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