mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-10 20:25:36 -05:00
Allow clearing all flags regardless of constraints
This commit is contained in:
@@ -50,6 +50,13 @@ public void GiveAll(IReadOnlyList<ushort> indexes, bool value = true)
|
||||
|
||||
private void GiveEverything(IReadOnlyList<string> items, bool value = true)
|
||||
{
|
||||
if (!value)
|
||||
{
|
||||
for (ushort i = 0; i < CLB_Items.Items.Count; i++)
|
||||
CLB_Items.SetItemChecked(i, false);
|
||||
return;
|
||||
}
|
||||
|
||||
var skip = GameLists.NoCheckReceived;
|
||||
for (ushort i = 1; i < CLB_Items.Items.Count; i++)
|
||||
{
|
||||
@@ -57,7 +64,7 @@ private void GiveEverything(IReadOnlyList<string> items, bool value = true)
|
||||
continue;
|
||||
if (skip.Contains(i))
|
||||
continue;
|
||||
CLB_Items.SetItemChecked(i, value);
|
||||
CLB_Items.SetItemChecked(i, true);
|
||||
}
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user