Difference between revisions of "Formulas"

From Morloch Wiki
Jump to: navigation, search
m
m
Line 60: Line 60:
  
 
=== Dexterity Penalty on Armor <br />===
 
=== Dexterity Penalty on Armor <br />===
(weight of all armor) * .004 * (dex with no armor) = (dex penalty with armor equipped)
+
(Weight of all armor) * .004 * (Dexterity with no armor equipped) = (Dexterity penalty with armor equipped)
<hr>
 
  
 
== Damage Formulas ==
 
== Damage Formulas ==

Revision as of 16:36, 30 January 2014

Confirmed Game Formulas

Skill Formulas

Focus Skill Cap

55 + Intelligence + (primaryStat/10) + raceBonus + traitsBonus


Base Skill

(75 + 3*Intelligence + 2*Secondary Stat) / 20

The secondary stat depends on the skill:

Constitution: Toughness and Athletics.
Dexterity: Light Armor, Unarmed, Unarmed Mastery, Dagger, Dagger Mastery, Staff, Staff Mastery, Bow, Crossbow, Archery, Blade Mastery, and Blade Weaving.
Spirit: Class focuses (Bardsong, Nature Lore, etc.)
Strength: Heavy Armor, Medium Armor, Axe, Axe Mastery, Sword, Sword Mastery, Hammer, Hammer Mastery, Polearm, Polearm Mastery, Great Sword Mastery, Great Axe Mastery, and Great Hammer Mastery.
This is only a rough approximation. There is no formula for this as the rate at which they increase is irregular. The Shadowbane Gameplay Mechanics forums have the full list.


Training Skill Max

Results are in Percentile
1) Take your main stat and divide it by 10.
2) Add your race bonus(if any) to that.
3) Add any creation runes(if any) to that.
4) Add 50 to that.
5) Add your INT to that.
6) Add 10 to that(this is to compensate for the 2 for 1 first 10 trains)
7) This final number is what you can train that skill to.


Points Spent to Train

First 10 trains = 1 train for 2%
Past 10 trains = 1 train for 1%
Past 90 trains = 2 trains for 1%
Past 134 trains = 3 trains for 1%
Partial % does not register in formulas, ex. you gain no benefit for having 91 trains in a skill as it is the same % as 90

Attack Rating Formulas

Spell Attack Rating

7 * Spell Focus Line + 0.5 * DEX + (ATR magical bonuses on weapon(s))
Round .5 values to next highest whole number. (i.e. 719.5 = 720)


Melee Attack Rating

Melee ATR = (Primary Stat / 2) + (Weapon Skill * 4) + (Weapon Mastery * 3) + (ATR Enchantments) * 1.stance modifier

Defense Formulas

Defense

((dex*2) + (total armour*(armour skill * .03)) + (shield armour * (shield skill * .03)) + ((primary weapon skill + secondary weapon skill)/2)) * (1.stance modifier)


Alternative Defense Formula

Defense = (1+ArmorSkill / 50) * ArmorDef + (1+ShieldSkill / 100) * ShieldDef + (WeaponSkill / 2) + (WeaponMastery / 2) + Dex * 2 + Flat bonuses from rings or cloth


Passive Defense

Block: (base skill + block bonus from shield) / 4, +/- 1% per level difference
Parry: (base skill + parry bonus) / 4, +/- % per level difference
Parry Bonus = 5% for dual wield, 10% for 2h weapon
Dodge: (base skill) / 4, +/- 1% per level difference


Dexterity Penalty on Armor

(Weight of all armor) * .004 * (Dexterity with no armor equipped) = (Dexterity penalty with armor equipped)

Damage Formulas

Weapon Damage Calculation

[Damage from the Warlord's/Morloch's prefix] is added on the min and max of the weapon afters skills and stances are added. So it is added to the minimum and maximum damage the weapon could do to an opponent with zero resist that hasn't been exposed. In effect it is added to the numbers the server rolls the dice between to determine weapon damage, before it considers resists etc. It isn't added to the actual amount done.

In summary damage works like this:

1. Work out modified weapon base damage from weapon base + enchants that change min and max
2. (Theortically) added weapon damage multipliers (like Slay Rat etc) - not currently coded.
3. Reduce min and max damage of offhand weapon by 30%
4. Calculate Max and Min damage (formula on the wiki)
5. Halve the min and max if you are in deathshroud
6. Add +dmg mods to min and max
7. Add damage multipliers to min and max (stances, zeals etc)
8. Roll for damage between the min and max

Suffixes like "of Slaughter" affect step 1
Prefixes like "Warlords" affect setup 6

- Amaz


Maximum Weapon Damage

Weapon Max DMG = BaseDMG * (0.0124*Primary Stat + 0.118*(Primary Stat -0.75)^0.5 + 0.0022*Secondary Stat + 0.028*(Secondary Stat-0.75)^0.5 + 0.0075*(Weapon Skill + Weapon Mastery))


Minimum Weapon Damage

Weapon Min DMG = BaseDMG * (0.0048*Primary Stat +.049*(Primary Stat-0.75)^0.5 + 0.0066*Secondary Stat + 0.064*(Secondary Stat-0.75)^0.5 + 0.01*(Weapon Skill + Weapon Mastery})


Spell Damage Formula

Min = (0.0045*int + 0.055*(int-0.5)^0.5 + 0.006*spir + 0.07*(spir-0.5)^0.5 + 0.02*focus)*spell min dmg
Max = (0.0117*int + 0.13*(int-0.5)^0.5 +0.0024*spir + 0.021*(spir-0.5)^0.5 +0.015*focus)*spell max dmg


Stamina Drain Per Weapon Swing

1/3 stam per 1w of items, per swing
a 3w item will drain 1 stam per swing.
a 15w item will drain 5 stam per swing
w = Weight.