mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-20 22:20:55 -05:00
Fix SeenAll/CaughtAll/CaughtNone set/clearing
This commit is contained in:
parent
aecdb5c7f6
commit
4df9198ff5
|
|
@ -137,5 +137,6 @@ public void ClearCaught()
|
|||
SetDisplayGender(0);
|
||||
SetDisplayIsShiny(false);
|
||||
SetDisplayGenderIsDifferent(false);
|
||||
FlagsLanguage = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user