diff --git a/PKHeX.Core/Legality/Encounters/EncounterSlot/EncounterSlot.cs b/PKHeX.Core/Legality/Encounters/EncounterSlot/EncounterSlot.cs index b90b84a57..07976c943 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterSlot/EncounterSlot.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterSlot/EncounterSlot.cs @@ -17,8 +17,8 @@ public abstract class EncounterSlot : IEncounterable, ILocation internal readonly EncounterArea Area; public GameVersion Version => Area.Version; - public int Location { get => Area.Location; set { } } - public int EggLocation { get => 0; set { } } + public int Location => Area.Location; + public int EggLocation => 0; protected EncounterSlot(EncounterArea area) => Area = area; diff --git a/PKHeX.Core/Legality/Structures/ILocation.cs b/PKHeX.Core/Legality/Structures/ILocation.cs index b48c07372..c580374ac 100644 --- a/PKHeX.Core/Legality/Structures/ILocation.cs +++ b/PKHeX.Core/Legality/Structures/ILocation.cs @@ -2,8 +2,8 @@ { public interface ILocation { - int Location { get; set; } - int EggLocation { get; set; } + int Location { get; } + int EggLocation { get; } } public static partial class Extensions