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:
Kurt 2024-09-18 16:52:12 -05:00
parent e5c4bef4b6
commit 4594b0d879

View file

@ -211,8 +211,8 @@ public sealed class EncounterGift3 : IEncounterable, IEncounterMatch, IMoveset,
return version switch
{
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,
_ => throw new Exception($"Unknown GameVersion: {version}"),
GameVersion.EFL => GameVersion.E,
_ => Util.Rand.Next(2) == 0 ? GameVersion.R : GameVersion.S,
};
}