diff --git a/AndorsTrail/res/values/strings.xml b/AndorsTrail/res/values/strings.xml index f5fdf2558..6d6b1429f 100644 --- a/AndorsTrail/res/values/strings.xml +++ b/AndorsTrail/res/values/strings.xml @@ -651,11 +651,11 @@ For every skill level, increases the block chance of every piece of heavy armor being worn by %1$d %% of their original block chances. Pieces of heavy armor have their movement penalties reduced by %2$d %% per skill level, and their attack speed penalties reduced by %3$d %% per skill level. Heavy armors include metal armors, chain mail and plate mail. "Gives benefits when fighting with two weapons at the same time, one in the main hand and one in the off-hand. -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 cost (AP cost) of making an attack is the sum of the attack cost of the main weapon and that of the weapon used in the off-hand. +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 cost (AP cost) of making an attack is the sum of the attack cost of the main weapon and that of the weapon used in the off-hand. The lower of both damage modifiers will be used. -With one level of this skill, %2$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack cost is the highest attack cost of both weapons plus %3$d %% of the lowest attack cost of both weapons. +With one level of this skill, %2$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack cost is the highest attack cost of both weapons plus %3$d %% of the lowest attack cost of both weapons. The average of both damage modifiers will be used. -With two levels of this skill, %4$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack cost equals the highest of the attack costs of the two equipped weapons." +With two levels of this skill, %4$d %% of the off-hand\'s weapon\'s qualities may be used, and the attack cost equals the highest of the attack costs of the two equipped weapons. The highest damage modifier will be used." "Gives benefits when using weapons that require both hands to wield, such as two-handed swords, greataxes or giant hammers. Every skill level increases damage potential of two-handed weapons with %1$d %% of the original damage potential." diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/controller/ItemController.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/controller/ItemController.java index cee16b9d6..39642c79c 100644 --- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/controller/ItemController.java +++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/controller/ItemController.java @@ -423,7 +423,16 @@ public final class ItemController { if (itemType != null && itemType.isWeapon()) modifier2 = itemType.effects_equip.stats.setNonWeaponDamageModifier; int modifier = 100; - if (modifier1 >= 0 && modifier2 >= 0) modifier = Math.min(modifier1, modifier2); + if (modifier1 >= 0 && modifier2 >= 0) { + int skillLevelFightStyle = player.getSkillLevel(SkillCollection.SkillID.fightstyleDualWield); + if (skillLevelFightStyle == 2) { + modifier = Math.max(modifier1, modifier2); + } else if (skillLevelFightStyle == 1) { + modifier = (modifier1 + modifier2) / 2; + } else { + modifier = Math.min(modifier1, modifier2); + } + } else if (modifier1 <= 0 && modifier2 >= 0) modifier = modifier2; else if (modifier2 <= 0 && modifier1 >= 0) modifier = modifier1;