ATK

== Overview ==
ATK is the total physical damage output before factoring in Attacks or Skills. It is broken into five parts: StatusATK, WeaponATK, ExtraATK, MasteryATK, and BuffATK. 
Calculation Note: Decimals do not actually exist in the game, so every calculation is immediately rounded down (floored). For readability, floor() is not written in the formulas. To see an example, check the Flooring Example
== StatusATK ==
This is derived from the player's Base Level, Str, Dex, and Luk. This is always considered as Neutral property unless the player uses Mild Wind.
=== Formula ===
StatusATK = (BaseLevel ÷ 4) + Str + (Dex ÷ 5) + (Luk ÷ 3)
When using a Bow, Gun, Instrument or Whip.
StatusATK = (BaseLevel ÷ 4) + (Str ÷ 5) + Dex + (Luk ÷ 3)
== WeaponATK ==
This is derived from a player's equiped Weapon and Str or Dex depending on your weapon type. Variance, StatBonus, and OverUpgradeBonus is not shown in the Status Window.
=== Formula ===
WeaponATK = (BaseWeaponDamage + Variance + StatBonus + RefinementBonus + OverUpgradeBonus) × SizePenalty
*Variance
:Variance = ± 0.05 × WeaponLevel × BaseWeaponDamage
:Example: A level 4 weapon have a 0.05 * 4 = 20% variance. This means a level 4 weapon can do 20% less or 20% more than its base damage value. For a weapon with 100 base damage, this translate to 20% * 100 = 20 damage variance. So for each hit, the player will actually deal a random damage between 80 and 120. Power Maximize will set the damage variance to the highest, so each hit will deal 120 damage.
*StatBonus
:StatBonus = BaseWeaponDamage × Str ÷ 200
:This bonus is 
*StatBonus when using a Bow, Gun, Instrument or Whip.
:StatBonus = BaseWeaponDamage × Dex ÷ 200
:This bonus is 
*RefinementBonus and OverUpgradeBonus
:* See Refinement Effects.
*SizePenalty
:* See Size Table.
== ExtraATK ==
This refers to sum of EquipATK, ConsumableATK, AmmunitionATK, and PseudoBuffATK. While Cannon Balls are considered Ammunition, they are not added to AmmunitionATK. 
=== Formula ===
ExtraATK = (EquipATK + ConsumableATK + AmmunitionATK + PseudoBuffATK)
== P.ATK ==
P.ATK is a final multiplier that applies to all the ATK calculation above.
== MasteryATK ==
This is a special kind of ATK that has no elemental properties. This ATK mostly comes from Passive Skills such as Beast Bane, Katar Mastery, Madogear License, Gatling Fever, and Weaponry Research; also, any weapons Forged with will also provide additional MasteryATK.
== BuffATK ==
This is a special kind of ATK that has no elemental properties. This ATK mostly comes from Skills such as Camouflage.
Note that even though some buffs like Impositio Manus, Odin's Power, and Shield Spell are buffs, they strangely behave as ExtraATK instead.
==Multipliers==
These refer to increasing/decreasing specific terms by a percentage. Additional ATK gained is not shown in the Status Window.
=== Group A ===
This multiplier has no elemental properties. This multiplier is applicable only to WeaponATK and ExtraATK.
Formula Usage:
(WeaponATK + ExtraATK) × ATKMultiplier
*Only ATKMultiplier fits this tier. It is written as ATK% in item descriptions and in some items after EP 15.2.
**This wiki will refer to it as ATK% for item descriptions.
*This multiplier does not stack with multipliers in Group B.
**Check Example Calculations for an example.
=== Group B ===
These multipliers are applicable only to WeaponATK and ExtraATK.
Formula Usage:
(WeaponATK + ExtraATK) × (1 + RaceMultiplier) × (1 + SizeMultiplier) × (1 + TargetPropertyMultiplier) × (EDPMultiplier) × (1 + ClassMultiplier) × (1 + MonsterMultiplier)
*SizeReduction, RaceReduction, ClassReduction, PropertyReduction are applied in this particular order.
*Note: Sadly iRO's item descriptions that say ATK% do not clarify if it's ATKMultiplier or ClassMultiplier. However, they are properly labeled in jRO, twRO, bRO, thRO and kRO.
== Finalizing ==
This refers to putting the final touches to the ATK calculation to produce a value ready for Attacks or Skills. 
=== Formula ===
ATK = {(StatusATK × 2) + [(GroupA) + (GroupB)] × (ElementalAdvantage) × (Elemental_Resist_Reduction_Bonus*)} × (1 + P.ATK ÷ 100) + MasteryATK + BuffATK
Mild Wind
ATK = {(StatusATK × ElementalAdvantage × 2) + [(GroupA) + (GroupB)] × (ElementalAdvantage) × (Elemental_Resist_Reduction_Bonus*)} × (1 + P.ATK ÷ 100) + MasteryATK + BuffATK
* *Venom Impression, Comet, etc
== Notes ==
* EquipATK, See or .
* ConsumableATK, See .
* AmmunitionATK, See Ammunition.
* PseudoBuffATK, See Striking or Occult Impaction effect items like and .
* ATKMultiplier, See Mettle Enchant or Vicious Cookie Card
* RaceMultiplier, See .
* SizeMultiplier, See .
* TargetPropertyMultiplier, See .
* MonsterMultiplier, See .
* ClassMultiplier, See or .
* PropertyMultiplier, See Property.
* RaceReduction, See .
* SizeReduction, See .
* PropertyReduction, See .
* TargetPropertyReduction, See .
* CometAmpMultiplier, See Comet.
The next step in damage calculation method is to calculate the ATK value with various Damage multipliers like skill, critical, enemy defense, etc. To see how ATK interacts with those, check out the Attacks page.
=== Calculating nonClass ATK% ===
Thank you @Mayo for giving Step by Step guide.
Step 1 Calculate your Actual Damage Exactly
a. Recommended unequipping your weapon (so no damage variance) and most equips (makes calculation easier). Make sure you have some Equip Attack from somewhere (Crown Cinnamoroll Backpack is good for this).
b. Attack dummy. Make sure the damage you see is exactly as calculated (taking into account that dummies in Prontera have a soft def of 50)
Step 2 Equip anything with Size Multiplier (Other Multipliers are fine, as long as its not classATK%)
a. Recommended Tyrant of Earth/Old Camoflage Scarf/Anything with just size %. Calculate damage with the multiplier and make sure dummy shows the same damage as calculations.
Step 3 Equip the item you're trying to figure out
a. Calculate new damage based on the equipped item's stats, using Class Attack %. Attack Dummy and check if dummy shows the same number as damage calculations. If yes, good, item is Class Attack %. If damage is higher, something has gone wrong, recalculate damage based on item stats. If damage is lower, item is likely ATK%
b. Double check. Recalculate damage using ATK%. Check if numbers match damage to Dummy. If yes, bad luck, item is ATK%, if not, calculation was wrong, Do it again. 
Alternative: Do the same thing but in newcalc, and let newcalc handle all the calculations for you. Then cross reference by smacking dummy.
== Example Calculations ==
=== Flooring Example ===
[(BaseLevel ÷ 4) + Str + (Dex ÷ 5)] is actually calculated as floor[floor(floor(BaseLevel ÷ 4) + Str) + floor(Dex ÷ 5)]
=== Multipliers Example ===
Setup:
* No weapon equipped
* 
*: ExtraATK +100
* https://static.divine-pride.net/images/items/item/20963.png +8 Temporal Str Manteau [1]
*: ExtraATK +40
*: ATKMultiplier +(4+7)%
*: SizeMultiplier +10%
* x2
*: ClassMultiplier +(5*2)%
* Holy element skill vs Undead 4
*: PropertyMultiplier +100%
*Note: For the sake of simplicity, floor() is not included in this example.
 = [(WeaponATK + ExtraATK) x ATKMultiplier] + [(WeaponATK + ExtraATK) x (1 + SizeMultiplier) x (1 + ClassMultiplier) x (1 + PropertyMultiplier)] = [(0 + 100 + 40) x 11%] + [(0 + 100 + 40) x (1 + 10%) x (1 + 10%) + (1 + 100%)] = [140 x 11%] + [140 x 110% x 110% x 200%] = [15.4] + [338.8] = 354.2 ≈ 354
=== Multipliers Example 2 ===
This is a very simplified example to show how multipliers work. Note that Earth Drive Damage +% is a (better) Damage Multiplier and not an ATK Multiplier. 
Setup:
* 
* https://static.divine-pride.net/images/items/item/28922.png +12 Illusion Sacred Mission [1] - Earth Drive Damage +84%
* https://db.irowiki.org/image/item/24060.png +10 Royal Guard Shield Shadow - Earth Drive Damage +70%
If 1 weapon card is added to the setup, which is stronger: (Earth Drive Damage +60%) or https://db.irowiki.org/image/item/4001.png Polluted Wander Man Card (Size Damage +30%) ? 
With True Randel Lawrence Card: (1 + 84% + 70% + 60%) = 314% 
With Polluted Wander Man Card: (1 + 84% + 70%) x (1 + 30%) ≈ 330% 
Therefore, adding 1 Polluted Wander Man Card would result in higher damage.
== History ==
* has the previous formula before Size Penalty applied to ExtraATK.
* has the previous formula before ATKMultiplier was discovered.
Category: Mechanics