mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
9b178fefe2
Move form-info logic from FormConverter to AltFormInfo; now FormConverter is entirely form=>string[] Add a bunch of xmldoc Make pogo no-end-date cmp agaisnt UTCnow rather than local now.
17 lines
No EOL
605 B
C#
17 lines
No EOL
605 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// <see cref="EncounterStatic8"/> with multiple references (used for multiple met locations)
|
|
/// </summary>
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
|
public sealed class EncounterStatic8S : EncounterStatic8
|
|
{
|
|
public override int Location { get => Locations[0]; set { } }
|
|
public IReadOnlyList<int> Locations { get; internal set; } = Array.Empty<int>();
|
|
protected override bool IsMatchLocation(PKM pkm) => Locations.Contains(pkm.Met_Location);
|
|
}
|
|
} |