mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-21 18:03:09 +00:00
fc754b346b
[Language Reference](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-10.0/file-scoped-namespaces) Updates all the files, one less level of indentation. Some small changes were made to API surfaces, renaming `PKM pkm` -> `PKM pk`, and `LegalityAnalysis.pkm` -> `LegalityAnalysis.Entity`
32 lines
966 B
C#
32 lines
966 B
C#
using static PKHeX.Core.Encounters8Nest;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <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 { } }
|
|
|
|
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;
|
|
}
|
|
|
|
public override bool IsMatchExact(PKM pk, EvoCriteria evo)
|
|
{
|
|
if (pk.FlawlessIVCount < FlawlessIVCount)
|
|
return false;
|
|
|
|
return base.IsMatchExact(pk, evo);
|
|
}
|
|
|
|
// no downleveling, unlike all other raids
|
|
protected override bool IsMatchLevel(PKM pk, EvoCriteria evo) => pk.Met_Level == Level;
|
|
}
|