2020-10-24 18:06:05 +00:00
|
|
|
|
using static PKHeX.Core.Encounters8Nest;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 8 Nest Encounter (Max Raid) Underground
|
|
|
|
|
/// </summary>
|
2020-11-27 19:51:02 +00:00
|
|
|
|
/// <inheritdoc cref="EncounterStatic8Nest{T}"/>
|
2020-10-24 18:06:05 +00:00
|
|
|
|
public sealed class EncounterStatic8U : EncounterStatic8Nest<EncounterStatic8U>
|
|
|
|
|
{
|
2020-12-22 01:05:05 +00:00
|
|
|
|
public override int Location { get => MaxLair; init { } }
|
2020-10-24 18:06:05 +00:00
|
|
|
|
|
2020-10-31 02:56:37 +00:00
|
|
|
|
public EncounterStatic8U(int species, int form, int level)
|
2020-10-24 18:06:05 +00:00
|
|
|
|
{
|
|
|
|
|
Species = species;
|
|
|
|
|
Form = form;
|
|
|
|
|
Level = level;
|
|
|
|
|
DynamaxLevel = 8;
|
|
|
|
|
FlawlessIVCount = 4;
|
2020-10-31 02:56:37 +00:00
|
|
|
|
Version = GameVersion.SWSH; // no difference in met location for hosted raids
|
2020-10-24 18:06:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool IsMatch(PKM pkm, DexLevel evo)
|
|
|
|
|
{
|
|
|
|
|
if (pkm.FlawlessIVCount < FlawlessIVCount)
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
return base.IsMatch(pkm, evo);
|
|
|
|
|
}
|
2020-10-29 15:52:38 +00:00
|
|
|
|
|
|
|
|
|
// no downleveling, unlike all other raids
|
|
|
|
|
protected override bool IsMatchLevel(PKM pkm, DexLevel evo) => pkm.Met_Level == Level;
|
2020-10-24 18:06:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|