Talk:Damage types

Damage Calculation Section is Incorrect

The calculation listed for damage is incorrect. The correct calculation appears to be:

Step 1: Apply weapon modifier Step 2: Round to the nearest integer Step 3: Apply all other mods, added up Step 4: Round to the nearest integer

Example (using stated formula): 14% damage from Beetle Armor (attack version), 17% from Ruthless Vampire Knives, no beetles active, 20% from Menacing accessories, 37% from accessory effects.

29 base damage * 1.17 * 1.57 * 1.14 = 60.73 damage, rounds to 61

I have this setup active and the in-game tooltip for V Knives shows 58 damage

Using the default modifier for Ruthless (18% damage instead of 17%) would yield 61.25 damage and still round to 61

Example (using my formula): Ruthless = 18% damage

29 * 1.18 = 34.22 (17% is closer so that is what is displayed)

round to 34

34 * 1.71 = 58.14, rounds to 58 (exactly what the game displays)

The currently-stated formula has two errors: It misses the rounding after the weapon mod is first and singly applied, and it allows multiplicative effects between armor and accessories (which do not exist)

It also has a third error, which is that it leaves no room in the equation for buffs like Well Fed and Tipsy, which are neither armor-based nor from accessories.

Other Example:

1.)Mythical Razorblade Typhoon (60+15%), Spectre Mask Armor (+20%):

60 * 1.15 * 1.2 = 69*1.2 = 82.8

In game it has 82 damage, 60+1.15=69 (no rounding here, to get independent from). I think there will be no rounding at the end. It only takes/shows the first part of the number.

2.)Godly Bubble Gun (70+14%), Spectre Mask Armor (+20%), Menacing Avenger Emblem (12% and 4%), Menacing Sorcerer Emblem (15% and 4%), Menacing Celestial (15% and 4%):

70 * 1.14 * (1+0.2+0.16+0.19+0.19)=70 * 1.14 * (1.64)=138.852

In game it has 139 damage but there were no rounding at the Typhoon (1.)). So I also think weapon get rounded first.

round(70 * 1.14) * (1.74) = round(79.8) * 1.74 = 80 * 1.74 = 139.2

139 fits!

Conclusion:

round(weapon base damage * weapon modifier) * (1+sum of armor+sum of accessories + sum accessories bonuses) = result

round_down(result) = damage in game

Also tested with well fed, Clairvoyance and Magic Power. These were also added in the multiplier, so it is (1+sum of armor+sum of accessories + sum accessories bonuses + sum of bonuses from potions, food, furniture, .. ). Tested some other examples, could not find any errors anymore but can't say it is for 100% true but nearly. So in short:

round_down( round(weapon base damage * (1 + modifier)) * (1 + sum of bonuses) ) = damage shown in game

Example:

Ruthless Rainbow Rod (72 base+ 18%), Spectre Mask Armor (+20%), Celestial Emblem (15%), Avenger Emblem (12%), Sorcerer Emblem (15%), Destroyer Emblem (10%), Celestial Stone (10%), all Menacing (5*4%), Well Fed (5%), Clairvoyance (5%), Magic Power (20%)

round_down( round(72 * (1+0.18)) * (1+0.2+0.15+0.12+0.15+0.1+0.1+5*0.04+0.05+0.05+0.2) ) = round_down( round(84.96)*(2.32)) = round_down( 197.2) = 197

(only Equipment, without potion, fed and clair: round_down( round(84.96)*(2.02)) = round_down( 171.7) = 171)

Recheck your calulations. your calculation in the vampire knive has 1.57 in it when it should be 1.37 that you stated above. similar mistakes are in the other calculation -Michelangelo42