mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 08:23:12 +00:00
24 lines
770 B
C#
24 lines
770 B
C#
|
namespace PKHeX.Core
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Encounter Slot found in <see cref="GameVersion.SWSH"/>.
|
||
|
/// </summary>
|
||
|
/// <inheritdoc cref="EncounterSlot"/>
|
||
|
public sealed class EncounterSlot8 : EncounterSlot
|
||
|
{
|
||
|
public readonly AreaWeather8 Weather;
|
||
|
public override string LongName => Weather == AreaWeather8.All ? wild : $"{wild} - {Weather.ToString().Replace("_", string.Empty)}";
|
||
|
public override int Generation => 8;
|
||
|
|
||
|
public EncounterSlot8(EncounterArea8 area, int specForm, int min, int max, AreaWeather8 weather) : base(area)
|
||
|
{
|
||
|
Species = specForm & 0x7FF;
|
||
|
Form = specForm >> 11;
|
||
|
LevelMin = min;
|
||
|
LevelMax = max;
|
||
|
|
||
|
Weather = weather;
|
||
|
}
|
||
|
}
|
||
|
}
|