mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 14:07:05 -05:00
@@ -70,7 +70,7 @@ public PoketchColor PoketchColor
|
||||
|
||||
public bool PoketchFlag6 { get => (PoketchPacked & 0x40) != 0; set => PoketchPacked = (byte)(value ? (PoketchPacked | 0x40) : (PoketchPacked & ~0x40)); }
|
||||
public bool PoketchFlag7 { get => (PoketchPacked & 0x80) != 0; set => PoketchPacked = (byte)(value ? (PoketchPacked | 0x80) : (PoketchPacked & ~0x80)); }
|
||||
public byte Poketch1 { get => General[PoketchStart + 1]; set => General[PoketchStart + 1] = value; }
|
||||
public byte PoketchUnlockedCount { get => General[PoketchStart + 1]; set => General[PoketchStart + 1] = value; }
|
||||
public sbyte CurrentPoketchApp { get => (sbyte)General[PoketchStart + 2]; set => General[PoketchStart + 2] = (byte)Math.Min((sbyte)PoketchApp.Alarm_Clock, value); }
|
||||
|
||||
public bool GetPoketchAppUnlocked(PoketchApp index)
|
||||
|
||||
@@ -249,13 +249,16 @@ private void ReadPoketch(SAV4Sinnoh s)
|
||||
|
||||
private void SavePoketch(SAV4Sinnoh s)
|
||||
{
|
||||
int unlockedCount = 0;
|
||||
s.CurrentPoketchApp = (sbyte)CB_CurrentApp.SelectedIndex;
|
||||
for (int i = 0; i < CLB_Poketch.Items.Count; i++)
|
||||
{
|
||||
var b = CLB_Poketch.GetItemChecked(i);
|
||||
s.SetPoketchAppUnlocked((PoketchApp)i, b);
|
||||
if (b) unlockedCount++;
|
||||
}
|
||||
s.SetPoketchDotArtistData(DotArtistByte);
|
||||
s.PoketchUnlockedCount = (byte)unlockedCount;
|
||||
}
|
||||
|
||||
private void SetPictureBoxFromFlags(ReadOnlySpan<byte> inp)
|
||||
|
||||
Reference in New Issue
Block a user