mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-24 04:53:08 +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.
26 lines
911 B
C#
26 lines
911 B
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Encounter Slot found in <see cref="GameVersion.RSE"/>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Handled differently as these slots have fixed moves that are different from their normal level-up moves.
|
|
/// </remarks>
|
|
/// <inheritdoc cref="EncounterSlot"/>
|
|
internal sealed class EncounterSlot3Swarm : EncounterSlot3, IMoveset
|
|
{
|
|
public IReadOnlyList<int> Moves { get; }
|
|
|
|
public EncounterSlot3Swarm(EncounterArea3 area, int species, int min, int max, int slot,
|
|
IReadOnlyList<int> moves) : base(area, species, 0, min, max, slot, 0, 0, 0, 0) => Moves = moves;
|
|
|
|
protected override void SetEncounterMoves(PKM pk, GameVersion version, int level)
|
|
{
|
|
var moves = Moves;
|
|
pk.SetMoves(moves);
|
|
pk.SetMaximumPPCurrent(moves);
|
|
}
|
|
}
|
|
}
|