Fix SeenAll/CaughtAll/CaughtNone set/clearing

This commit is contained in:
Kurt 2022-11-26 15:31:36 -08:00
parent aecdb5c7f6
commit 4df9198ff5
2 changed files with 5 additions and 2 deletions

View File

@ -137,5 +137,6 @@ public void ClearCaught()
SetDisplayGender(0);
SetDisplayIsShiny(false);
SetDisplayGenderIsDifferent(false);
FlagsLanguage = 0;
}
}

View File

@ -163,7 +163,7 @@ public override void SeenAll(bool shinyToo = false)
SetAllSeen(true, shinyToo);
}
private void SeenAll(ushort species, byte fc, bool shinyToo, bool value = true)
private void SeenAll(ushort species, byte fc, bool value = true, bool shinyToo = false)
{
var pt = PersonalTable.SV;
for (byte form = 0; form < fc; form++)
@ -177,6 +177,8 @@ private void SeenAll(ushort species, byte fc, bool shinyToo, bool value = true)
private void SeenAll(ushort species, byte form, bool value, IGenderDetail pi, bool shinyToo)
{
var entry = Get(species);
if (value && !entry.IsSeen)
entry.SetSeen(value);
if (pi.IsDualGender || !value)
{
entry.SetIsGenderSeen(0, value);
@ -255,7 +257,7 @@ private void SetAllSeen(ushort species, bool value = true, bool shinyToo = false
{
var pi = SAV.Personal[species];
var fc = pi.FormCount;
SeenAll(species, fc, shinyToo, value);
SeenAll(species, fc, value, shinyToo);
}
public override void SetDexEntryAll(ushort species, bool shinyToo = false)