mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-24 14:04:12 -05:00
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:
@@ -590,6 +590,7 @@ private static string[] GetLocationNames(int gen, int bankID)
|
||||
{
|
||||
case 0: return Strings.metHGSS_00000;
|
||||
case 2: return Strings.metHGSS_02000;
|
||||
case 3: return Strings.metHGSS_03000;
|
||||
default: return null;
|
||||
}
|
||||
case 5:
|
||||
|
||||
@@ -90,8 +90,10 @@ public override string CardTitle
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user