Fix gen4 event location string name output

legalityanalysis spat out the unshifted value or none at all (bank 3000
was not returned)
This commit is contained in:
Kurt 2018-03-26 23:22:11 -07:00
parent 1ca69965bf
commit 93ca091eb8
2 changed files with 5 additions and 2 deletions

View file

@ -590,6 +590,7 @@ namespace PKHeX.Core
{
case 0: return Strings.metHGSS_00000;
case 2: return Strings.metHGSS_02000;
case 3: return Strings.metHGSS_03000;
default: return null;
}
case 5:

View file

@ -90,8 +90,10 @@ namespace PKHeX.Core
public override int TID { get => Gift.TID; set => Gift.TID = value; }
public override int SID { get => Gift.SID; set => Gift.SID = value; }
public override string OT_Name { get => Gift.OT_Name; set => Gift.OT_Name = value; }
public override int Location { get => Gift.Location; set => Gift.Location = value; }
public override int EggLocation { get => Gift.EggLocation; set => Gift.EggLocation = value; }
// ILocation overrides
public override int Location { get => IsEgg ? 0 : Gift.EggLocation + 3000; set { } }
public override int EggLocation { get => IsEgg ? Gift.EggLocation + 3000 : 0; set { } }
public bool GiftEquals(PGT pgt)
{