Item damages calculation

Discuss coding questions, pull requests, and implementation details.
Post Reply
Dimillian
Posts: 23
Joined: Tue Sep 12, 2017 1:51 pm

Item damages calculation

Post by Dimillian » Fri Sep 15, 2017 9:37 am

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?

User avatar
Hazelnut
Posts: 453
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Item damages calculation

Post by Hazelnut » Fri Sep 15, 2017 9:42 am

Take a look in DaggerfallUnityItemMCP.cs at the WeaponDamage() method. That's what the info popup uses.

Dimillian
Posts: 23
Joined: Tue Sep 12, 2017 1:51 pm

Re: Item damages calculation

Post by Dimillian » Fri Sep 15, 2017 9:45 am

Thanks, I feel dump now. Totally overlooked that.

Post Reply