ositools icon indicating copy to clipboard operation
ositools copied to clipboard

Base Damage Example Calculation

Open bryanbrunt opened this issue 3 years ago • 2 comments

I'm looking at Game.Math.lua and it isn't clear how Base Weapon Damage is calculated.

For example, a Level 1 dagger has a value of 55 for DamageFromBase. The calculated damage for the dagger is 21-22.

How is 55 translated into 21-22?

bryanbrunt avatar Aug 01 '21 08:08 bryanbrunt

Hi,

DamageFromBase is a % value that scales the MinDamage and MaxDamage fields. So 55 means that the damage range of the weapon is 0.55*MinDamage .. 0.55*MaxDamage.

Norbyte avatar Aug 01 '21 18:08 Norbyte

Thanks for the info.

Where are MinDamage and MaxDamage calculated? I'm not seeing fields for those values in the Stats Editor.

bryanbrunt avatar Aug 02 '21 14:08 bryanbrunt