Difference between revisions of "Maths"

From Pagan Online Wiki
Jump to navigation Jump to search
m (Correction by Easymode to critical calculation)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This page exists purely to reveal the calculations behind damage, defense, and resistance.
 
This page exists purely to reveal the calculations behind damage, defense, and resistance.
  
== Basics ==
+
All player skills are abilities affected by a '''''source''''' and '''''type''''':
All ATTACKs are an ABILITY which is affected by both SOURCE and TYPE.<br>
+
* Source can be an '''''attack''''' or '''''spell'''''
SOURCE of an ability can be ATTACK or SPELL.<br>
+
* The type of an ability can be physical, fire, cold, poison, lightning
TYPE of an ability can be physical, fire, cold, poison, lightning.<br>
 
ABILITIES with an ATTACK SOURCE benefits from Bonus ATTACK Damage (henceforth “DMG”) stat which is derived from Strength and any ability that has a SPELL source benefits from Bonus SPELL DMG stat which is derived from Intelligence.<br>
 
Something that is an ATTACK can be of any element (fire, cold, lightning, poison, physical).<br>
 
Something that is a SPELL can also be of any element.
 
  
Ability with ATTACK source = SUM(FLAT_DAMAGE stats) * SUM(percentage based ATTACK bonus DMG stats)<br>
+
An ability with an '''''attack''''' source benefits from the ''Bonus Attack Damage'' (DMG) stat and is derived from [[stats|Strength]].
Ability with SPELL source = SUM(FLAT_DAMAGE stats) * SUM(percentage based SPELL  bonus DMG stats)<br>
+
Any ability that has a '''''spell''''' source benefits from ''Bonus Spell DMG stat'' derived from [[Stats|Intelligence]].
  
'''Raw Calculations'''
+
Attacks and spells can be of any element (e.g., fire, cold, physical).
  
Attack Damage = (Σphysical * (1+ Σattack bonus DMG(%)) * (1+ Σphysicalbonus(%)) +
+
'''''Note:''''' [[Might]] simplifies the calculations and provides a general display of overall battle strength based on the might of each individual item added to the calculated might of the Hero without any items (displayed with no items equipped). ''It does not consider individual min-maxed stats of items.''
(Σsunfire * (1+Σ attack bonus DMG(%)) * (1 + Σsunfire bonus(%)) +
 
(Σcold * (1+ Σ attack bonus DMG(%)) * (1+ Σcold bonus(%)) +
 
(Σpoison * (1+ Σ attack bonus DMG(%)) * (1+ Σpoison bonus(%)) +
 
(Σlightning * (1+ Σ attack bonus DMG(%)) * (1+Σlightning bonus(%))
 
  
Spell Damage = (Σphysical * (1+ Σspell bonus DMG(%)) * (1+ Σphysical bonus(%)) +
 
(Σsunfire * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%)) +
 
(Σcold * (1+ Σ spell bonus DMG(%)) * (1+ Σcold bonus(%)) +
 
(Σpoison * (1+ Σ spell bonus DMG(%)) * (1+ Σpoison bonus(%)) +
 
(Σlightning * (1+ Σ spell bonus DMG(%)) * (1+Σlightning bonus(%)
 
  
'''Setup'''
+
=== Formulas ===
 +
* Ability with an attack source = SUM(FLAT_DAMAGE stats) * SUM(percentage based Attack bonus DMG stats)
 +
* Ability with a spell source = SUM(FLAT_DAMAGE stats) * SUM(percentage based Spell  bonus DMG stats)
 +
* ''Global Crit Chance'' is based on [[stats|dexterity]]. When a critical attack occurs, it calculates Attack and Spell Critical DMG bonuses to create the following formula: Critical Hit Dmg = 1.2 * Attack Damage * (1 + Critical Attack Damage (%))
  
LMB  - Your primary attack relies on the above Raw Calculations. When you equip a weapon you get some stats and the game collects all of your flat DMG stats and sums them, then multiplies them by sum of all your % based bonuses to calculate final DMG.
+
=== Raw Calculations ===
 +
''Attack Damage'' = (Σphysical * (1+ Σattack bonus DMG(%)) * (1+ Σphysicalbonus(%)) + (Σsunfire * (1+Σ attack bonus DMG(%)) * (1 + Σsunfire bonus(%)) + (Σcold * (1+ Σ attack bonus DMG(%)) * (1+ Σcold bonus(%)) + (Σpoison * (1+ Σ attack bonus DMG(%)) * (1+ Σpoison bonus(%)) + (Σlightning * (1+ Σ attack bonus DMG(%)) * (1+Σlightning bonus(%))
  
All other abilities are calculated differently (see examples)
+
''Spell Damage'' = (Σphysical * (1+ Σspell bonus DMG(%)) * (1+ Σphysical bonus(%)) + (Σsunfire * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%)) + (Σcold * (1+ Σ spell bonus DMG(%)) * (1+ Σcold bonus(%)) + (Σpoison * (1+ Σ spell bonus DMG(%)) * (1+ Σpoison bonus(%)) + (Σlightning * (1+ Σ spell bonus DMG(%)) * (1+Σlightning bonus(%)
  
Everything that is PHYSICAL DMG is calculated vs ARMOR (%PHYSICAL DMG reduction)<br>
+
=== Setup ===
Everything else is calculated vs RESISTANCE type
 
  
'''Critical Damage'''
+
'''LMB''' - The primary attack relies on the above Raw Calculations. When equipping a weapon, the [[stats]] are applied, and the game collects and sums the flat DMG stats, then multiplies them by the sum of all percent-based bonuses to calculate final DMG.
  
GLOBAL Crit Chance is based on dexterity. When a Crit occurs it calculates ATTACK and SPELL Critical DMG bonuses in two functions.<br>
+
All other abilities are calculated differently.
Crit DMG = (Normal DMG * Critical DMG Bonus)
+
* Everything that is Physical DMG is calculated vs [[Stats|Armor]] (% Physical DMG reduction)
 +
* Everything else is calculated vs [[stats|resistance]] type
  
 
== Examples ==
 
== Examples ==
* [[Istok]] -  LMB ability is an ATTACK based ability that does PHYSICAL damage.
 
* [[Anya]] - LMB ability is a SPELL base ability that does PHYSICAL damage.
 
* [[Istok]] - RMB ability is ATTACK based ability that does LIGHTNING damage
 
* [[Lukian]] - LMB ability is a SPELL base ability that does LIGHTNING damage
 
* [[Kingewitch]] - SPACE ability is an ATTACK based ability that does PHYSICAL
 
* [[Anya]] - MMB ability is a SPELL based ability that does PHYSICAL
 
* If you have weapon that does 20 physical DMG, and +5 poison flat DMG stat with +20% poison DMG bonus.
 
:- Your LMB attack will do total of 26 DMG: 20 PHYSICAL and 6 POISON.
 
:- Your SPACE ability that does 300% physical DMG will do total 60 DMG.... and POISON will not affect it.
 
* Sunfire DMG and Sunfire Bonus DMG% will only boost abilities that do Sunfire DMG.
 
* ([[Lukian]] Weapon Damage + Σsunfire flat DMG) * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%))
 
  
== Notes ==
+
=== Hero Skill Examples ===
[[MIGHT]] is a rough number which simplifies the calculations and provides a general show of your overall battle strength. It does not consider min-maxed stats.<br>
+
 
 +
==== Attack Examples ====
 +
 
 +
* [[Istok]] -  LMB ability is an '''''attack''''' based ability that does physical damage
 +
* Istok - RMB ability is '''''attack''''' based ability that does lightning damage
 +
* [[Kingewitch]] - SPACE ability is an '''''attack''''' based ability that does physical
 +
 
 +
==== Spell Examples ====
 +
 
 +
* [[Anya]] - LMB ability is a '''''spell''''' based ability that does physical damage
 +
* Anya - MMB ability is a '''''spell''''' based ability that does physical
 +
* [[Lukian]] - LMB ability is a '''''spell''''' based ability that does lightning damage
 +
 
 +
=== Damage Examples ===
 +
 
 +
'''Damage Example 1'''
 +
 
 +
A weapon does:
 +
* 20 Physical DMG
 +
* Poison DMG +5
 +
* Poison DMG +20%
 +
** LMB '''''attack''''' will do total of 26 damage, 20 physical and 6 poison: '''20 + (5+ (5 x .20)) = 26'''
 +
** Space ability that applies 300% Physical DMG: '''20*3.00 = 60''' (Poison DMG is not applied)
 +
 
 +
'''Damage Example 2'''
 +
 
 +
Sunfire DMG and Sunfire Bonus DMG% boosts Lukian’s abilities that do Sunfire DMG: (Lukian Weapon Damage + Σsunfire flat DMG) * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%))

Latest revision as of 13:07, 6 May 2019

This page exists purely to reveal the calculations behind damage, defense, and resistance.

All player skills are abilities affected by a source and type:

  • Source can be an attack or spell
  • The type of an ability can be physical, fire, cold, poison, lightning

An ability with an attack source benefits from the Bonus Attack Damage (DMG) stat and is derived from Strength. Any ability that has a spell source benefits from Bonus Spell DMG stat derived from Intelligence.

Attacks and spells can be of any element (e.g., fire, cold, physical).

Note: Might simplifies the calculations and provides a general display of overall battle strength based on the might of each individual item added to the calculated might of the Hero without any items (displayed with no items equipped). It does not consider individual min-maxed stats of items.


Formulas

  • Ability with an attack source = SUM(FLAT_DAMAGE stats) * SUM(percentage based Attack bonus DMG stats)
  • Ability with a spell source = SUM(FLAT_DAMAGE stats) * SUM(percentage based Spell bonus DMG stats)
  • Global Crit Chance is based on dexterity. When a critical attack occurs, it calculates Attack and Spell Critical DMG bonuses to create the following formula: Critical Hit Dmg = 1.2 * Attack Damage * (1 + Critical Attack Damage (%))

Raw Calculations

Attack Damage = (Σphysical * (1+ Σattack bonus DMG(%)) * (1+ Σphysicalbonus(%)) + (Σsunfire * (1+Σ attack bonus DMG(%)) * (1 + Σsunfire bonus(%)) + (Σcold * (1+ Σ attack bonus DMG(%)) * (1+ Σcold bonus(%)) + (Σpoison * (1+ Σ attack bonus DMG(%)) * (1+ Σpoison bonus(%)) + (Σlightning * (1+ Σ attack bonus DMG(%)) * (1+Σlightning bonus(%))

Spell Damage = (Σphysical * (1+ Σspell bonus DMG(%)) * (1+ Σphysical bonus(%)) + (Σsunfire * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%)) + (Σcold * (1+ Σ spell bonus DMG(%)) * (1+ Σcold bonus(%)) + (Σpoison * (1+ Σ spell bonus DMG(%)) * (1+ Σpoison bonus(%)) + (Σlightning * (1+ Σ spell bonus DMG(%)) * (1+Σlightning bonus(%)

Setup

LMB - The primary attack relies on the above Raw Calculations. When equipping a weapon, the stats are applied, and the game collects and sums the flat DMG stats, then multiplies them by the sum of all percent-based bonuses to calculate final DMG.

All other abilities are calculated differently.

  • Everything that is Physical DMG is calculated vs Armor (% Physical DMG reduction)
  • Everything else is calculated vs resistance type

Examples

Hero Skill Examples

Attack Examples

  • Istok - LMB ability is an attack based ability that does physical damage
  • Istok - RMB ability is attack based ability that does lightning damage
  • Kingewitch - SPACE ability is an attack based ability that does physical

Spell Examples

  • Anya - LMB ability is a spell based ability that does physical damage
  • Anya - MMB ability is a spell based ability that does physical
  • Lukian - LMB ability is a spell based ability that does lightning damage

Damage Examples

Damage Example 1

A weapon does:

  • 20 Physical DMG
  • Poison DMG +5
  • Poison DMG +20%
    • LMB attack will do total of 26 damage, 20 physical and 6 poison: 20 + (5+ (5 x .20)) = 26
    • Space ability that applies 300% Physical DMG: 20*3.00 = 60 (Poison DMG is not applied)

Damage Example 2

Sunfire DMG and Sunfire Bonus DMG% boosts Lukian’s abilities that do Sunfire DMG: (Lukian Weapon Damage + Σsunfire flat DMG) * (1+Σ spell bonus DMG(%)) * (1 + Σsunfire bonus(%))