2018-03-09 05:18:32 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 1 Wild Encounter Slot data
|
|
|
|
|
/// </summary>
|
2020-08-21 23:35:49 +00:00
|
|
|
|
public sealed class EncounterSlot1 : EncounterSlot, INumberedSlot
|
2018-03-09 05:18:32 +00:00
|
|
|
|
{
|
2020-08-21 23:35:49 +00:00
|
|
|
|
public override int Generation => 1;
|
|
|
|
|
public int SlotNumber { get; set; }
|
|
|
|
|
|
2020-08-30 18:08:21 +00:00
|
|
|
|
public EncounterSlot1(EncounterArea1 area, int species, int min, int max, int slot) : base(area)
|
2020-07-19 18:32:40 +00:00
|
|
|
|
{
|
|
|
|
|
Species = species;
|
|
|
|
|
LevelMin = min;
|
|
|
|
|
LevelMax = max;
|
|
|
|
|
SlotNumber = slot;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
|
|
|
|
{
|
|
|
|
|
base.ApplyDetails(sav, criteria, pk);
|
|
|
|
|
|
|
|
|
|
var pk1 = (PK1)pk;
|
|
|
|
|
if (Version == GameVersion.YW)
|
|
|
|
|
{
|
|
|
|
|
pk1.Catch_Rate = Species switch
|
|
|
|
|
{
|
|
|
|
|
(int) Core.Species.Kadabra => 96,
|
|
|
|
|
(int) Core.Species.Dragonair => 27,
|
|
|
|
|
_ => PersonalTable.RB[Species].CatchRate
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
pk1.Catch_Rate = PersonalTable.RB[Species].CatchRate; // RB
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-03-09 05:18:32 +00:00
|
|
|
|
}
|
2020-07-19 18:32:40 +00:00
|
|
|
|
}
|