2020-08-21 23:35:49 +00:00
|
|
|
namespace PKHeX.Core
|
|
|
|
{
|
2020-11-27 19:51:02 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Encounter Slot found in <see cref="GameVersion.Gen4"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <inheritdoc cref="EncounterSlot"/>
|
2020-10-08 22:01:23 +00:00
|
|
|
public sealed class EncounterSlot4 : EncounterSlot, IMagnetStatic, INumberedSlot, IEncounterTypeTile
|
2020-08-21 23:35:49 +00:00
|
|
|
{
|
|
|
|
public override int Generation => 4;
|
2020-08-30 17:23:22 +00:00
|
|
|
public EncounterType TypeEncounter => ((EncounterArea4)Area).TypeEncounter;
|
2020-08-21 23:35:49 +00:00
|
|
|
|
2020-11-27 19:51:02 +00:00
|
|
|
public int StaticIndex { get; }
|
|
|
|
public int MagnetPullIndex { get; }
|
|
|
|
public int StaticCount { get; }
|
|
|
|
public int MagnetPullCount { get; }
|
2020-08-21 23:35:49 +00:00
|
|
|
|
2020-11-27 19:51:02 +00:00
|
|
|
public int SlotNumber { get; }
|
2020-08-21 23:35:49 +00:00
|
|
|
|
2020-08-30 18:08:21 +00:00
|
|
|
public EncounterSlot4(EncounterArea4 area, int species, int form, int min, int max, int slot, int mpi, int mpc, int sti, int stc) : base(area)
|
2020-08-30 17:23:22 +00:00
|
|
|
{
|
|
|
|
Species = species;
|
|
|
|
Form = form;
|
|
|
|
LevelMin = min;
|
|
|
|
LevelMax = max;
|
|
|
|
SlotNumber = slot;
|
|
|
|
|
|
|
|
MagnetPullIndex = mpi;
|
|
|
|
MagnetPullCount = mpc;
|
|
|
|
|
|
|
|
StaticIndex = sti;
|
|
|
|
StaticCount = stc;
|
|
|
|
}
|
|
|
|
|
2020-08-21 23:35:49 +00:00
|
|
|
protected override void SetFormatSpecificData(PKM pk) => ((PK4)pk).EncounterType = TypeEncounter.GetIndex();
|
|
|
|
}
|
|
|
|
}
|