Jump to content

Elin:Code Analysis/Combat: Difference between revisions

No edit summary
Line 142: Line 142:


Penetration is always '''25'''
Penetration is always '''25'''
==Ranged==
==Melee/Ranged==
<syntaxhighlight lang="c#" line="1">
<syntaxhighlight lang="c#" line="1">
else
else
Line 197: Line 197:
     this.dDimAmmo = 0;
     this.dDimAmmo = 0;
}
}
</syntaxhighlight>The player shoot thier weapon using the Marksman skill. The weapons are Bows, Crossbows, Guns or Canes.
</syntaxhighlight>The player swing thier melee weapon using the Tactics skill or shoot thier ranged weapon using the Marksman skill


If the weapon is '''Cane''' or it has '''Force Weapon''' enchantment it uses '''Magic Device''' skill instead of Marksman skill
If the weapon is '''Cane''' or it has '''Force Weapon''' enchantment it uses '''Magic Device''' skill instead of Tactics or Marksman skill


Damage Bonus is '''Player Character Damage Bonus''' + '''Weapon Mod Tool Damage Bonus''' + '''Weapon Damage Bonus'''
Damage Bonus is '''Player Character Damage Bonus''' + '''Weapon Mod Tool Damage Bonus''' + '''Weapon Damage Bonus'''


Damage Multiplier is 0.6 + ('''Weapon''' '''Main Stat''' + '''Weapon''' '''Skill / 2''' + ('''Marksman''' if not '''Cane''' or '''Force Weapon,''' otherwise '''Magic Device''')) / 50
Damage Multiplier is 0.6 + ('''Weapon''' '''Main Stat''' + '''Weapon''' '''Skill / 2''' + (If Melee Weapon '''Tactics,''' if Ranged Weapon '''Marksman,''' if Cane or Force Weapon '''Magic Device''')) / 50


If the player has the Ranged Mastery feat, additional damage is provided at a rate of  '''0.05x(Ranged Mastery Rank).''' <sub>''(Effectively, +0.05 or +0.10)''</sub>
If the player has the Weapon/Ranged Mastery feat, additional damage is provided at a rate of  '''0.05 x (Weapon/Ranged Mastery Rank).''' <sub>''(Effectively, +0.05 or +0.10)''</sub>


Accuracy is ('''Dexterty''' if not '''Cane''' or '''Force Weapon,''' otherwise '''Will''') / 4 + '''Weapon Skill''' / 3 + ('''Marksman''' if not '''Cane''' or '''Force Weapon,''' otherwise '''Magic Device''') with a minimum value of '''25+50''' and a maximum of '''75+50'''
Accuracy is ('''Dexterty''' or if '''Cane''' or Force Weapon '''Will''') / 4 + '''Weapon Skill''' / 3 + (If Melee Weapon '''Tactics''', if Ranged Weapon '''Marksman''', if '''Cane''' or Force Weapon '''Magic Device''') with a minimum value of '''25+50''' and a maximum of '''75+50'''


If it's '''Cane''' accuracy addtional + 50
If it's '''Cane''' accuracy addtional + 50
28

edits