User:Silver fox

From SacredWiki
Revision as of 16:48, 13 February 2014 by Silver fox (talk | contribs) (Corrected info about Stun and Root)
Jump to navigation Jump to search

Damage calculation formula for Spell Damage Based Combat Arts

Influence character's Skills and Attributes have on Damage dealt.

Damage calculation formula:

Damage dealt = (Basic Damage + Basic Damage*M(Lvl) + Basic Damage*M(Bonus))*M(Int)*M(Crit)*check_resists*M(Res)


  • Basic Damage dealt by a Combat Art can be increased in two ways - by increasing its level or by choosing a damage modification if there is one (and for damage-dealing Combat Arts such modifications are always available). Usually these modifications offer no more than 35% damage increase but they should be chosen for CAs that are used as main damage dealers.
  • There is a hidden modifier M(Lvl) that depends on CA level. Its value is M(Lvl)=CA_lvl*0.02, so it adds 2% at CA level 1 and 200% at CA level 100.
  • Intelligence defines a M(Int) modifier, which has extremely high values at low CA level but quickly decreases with the increase of CA level.
For example, for a character with 1000 Intelligence M(Int) will be:
Combat Art Level M(Int) Damage
1 1 + 6.66 + 666%
5 1 + 2.22 + 222%
10 1 + 1 + 100%
25 1 + 0.5 + 50%
50 1 + 0.25 + 25%
100 1 + 0.2 + 20%
  • M(Crit) is defined by Critical Hits. It has a value of 1.0 for a regular hit and 1.2 for a critical one.
  • M(Res) is a result of Spell Resistance/Spell Intensity check. It has a value of 1.0 if player's character "succeeds" and a value of 0.7 if a character "fails".
An attacking character succeeds in the check if his/her Spell Intensity exceeds Spell Resistance of the target. If a character "fails" this check the damage outcome would be reduced by 30% (by 1.5 times compared to the original). Having Spell Intensity of 2400 and more allows to "win" this check even against Champions and Bosses of the highest levels (200+). "Failing" the check also means that secondary Detrimental Effects caused by CA would also be reduced by 30%. Spell Intensity has no effect on Damage over Time (DoT)!
  • check_resists is a multiplier defined by the target's armor and related modifiers. Its value can be calculated as following:
check_resists = damage taken/damage dealt
It can exceed 1 if an enemy has Damage Vulnerability +x% modifier either as inherent property or as a consequence of player's actions.
Besides armor, opponents in game can have Damage Mitigation (DM) modifier for each of five Damage Types. The final formula for damage dealt (calculated separatedly for each Damage Type) is:
damage taken = damage dealt*(100% - DM) * (damage dealt*(100% - DM) / (damage dealt*(100% - DM) + damage absorbed by armor))
For example if a character with 50 Physical Damage hits an opponent with 200 Physical Armor and 40% Physical Damage Mitigation, the result would be as folllows:
damage taken = 50*((50*0.6)/((50*0.6)+200)) = 3,91.
Which means that the opponent suffers 4 Physical Damage.

Other types of Damage

There are other types of damage in game besides regular damage - those are Damage over Time and damage caused by Detrimental Magic Effects.

  • Detrimental Magic Effects are Burn, Poison and Open Wounds (also Freeze, Weaken and Root, but those do not deal damage). They have a chance to occure when an enemy is hit by a weapon or Combat Art and inflict a percent of the damage that caused an effect over time of 5 seconds. If such effect was caused by a Critical Hit then the damage inflicted by that effect also increases by 20%. If Detrimental effect was caused by a hit with failed Spell Resistance/Spell Intensity check, this effect's damage is likewise decreased by 30%. Several Detrimental effects stack, so an enemy can be suffering from several effects at the same time. However, only one effect would be displayed. If a target has extremely high Spell Resistance stat (for example, 6000+ Willpower at level 200), duration of Detrimental effects is decreased to 1 second and damage by 6 times.
Some percent of Combat Art's damage is inflicted upon a target for some time. Several DoT effects stack, so the target can be hit by different Damage Types at the same time, but as with Detrimental effects only one would be displayed. DoT is not affected by target's armor, but can be reduced by several modifiers. Those are Damage over Time -%, Damage Mitigation -% and Mastery of Spell Resistance Skill.

The Ancient Magic Skill allows to partially ignore the target's Armor as well as Damage Mitigation and DoT -% modifiers for Spell Damage Based Combat Arts. This skill causes relative decrease of these modifiers as it affects only actual modifiers the target has.

Temple Guardian's CAs Fiery Ember and Icy Evanescence increase target's vulnerability to Ice or Fire; High Elf's Buff Crystal Skin has Feel Cold modification that causes all targets in close vicinity to the caster to be more vulnerable to Ice Damage. These CAs cause all enemies in Area of Effect to have modifier "Damage Vulnerability Ice/Fire +x%" which not only removes these enemies' resistance to Damage but can decrease it below zero, causing CAs to deal more damage than the value stated in CA description. These CAs do not affect target's Armor, but decrease Damage Mitigation modifiers and DoT -% modifiers by fixed percentage (not by percent of target's mitigation like Ancient Magic).

Understanding defensive properties

Using the following formula:

damage taken = damage dealt * (damage dealt / (damage dealt + damage absorbed))

we will determine the conditions for dealing as much damage as possible.

  • It is noticeable that if target's Armor value is equal to the damage dealt, the damage outcome would be halved. If Armor is two times bigger than damage dealt then damage outcome would be three times less. According to this dependency it is much better to deal one serious high-damage hit than several small ones, due to the features of game mechanics. Damage dealt should be greater than the target's armor and it is best to make it several times greater. Otherwise armor absorbs great percentage of incoming damage. And vice versa - if damage dealt to the character is really great (as is the case with Bosses' attacks and CAs on Niobium) it is better to equip items with Damage Mitigation as gathering enough elemental armor to have armor value on par with incoming damage is nearly impossible.
  • Percent values for chances to Block, Dodge and Reflect are not a sum of all bonuses for respective modifier, but are calculated by non-linear formula. The result can be nearing 100% but can never reach this value.
  • Damage Mitigation +x% and DoT -x% modifiers are cumulative, which means that values from different sources are simply added to each other (1+1=2) and can reach 100%, making a character effectively immune to a particular damage type.
  • There are two modifiers that save player's characters and monsters from damage over time: those are DoT -x% and Damage Mitigation +x%. Effects of these two modifiers are layering, which means that 50% of Damage Mitigation and 50% of DoT reduction would decrease damage over time by 75%. For example Ice Elementals (who are completely immune to Ice spells) while being affected by Ancient Magic Mastery (which decreases opponents' resistances by 50%) would suffer 25% of incoming Ice DoT, as incoming damage would first be reduced by remaining modifier '"Damage over Time: Ice -50%" and then by "Damage Mitigation: Ice +50%".
  • Mastery of Spell Resistance skill (75+ skill level) decreases both duration of Detrimental Magic Effects and of Damage over Time. At level 75 it makes the duration of DoT and Detrimental effects 35% of original value and decreases it further when the skill level is increased. Damage dealt by these effects is decreased proportionally to the time decrease. For example, if incoming DoT was to inflict 250 damage for 5 seconds it would be decreased by Mastery of Spell Resistance to two seconds - 250 damage dealt by the first pulse and 187 damage a second later, summing up to 437 damage which is 35% of initial 1250.
    • Spell Resistance does not affect negative effects like Stun (as it is not considered a detrimental magic effect). Stun duration can not be decreased by any modifiers. It is a constant value defined by DurationStun parameter in balance.txt (default value is 300 which is equal to 3 seconds in game).
  • Mastery of Toughness skill adds Damage Mitigation: All Channels modifier which sums up with other damage mitigation modifiers the character has from equipment and CAs. If damage mitigation of particular damage type reaches 100% the character becomes immune to all damage of that time including DoT.
  • It is possible to block or reflect incoming elemental damage, but not DoT. Successfully blocking or reflecting a close combat or ranged combat attack negates all detrimental effects that could have been caused by this attack. Stun effect can also be blocked or reflected.
  • Some Detrimental Magic Effects (Burn, Poison and Open Wounds) are classified as DoT and therefore affected by Damage Mitigation +x% and DoT -x% modifiers as well as by Mastery of Spell Resistance skill.