fix: Fixes loot with zero amount (#1666)
### Summary * Adds logging if Amount goes to zero. It should never go to zero! * Deletes an item if it mutates with zero amount. * Eliminates possible allocation from `params` for `Type[][]` loot pack construction. * Renames `Loot.ChestOfHeirloomsContains` to `Loot.RandomChestOfHeirloomsContent`.
This commit is contained in:
parent
64a8d6cb5d
commit
3f00f6d610
4 changed files with 539 additions and 583 deletions
|
|
@ -479,7 +479,7 @@ public partial class ChestOfHeirlooms : LockableContainer
|
|||
|
||||
for (var i = 0; i < 10; ++i)
|
||||
{
|
||||
var item = Loot.ChestOfHeirloomsContains();
|
||||
var item = Loot.RandomChestOfHeirloomsContent();
|
||||
|
||||
var attributeCount = Utility.RandomMinMax(1, 5);
|
||||
var min = 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue