mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-02 23:34:13 -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:
parent
6a60b8772c
commit
1ca26ba978
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user