mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Update default version fetch for Gift3 rsbox
Gen3 save file without trainer in database fetching a Gen3 gift -> Gen3/RS -> version fails to determine just return the RS fallback; add EFL
This commit is contained in:
parent
e5c4bef4b6
commit
4594b0d879
1 changed files with 2 additions and 2 deletions
|
@ -211,8 +211,8 @@ public sealed class EncounterGift3 : IEncounterable, IEncounterMatch, IMoveset,
|
||||||
return version switch
|
return version switch
|
||||||
{
|
{
|
||||||
GameVersion.FRLG => Util.Rand.Next(2) == 0 ? GameVersion.FR : GameVersion.LG,
|
GameVersion.FRLG => Util.Rand.Next(2) == 0 ? GameVersion.FR : GameVersion.LG,
|
||||||
GameVersion.RS or GameVersion.RSE => Util.Rand.Next(2) == 0 ? GameVersion.R : GameVersion.S,
|
GameVersion.EFL => GameVersion.E,
|
||||||
_ => throw new Exception($"Unknown GameVersion: {version}"),
|
_ => Util.Rand.Next(2) == 0 ? GameVersion.R : GameVersion.S,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue