mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 12:26:53 -05:00
Remove some unecessary setter requirements
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user