Add battle box batch editor protection

should be the last of the tweakable methods
This commit is contained in:
Kurt 2016-12-16 09:03:36 -08:00
parent 59ad4e2194
commit 9f0d6223eb
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;