Item damages calculation

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

Item damages calculation

Postby 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: 220
Joined: Sat Aug 26, 2017 2:46 pm

Re: Item damages calculation

Postby 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

Postby Dimillian » Fri Sep 15, 2017 9:45 am

Thanks, I feel dump now. Totally overlooked that.

Return to “Developer Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest