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 »

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

Re: Item damages calculation

Post by Hazelnut »

Take a look in DaggerfallUnityItemMCP.cs at the WeaponDamage() method. That's what the info popup uses.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Item damages calculation

Post by Dimillian »

Thanks, I feel dump now. Totally overlooked that.

Post Reply