mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-12 13:42:36 +00:00
5d3bc289b6
Mark things as sealed as they shouldn't be inherited from or overriden in a derived class.
19 lines
618 B
C#
19 lines
618 B
C#
using System.Collections.Generic;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|