mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
parent
aecaca7298
commit
bb681484d8
1 changed files with 0 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue