Remove unnecessary egg location double check

Closes #3614
This commit is contained in:
Kurt 2022-10-20 19:21:19 -07:00
parent aecaca7298
commit bb681484d8

View file

@ -133,23 +133,9 @@ public sealed class PB8 : G8PKM
{
var pk = ConvertTo<PK8>();
pk.SanitizeImport();
pk.Egg_Location = GetEggLocationPK8();
return pk;
}
private int GetEggLocationPK8()
{
var egg = Egg_Location;
if (egg == Locations.Default8bNone)
return 0;
return Version switch
{
(int)GameVersion.BD => egg is Locations.LinkTrade6NPC ? Locations.HOME_SWBD : Locations.HOME_SWSHBDSPEgg,
(int)GameVersion.SH => egg is Locations.LinkTrade6NPC ? Locations.HOME_SHSP : Locations.HOME_SWSHBDSPEgg,
_ => egg,
};
}
public override PA8 ConvertToPA8()
{
var pk = base.ConvertToPA8();