magemonkeystudio / divinity

GNU General Public License v3.0
9 stars 6 forks source link

[Enhancement] Don't apply stat if it's going to be 0 #244

Closed goflishMC closed 3 days ago

goflishMC commented 1 week ago

In this example I set dexterity to have 100% chance to roll, but I set the min/max to be 0.

This file allows chestplate, leggings and boots to drop, but I only want chestplate to get the dexterity stat, so in the material bonus section i set it to give chestplates 8 dexterity.

The issue is if boots or helmets get rolled for this drop it will show a dex bonus of 0.

I used to just set -100% in the material modifier stats I didn't want to show up on the item, but I think something has changed because it doesn't get rid of it anymore setting it to -100% like that.

https://i.imgur.com/eC2mrNq.png

https://i.imgur.com/5plXrED.png