mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-01 00:09:14 +00:00
9b178fefe2
Move form-info logic from FormConverter to AltFormInfo; now FormConverter is entirely form=>string[] Add a bunch of xmldoc Make pogo no-end-date cmp agaisnt UTCnow rather than local now.
34 lines
1 KiB
C#
34 lines
1 KiB
C#
using static PKHeX.Core.Encounters8Nest;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Generation 8 Nest Encounter (Max Raid) Underground
|
|
/// </summary>
|
|
/// <inheritdoc cref="EncounterStatic8Nest{T}"/>
|
|
public sealed class EncounterStatic8U : EncounterStatic8Nest<EncounterStatic8U>
|
|
{
|
|
public override int Location { get => MaxLair; set { } }
|
|
|
|
public EncounterStatic8U(int species, int form, int level)
|
|
{
|
|
Species = species;
|
|
Form = form;
|
|
Level = level;
|
|
DynamaxLevel = 8;
|
|
FlawlessIVCount = 4;
|
|
Version = GameVersion.SWSH; // no difference in met location for hosted raids
|
|
}
|
|
|
|
public override bool IsMatch(PKM pkm, DexLevel evo)
|
|
{
|
|
if (pkm.FlawlessIVCount < FlawlessIVCount)
|
|
return false;
|
|
|
|
return base.IsMatch(pkm, evo);
|
|
}
|
|
|
|
// no downleveling, unlike all other raids
|
|
protected override bool IsMatchLevel(PKM pkm, DexLevel evo) => pkm.Met_Level == Level;
|
|
}
|
|
}
|