mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 22:16:42 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user