namespace PKHeX.Core; /// /// Represents a Team of Pokémon that is generated before a shadow . /// public sealed class TeamLock { /// /// Team generated before the Species. /// public readonly NPCLock[] Locks; /// /// For trainers that have different teams, this indicates what conditions (when/where) the trainer must be battled. /// public readonly string Comment; /// /// Species of shadow Pokémon that is generated after the . /// public readonly int Species; public TeamLock(ushort species, NPCLock[] locks) : this(species, string.Empty, locks) { } public TeamLock(ushort species, string comment, NPCLock[] locks) { Species = species; Locks = locks; Comment = comment; } public override string ToString() { if (Comment.Length == 0) return $"{(Species)Species} [{Locks.Length}]"; return $"{(Species)Species} [{Locks.Length}] - {Comment}"; } }