mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
Add weather indication to detailed parse output
This commit is contained in:
parent
5ba396db6e
commit
ea2f7f338b
2 changed files with 8 additions and 2 deletions
|
@ -184,13 +184,19 @@ namespace PKHeX.Core
|
||||||
Snowstorm = 1 << 6,
|
Snowstorm = 1 << 6,
|
||||||
Sandstorm = 1 << 7,
|
Sandstorm = 1 << 7,
|
||||||
Heavy_Fog = 1 << 8,
|
Heavy_Fog = 1 << 8,
|
||||||
|
|
||||||
|
All = Normal | Overcast | Raining | Thunderstorm | Intense_Sun | Snowing | Snowstorm | Sandstorm | Heavy_Fog,
|
||||||
|
|
||||||
Shaking_Trees = 1 << 9,
|
Shaking_Trees = 1 << 9,
|
||||||
Fishing = 1 << 10,
|
Fishing = 1 << 10,
|
||||||
|
|
||||||
|
NotWeather = Shaking_Trees | Fishing,
|
||||||
}
|
}
|
||||||
|
|
||||||
public sealed class EncounterSlot8 : EncounterSlot
|
public sealed class EncounterSlot8 : EncounterSlot
|
||||||
{
|
{
|
||||||
public readonly AreaWeather8 Weather;
|
public readonly AreaWeather8 Weather;
|
||||||
|
public override string LongName => Weather == AreaWeather8.All ? wild : $"{wild} - {Weather.ToString().Replace("_", string.Empty)}";
|
||||||
|
|
||||||
public EncounterSlot8(int specForm, int min, int max, AreaWeather8 weather)
|
public EncounterSlot8(int specForm, int min, int max, AreaWeather8 weather)
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,10 +72,10 @@ namespace PKHeX.Core
|
||||||
public bool IsMatchStatic(int index, int count) => index == Permissions.StaticIndex && count == Permissions.StaticCount;
|
public bool IsMatchStatic(int index, int count) => index == Permissions.StaticIndex && count == Permissions.StaticCount;
|
||||||
public bool IsMatchMagnet(int index, int count) => index == Permissions.MagnetPullIndex && count == Permissions.MagnetPullCount;
|
public bool IsMatchMagnet(int index, int count) => index == Permissions.MagnetPullIndex && count == Permissions.MagnetPullCount;
|
||||||
|
|
||||||
private const string wild = "Wild Encounter";
|
private protected const string wild = "Wild Encounter";
|
||||||
public string Name => wild;
|
public string Name => wild;
|
||||||
|
|
||||||
public string LongName
|
public virtual string LongName
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue