Difference between revisions of "Combat Damage"

From Tales of Maj'Eyal
Jump to: navigation, search
(Damage Reduction)
m
 
(10 intermediate revisions by 5 users not shown)
Line 2: Line 2:
  
 
Damage is calculated in several steps.  It is not ''essential'' to understand how these numbers arise, but it is beneficial for players who want to make the most informed decisions. For determining whether an attack hits in the first place, see [[Saves and To-Hit]].
 
Damage is calculated in several steps.  It is not ''essential'' to understand how these numbers arise, but it is beneficial for players who want to make the most informed decisions. For determining whether an attack hits in the first place, see [[Saves and To-Hit]].
 +
 +
  Damage = (0.3 * (rescaled_physical_power + rescaled_stats) * weapon_power * talented_mod) ^1.04
  
 
== Weapon damage calculation ==
 
== Weapon damage calculation ==
  
 
===Step 1: Stats===
 
===Step 1: Stats===
Surprisingly (for people who have played other RPGs), your [[stats]] are actually the most important factor in determining your combat damage, because all the other factors go through a reducing formula first.  Which stats are used depends on the weapon, and in some cases, on your [[talents]].
+
Surprisingly (for people who have played other RPGs), your [[stats]] are actually the most important factor in determining your combat damage.  Which stats are used depends on the weapon, and in some cases, on your [[talents]].
  
For example, a longsword says ''100% Str'' which means it uses your [[Strength]] and nothing else.  A dagger says ''45% Str, 45% Dex'' which means it uses your [[Strength]] (times 0.45) plus your [[Dexterity]] (times 0.45).  However, if you have the [[Lethality (talent)|Lethality]] talent, this overrides the ''45% Str'' part and forces the calculation to use your [[Cunning]] (times 0.45) instead.  So a [[Bulwark]] with a longsword the damage is somewhat proportional to Str*1.0; for a [[Rogue]] with a dagger, it would be Cun*0.45+Dex*0.45.
+
For example, a longsword says ''100% Str'' which means it uses your [[Strength]] and nothing else.  A dagger says ''50% Str, 50% Dex'' which means it uses your [[Strength]] (times 0.5) plus your [[Dexterity]] (times 0.5).  However, if you have the [[Lethality (talent)|Lethality]] talent, this overrides the ''50% Str'' part and forces the calculation to use your [[Cunning]] (times 0.5) instead.  So a [[Bulwark]] with a longsword the damage is somewhat proportional to Str*1.0; for a [[Rogue]] with a dagger, it would be Cun*0.5+Dex*0.5.
  
 
The result of this step is stored in a variable called <tt>totstat</tt> (for "total stats").
 
The result of this step is stored in a variable called <tt>totstat</tt> (for "total stats").
 +
This amount is then put through a [[rescaled combat stats|reducing formula]].
  
As an example, let's take a Rogue with 41 Dexterity and 35 Cunning, who has the [[Lethality (talent)|Lethality]] talent.  His <tt>totstat</tt> (using a dagger) is 41*0.45 + 35*0.45, or 34.2.  His Strength doesn't matter, because [[Lethality (talent)|Lethality]] overrides it.
+
As an example, let's take a Rogue with 41 Dexterity and 35 Cunning, who has the [[Lethality (talent)|Lethality]] talent.  His <tt>totstat</tt> (using a dagger) is 41*0.5 + 35*0.5, or 38.  His Strength doesn't matter, because [[Lethality (talent)|Lethality]] overrides it.  Because this is less than 45, it is not changed by the scaling formula.
  
 
===Step 2: Base weapon damage===
 
===Step 2: Base weapon damage===
  
The second most important factor in determining your damage is your weapon's base damage. This is usually displayed as a range of numbers; we want the lower one.
+
The second most important factor in determining your damage is your weapon's base damage.
 
+
ToME 4 is all about diminishing returns (except when it isn't), and so we convert the weapon's power into a multiplying factor.  We use this formula:
+
  
 +
This is usually displayed as a range of numbers; we want the lower one.
 +
We convert the weapon's power into a multiplying factor.  We use this formula:
 
  power = (sqrt(base_dmg / 10) + 1) / 2
 
  power = (sqrt(base_dmg / 10) + 1) / 2
 +
If weapon's base damage is 28, then power comes out to approximately 1.337.
  
If weapon's base damage is 28, then power comes out to approximately 1.337.
+
It may be displayed as a percentage, 134%.
  
 
===Step 3: Mastery Talent modifier===
 
===Step 3: Mastery Talent modifier===
Each type of weapon has a [[talent]] that boosts its damage output.  For most weapons, this is {{t|Weapons Mastery}}.  For daggers, it is {{t|Dagger Mastery}}.  Bows and slings use {{t|Bow Mastery}} and {{t|Sling Mastery}} respectively. For [[mindstars]], it is {{t|Psiblades}}. Other classes, such as [[Temporal Warden]]s, [[Brawler]]s, [[Stone Warden]]s, [[Sawbutcher]]s, [[Gunslinger]]s, and [[Psyshot]]s have their own class specific way version of these talents.
+
Each type of weapon has a [[talent]] that boosts its damage output.  For most weapons, this is {{t|Weapons Mastery}}.  For daggers, it is {{t|Dagger Mastery}}.  Bows and slings use {{t|Bow Mastery}} and {{t|Sling Mastery}} respectively. For [[mindstars]], it is {{t|Psiblades}}. Other classes, such as [[Temporal Warden]]s, [[Brawler]]s, [[Stone Warden]]s, [[Sawbutcher]]s, [[Gunslinger]]s, and [[Psyshot]]s have their own class specific version of these talents.
  
 
We use this formula:
 
We use this formula:
  
  talented_mod = sqrt(eff_talent_level / 5) / 2 + 1
+
  talented_mod = sqrt(eff_talent_level / 5) / 1.5 + 1
  
With a raw [[Dagger mastery (talent)|Dagger Mastery]] talent level of 5, and a mastery of 1.30 in Combat training, this gives an effective talent level of 6.5.  Therefore the <tt>talented_mod</tt> variable is about 1.570.
+
With a raw [[Dagger mastery (talent)|Dagger Mastery]] talent level of 5, and a mastery of 1.30 in Combat training, this gives an effective talent level of 6.5.  Therefore the <tt>talented_mod</tt> variable is about 1.76.
  
This can also be found in the relevant talent's description: ''increases weapon damage by 57% when using daggers''.
+
This can also be found in the relevant talent's description: ''increases weapon damage by 76% when using daggers''.
  
 
===Step 4: Physical power===
 
===Step 4: Physical power===
Line 40: Line 44:
  
 
For our example, we'll assume our Rogue has a physical power of 27.
 
For our example, we'll assume our Rogue has a physical power of 27.
 +
 +
Physical power is used here for all weapon based attacks, even for weapons such as steamguns, mindstars, and staves using {{t|Channel Staff}}.
  
 
===Step 5: Total damage before rescaling===
 
===Step 5: Total damage before rescaling===
Line 47: Line 53:
 
  dam = 0.3 * (phys_power + totstat) * power * talented_mod
 
  dam = 0.3 * (phys_power + totstat) * power * talented_mod
  
The <tt>dam</tt> variable does not actually exist in the code.  It is only used here for clarity.
+
Continuing our example, our Rogue has a pre-rescaling damage of 0.3 * (27 + 38) * 1.337 * 1.570, or about 40.93.
 
+
Continuing our example, our Rogue has a pre-rescaling damage of 0.3 * (27 + 34.2) * 1.337 * 1.570, or about 38.539.
+
  
 
===Step 6: Rescale damage===
 
===Step 6: Rescale damage===
Line 56: Line 60:
 
  damage = dam ^ 1.04
 
  damage = dam ^ 1.04
  
So, the final output in our Rogue example is 38.539 ^ 1.04, or 44.60.
+
So, the final output in our Rogue example is 40.93 ^ 1.04, or 47.48.
  
This will be shown as 44 on the character sheet.
+
This will be rounded to 47 on the character sheet.
  
 
== Applying the damage ==
 
== Applying the damage ==
Line 67: Line 71:
 
The base damage of a weapon attack is shown in the attack tab of your character sheet, using the calculations shown above.
 
The base damage of a weapon attack is shown in the attack tab of your character sheet, using the calculations shown above.
  
Here we are going to use the example of [[Cornac]] [[Bulwark]] smacking a [[Shalore]] [[Mindslayer]] with a sword.  We'll assume the basic damage calculated in the previous section comes out to 50.
+
Here we are going to use the example of [[Cornac]] [[Bulwark]] (Smasher) smacking a [[Shalore]] [[Mindslayer]] (Squishy) with a sword.  We'll assume the basic damage calculated in the previous section comes out to 50.
  
 
  Accuracy (main Hand)  45
 
  Accuracy (main Hand)  45
Line 73: Line 77:
 
  APR (main Hand)        8
 
  APR (main Hand)        8
 
  Crit (main Hand)      8%
 
  Crit (main Hand)      8%
Speed (main Hand)    100.00%
 
  
 
Result so far: 50
 
Result so far: 50
  
====Step 2: Armour and Armour Hardiness====
+
====Step 2: Damage Range====
Armour reduces damage at this point, making it very effectiveArmour is capped by armour hardiness, and reduced by armour piercing (APR)Enemy armour and armour hardiness are shown in their tooltip.
+
Damage range is displayed if you have advanced weapon statistics turned on.
 +
Otherwise, damage range can be found by dividing the second number in the power of your weapon by the first numberThis is then used to increase the damage to between the base damage and the base damage multiplied by the range, randomlySmasher is using a Dwarven-Steel Longsword, that shows up like:
  
Hardiness/Armour: 30% / 12
+
Base Power: 20 - 28
  
Armour Hardiness specifies the maximum amount that can be reduced by armour.  Squishy's hardiness is 30%, which means that it can reduce a maximum of 15 base damage (30% of 50). Squishy's armour is 12, which is modified by APR before subtracting from base damageThe attacker's APR is 8, leading to an effective armour of 4. 4 is less than the maximum allowable by Hardiness (15), so it is usedThis is subtracted from Smasher's base damage, which reduces it to 46.
+
By dividing (28/20), you can get the damage range of 1.4A random number is then chosen between 50 (the damage) and 70 (damage * range).  In this example, it is 57 (whole numbers only).
  
Result so far: 46
+
Result so far: 57
  
====Step 3: Damage Range====
+
====Step 3: Armour and Armour Hardiness====
Damage range can only be found by dividing the second number in the power of your weapon by the first numberThis is then used to increase the damage to between the base damage and the base damage multiplied by the range, randomlySmasher is using a Dwarven-Steel Longsword, that shows up like:
+
Armour reduces damage at this point, making it very effectiveArmour is capped by armour hardiness, and reduced by armour piercing (APR)Enemy armour and armour hardiness are shown in their tooltip.
  
Base Power: 20 - 28
+
Hardiness/Armour: 30% / 12
  
By dividing (28/20), you can get the damage range of 1.4A random number is then chosen between 46 (the damage after armour) and 64.4 (46 * 1.4).  In this example, it is 57 (whole numbers only).
+
Armour Hardiness specifies the maximum percentage of the attack that can be blocked by armour.  Squishy's hardiness is 30%, which means that it can reduce a maximum of 15 base damage (30% of 50)Squishy's armour is 12, which is modified by APR before subtracting from base damage. The attacker's APR is 8, leading to an effective armour of 4. 4 is less than the maximum allowable by Hardiness (15), so it is usedThis is subtracted from Smasher's base damage, which reduces it to 53.
  
Result so far: 57
+
Result so far: 53
  
 
====Step 4: Talents====
 
====Step 4: Talents====
Smasher attacked with Dirty Fighting (lvl 2) for 52% damage, which is a fairly straightforward multiplication.  57 * 52% = 29.64
+
Smasher attacked with Dirty Fighting (lvl 2) for 52% damage, which is a fairly straightforward multiplication.  53 * 52% = 27.56
  
Result so far: 29.64
+
Result so far: 27.56
  
 
====Step 5: Critical Hits====
 
====Step 5: Critical Hits====
Critical hits are a chance to do extra damage.  The chance is found in the attack tab, near the damage and APR found previously, and is 8% in this example.  The amount of damage that a critical hit does is multiplied by the "Critical mult.", found under the Damage Mods column.  The default is 150%, and it can be raised by various means.  Smasher got lucky, and got a critical hit.  29.64 * 150% = 44.46
+
Critical hits are a chance to do extra damage.  The chance is found in the attack tab, near the damage and APR found previously, and is 8% in this example.  The amount of damage that a critical hit does is multiplied by the "Critical mult.", found under the Damage Mods column.  The default is 150%, and it can be raised by various means.  Smasher got lucky, and got a critical hit.  27.56 * 150% = 41.34
  
Result so far: 44.46
+
Result so far: 41.34
  
 
====Step 6: Offhand Multiplier====
 
====Step 6: Offhand Multiplier====
Line 116: Line 120:
  
 
====Increased Damage====
 
====Increased Damage====
Element category increases and enemy category increases are summed for the foe and then applied. If you have +25% physical damage and +25% damage against living and attack a living foe with a physical attack, the resulting damage will be multiplied by 1.5.
+
Increased damage effects all add together. If you have +25% physical damage and +25% damage against living and attack a living foe with a physical attack, the resulting damage will be multiplied by 1.5.
 
+
=====Element Categories=====
+
These are applied to any damage you do of the corresponding type. The most common sources of this is from certain egos and always on staffs.
+
 
+
=====Enemy Categories=====
+
These are applied to any damage you do to the corresponding type of foe. The most common sources of this is from certain egos and artifacts, such as [[Genocide]].
+
  
 
====Resistances====
 
====Resistances====
Line 128: Line 126:
  
 
====Damage Reduction====
 
====Damage Reduction====
It is at this point that [[Damage Reduction]]s are applied.
+
It is at this point that [[Damage reduction]]s are applied.

Latest revision as of 03:56, 9 August 2022


Damage is calculated in several steps. It is not essential to understand how these numbers arise, but it is beneficial for players who want to make the most informed decisions. For determining whether an attack hits in the first place, see Saves and To-Hit.

  Damage = (0.3 * (rescaled_physical_power + rescaled_stats) * weapon_power * talented_mod) ^1.04

Weapon damage calculation

Step 1: Stats

Surprisingly (for people who have played other RPGs), your stats are actually the most important factor in determining your combat damage. Which stats are used depends on the weapon, and in some cases, on your talents.

For example, a longsword says 100% Str which means it uses your Strength and nothing else. A dagger says 50% Str, 50% Dex which means it uses your Strength (times 0.5) plus your Dexterity (times 0.5). However, if you have the Lethality talent, this overrides the 50% Str part and forces the calculation to use your Cunning (times 0.5) instead. So a Bulwark with a longsword the damage is somewhat proportional to Str*1.0; for a Rogue with a dagger, it would be Cun*0.5+Dex*0.5.

The result of this step is stored in a variable called totstat (for "total stats"). This amount is then put through a reducing formula.

As an example, let's take a Rogue with 41 Dexterity and 35 Cunning, who has the Lethality talent. His totstat (using a dagger) is 41*0.5 + 35*0.5, or 38. His Strength doesn't matter, because Lethality overrides it. Because this is less than 45, it is not changed by the scaling formula.

Step 2: Base weapon damage

The second most important factor in determining your damage is your weapon's base damage.

This is usually displayed as a range of numbers; we want the lower one. We convert the weapon's power into a multiplying factor. We use this formula:

power = (sqrt(base_dmg / 10) + 1) / 2

If weapon's base damage is 28, then power comes out to approximately 1.337.

It may be displayed as a percentage, 134%.

Step 3: Mastery Talent modifier

Each type of weapon has a talent that boosts its damage output. For most weapons, this is Weapons Mastery. For daggers, it is Dagger Mastery. Bows and slings use Bow Mastery and Sling Mastery respectively. For mindstars, it is Psiblades. Other classes, such as Temporal Wardens, Brawlers, Stone Wardens, Sawbutchers, Gunslingers, and Psyshots have their own class specific version of these talents.

We use this formula:

talented_mod = sqrt(eff_talent_level / 5) / 1.5 + 1

With a raw Dagger Mastery talent level of 5, and a mastery of 1.30 in Combat training, this gives an effective talent level of 6.5. Therefore the talented_mod variable is about 1.76.

This can also be found in the relevant talent's description: increases weapon damage by 76% when using daggers.

Step 4: Physical power

Physical power is a rescaled combat stat. We won't go into the factors that affect it here; get it from your character's tooltip.

For our example, we'll assume our Rogue has a physical power of 27.

Physical power is used here for all weapon based attacks, even for weapons such as steamguns, mindstars, and staves using Channel Staff.

Step 5: Total damage before rescaling

Now we combine all our numbers together, using this formula:

dam = 0.3 * (phys_power + totstat) * power * talented_mod

Continuing our example, our Rogue has a pre-rescaling damage of 0.3 * (27 + 38) * 1.337 * 1.570, or about 40.93.

Step 6: Rescale damage

This is the final step in determining the base damage shown on the character sheet. The damage figure calculated in the previous step is run through this formula:

damage = dam ^ 1.04

So, the final output in our Rogue example is 40.93 ^ 1.04, or 47.48.

This will be rounded to 47 on the character sheet.

Applying the damage

Determining Weapon Damage

Step 1: Weapon damage

The base damage of a weapon attack is shown in the attack tab of your character sheet, using the calculations shown above.

Here we are going to use the example of Cornac Bulwark (Smasher) smacking a Shalore Mindslayer (Squishy) with a sword. We'll assume the basic damage calculated in the previous section comes out to 50.

Accuracy (main Hand)  45
Damage (main Hand)    50
APR (main Hand)        8
Crit (main Hand)       8%

Result so far: 50

Step 2: Damage Range

Damage range is displayed if you have advanced weapon statistics turned on. Otherwise, damage range can be found by dividing the second number in the power of your weapon by the first number. This is then used to increase the damage to between the base damage and the base damage multiplied by the range, randomly. Smasher is using a Dwarven-Steel Longsword, that shows up like:

Base Power: 20 - 28

By dividing (28/20), you can get the damage range of 1.4. A random number is then chosen between 50 (the damage) and 70 (damage * range). In this example, it is 57 (whole numbers only).

Result so far: 57

Step 3: Armour and Armour Hardiness

Armour reduces damage at this point, making it very effective. Armour is capped by armour hardiness, and reduced by armour piercing (APR). Enemy armour and armour hardiness are shown in their tooltip.

Hardiness/Armour: 30% / 12

Armour Hardiness specifies the maximum percentage of the attack that can be blocked by armour. Squishy's hardiness is 30%, which means that it can reduce a maximum of 15 base damage (30% of 50). Squishy's armour is 12, which is modified by APR before subtracting from base damage. The attacker's APR is 8, leading to an effective armour of 4. 4 is less than the maximum allowable by Hardiness (15), so it is used. This is subtracted from Smasher's base damage, which reduces it to 53.

Result so far: 53

Step 4: Talents

Smasher attacked with Dirty Fighting (lvl 2) for 52% damage, which is a fairly straightforward multiplication. 53 * 52% = 27.56

Result so far: 27.56

Step 5: Critical Hits

Critical hits are a chance to do extra damage. The chance is found in the attack tab, near the damage and APR found previously, and is 8% in this example. The amount of damage that a critical hit does is multiplied by the "Critical mult.", found under the Damage Mods column. The default is 150%, and it can be raised by various means. Smasher got lucky, and got a critical hit. 27.56 * 150% = 41.34

Result so far: 41.34

Step 6: Offhand Multiplier

Offhand weapons only do 50% damage, unless the attacker has a talent that increases this, such as Dual Weapon Training or Corrupted Strength. Offhand mindstars do full damage.

Since this is not an offhand weapon, there is no adjustment in this step.

Result so far: 44.46

Common Damage Modifiers

All sources of damage are affected the same by the following things in this order.

Increased Damage

Increased damage effects all add together. If you have +25% physical damage and +25% damage against living and attack a living foe with a physical attack, the resulting damage will be multiplied by 1.5.

Resistances

It is at this point that Resistances are applied.

Damage Reduction

It is at this point that Damage reductions are applied.