2020-10-24 18:06:05 +00:00
|
|
|
|
using static PKHeX.Core.Encounters8Nest;
|
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
namespace PKHeX.Core;
|
2020-10-24 18:06:05 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Generation 8 Nest Encounter (Max Raid) Underground
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <inheritdoc cref="EncounterStatic8Nest{T}"/>
|
|
|
|
|
public sealed record EncounterStatic8U : EncounterStatic8Nest<EncounterStatic8U>
|
|
|
|
|
{
|
|
|
|
|
public override int Location { get => MaxLair; init { } }
|
2020-10-24 18:06:05 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public EncounterStatic8U(ushort species, byte form, byte level) : base(GameVersion.SWSH) // no difference in met location for hosted raids
|
|
|
|
|
{
|
|
|
|
|
Species = species;
|
|
|
|
|
Form = form;
|
|
|
|
|
Level = level;
|
|
|
|
|
DynamaxLevel = 8;
|
|
|
|
|
FlawlessIVCount = 4;
|
|
|
|
|
}
|
2020-10-24 18:06:05 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
public override bool IsMatchExact(PKM pk, EvoCriteria evo)
|
|
|
|
|
{
|
|
|
|
|
if (pk.FlawlessIVCount < FlawlessIVCount)
|
|
|
|
|
return false;
|
2020-10-29 15:52:38 +00:00
|
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
|
return base.IsMatchExact(pk, evo);
|
2020-10-24 18:06:05 +00:00
|
|
|
|
}
|
2022-06-18 18:04:24 +00:00
|
|
|
|
|
|
|
|
|
// no downleveling, unlike all other raids
|
|
|
|
|
protected override bool IsMatchLevel(PKM pk, EvoCriteria evo) => pk.Met_Level == Level;
|
2020-10-24 18:06:05 +00:00
|
|
|
|
}
|