2020-10-28 01:03:45 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 5 Dream Radar gift encounters
|
|
|
|
|
/// </summary>
|
2020-11-27 19:51:02 +00:00
|
|
|
|
/// <inheritdoc cref="EncounterStatic"/>
|
2020-12-24 04:40:59 +00:00
|
|
|
|
public sealed record EncounterStatic5DR : EncounterStatic5
|
2020-10-28 01:03:45 +00:00
|
|
|
|
{
|
2022-01-09 06:34:04 +00:00
|
|
|
|
public EncounterStatic5DR(int species, int form, AbilityPermission ability = AbilityPermission.OnlyHidden) : base(GameVersion.B2W2)
|
2020-10-28 01:03:45 +00:00
|
|
|
|
{
|
|
|
|
|
Species = species;
|
|
|
|
|
Form = form;
|
2022-01-09 06:34:04 +00:00
|
|
|
|
Ability = ability;
|
2020-10-28 01:03:45 +00:00
|
|
|
|
Location = 30015;
|
|
|
|
|
Gift = true;
|
|
|
|
|
Ball = 25;
|
|
|
|
|
Level = 5; // to 40
|
|
|
|
|
Shiny = Shiny.Never;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-08 01:29:36 +00:00
|
|
|
|
protected override bool IsMatchLevel(PKM pkm, EvoCriteria evo)
|
2020-10-28 01:03:45 +00:00
|
|
|
|
{
|
|
|
|
|
// Level from 5->40 depends on the number of badges
|
|
|
|
|
var met = pkm.Met_Level;
|
|
|
|
|
if (met % 5 != 0)
|
|
|
|
|
return false;
|
|
|
|
|
return (uint) (met - 5) <= 35; // 5 <= x <= 40
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|