Maths

From Pagan Online Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to navigation Jump to search

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(%))