Page 1 of 1

Item damages calculation

Posted: Fri Sep 15, 2017 9:37 am
by Dimillian
In my inventory test, I'm doing something like that to display the item data in my tooltips:
https://gist.github.com/Dimillian/113a2 ... 919312a1ee

But my damage value from getBaseDamageMin and getBaseDamageMax is not the same as in the info MessageBox. Do I need to put in something with the metal value?

Re: Item damages calculation

Posted: Fri Sep 15, 2017 9:42 am
by Hazelnut
Take a look in DaggerfallUnityItemMCP.cs at the WeaponDamage() method. That's what the info popup uses.

Re: Item damages calculation

Posted: Fri Sep 15, 2017 9:45 am
by Dimillian
Thanks, I feel dump now. Totally overlooked that.