Added edge case of Z-Ring item count set in two in an unedited save and set to 1 after editing items

This commit is contained in:
Pablo 2016-12-05 01:21:23 -03:00
parent 6a60b8772c
commit 1ca26ba978

View File

@ -212,7 +212,12 @@ private void setBag(DataGridView dgv, InventoryPouch pouch)
itemcnt = ushort.MaxValue;
}
else if (itemcnt > pouch.MaxCount)
itemcnt = pouch.MaxCount; // Cap at pouch maximum
{
if (itemindex == 797 && itemcnt >= 2) // Edge case when for some reason the item count for Z-Ring was 2 in an unedited save and set 1 after using PKHex
itemcnt = 2;
else
itemcnt = pouch.MaxCount; // Cap at pouch maximum
}
else if (itemcnt <= 0)
continue; // ignore item