mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 00:16:45 -05:00
Add BattleBoxData fetching
This commit is contained in:
14
Misc/SAV6.cs
14
Misc/SAV6.cs
@@ -686,6 +686,20 @@ public PK6[] PartyData
|
||||
setPK6Party(newParty[i], Party + PK6.SIZE_PARTY*i);
|
||||
}
|
||||
}
|
||||
public PK6[] BattleBoxData
|
||||
{
|
||||
get
|
||||
{
|
||||
PK6[] data = new PK6[6];
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
data[i] = getPK6Stored(BattleBox + PK6.SIZE_STORED * i);
|
||||
if (data[i].Species == 0)
|
||||
return data.Take(i).ToArray();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
// Writeback Validity
|
||||
public string checkChunkFF()
|
||||
|
||||
Reference in New Issue
Block a user