mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-03 11:34:12 -05:00
Add battle box batch editor protection
should be the last of the tweakable methods
This commit is contained in:
parent
59ad4e2194
commit
9f0d6223eb
|
|
@ -148,6 +148,7 @@ public PKM[] BoxData
|
|||
data[i].Identifier = $"{getBoxName(i/BoxSlotCount)}:{i%BoxSlotCount + 1:00}";
|
||||
data[i].Box = i/BoxSlotCount + 1;
|
||||
data[i].Slot = i%BoxSlotCount + 1;
|
||||
data[i].Locked = getIsSlotLocked(data[i].Box, data[i].Slot);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ private void processSAV(PKM[] data, List<StringInstruction> Filters, List<String
|
|||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
var pkm = data[i];
|
||||
if (!pkm.Valid)
|
||||
if (!pkm.Valid || pkm.Locked)
|
||||
{
|
||||
b.ReportProgress(i);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user