Norbyte / ositools

Advanced scripting and mod support for Divinity Original Sin 2
MIT License
373 stars 30 forks source link

Fix for treasure tables chance #124

Closed SweetBaget closed 1 year ago

SweetBaget commented 1 year ago

When you update them, the loot instantly drops, as if the drop rate is set to 1:1, and only after that the treasure table works normally with its real chances. I noticed that the "TotalCount" parameter is updated illogically: the first time it calculates the sum of the "Amount" parameters in "DropCounts", the second time it sums the "Chance" parameters