Fix ageto antishiny recognition

Must have been omitted in the refactor

while we're here, revise the other gift3's to be records for the autogen'd ToString
This commit is contained in:
Kurt
2025-01-21 22:40:45 -06:00
parent 82d74e6950
commit 0316404f46
4 changed files with 4 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ private bool IsMatchPartial(PKM pk)
}
#endregion
public bool IsCompatible(PIDType type, PKM pk) => type is PIDType.CXD;
public bool IsCompatible(PIDType type, PKM pk) => type is PIDType.CXD or PIDType.CXDAnti;
public PIDType GetSuggestedCorrelation() => PIDType.CXD;

View File

@@ -8,7 +8,7 @@ namespace PKHeX.Core;
/// <summary>
/// Generation 3 Event Gift
/// </summary>
public sealed class EncounterGift3 : IEncounterable, IEncounterMatch, IMoveset, IFatefulEncounterReadOnly,
public sealed record EncounterGift3 : IEncounterable, IEncounterMatch, IMoveset, IFatefulEncounterReadOnly,
IRibbonSetEvent3, IRandomCorrelationEvent3, IFixedTrainer, IMetLevel
{
public ushort Species { get; }

View File

@@ -6,7 +6,7 @@ namespace PKHeX.Core;
/// Generation 3 Event Gift
/// </summary>
/// <remarks>Specialized for the PCJP gift distribution machines.</remarks>
public sealed class EncounterGift3JPN(ushort Species, Distribution3JPN Distribution)
public sealed record EncounterGift3JPN(ushort Species, Distribution3JPN Distribution)
: IEncounterable, IEncounterMatch, IRandomCorrelationEvent3, IFixedTrainer
{
public ushort Species { get; } = Species;

View File

@@ -7,7 +7,7 @@ namespace PKHeX.Core;
/// Generation 3 Event Gift
/// </summary>
/// <remarks>Specialized for the PCNY gift distribution machines.</remarks>
public sealed class EncounterGift3NY(ushort Species, Distribution3NY Distribution, byte Level, Moveset Moves)
public sealed record EncounterGift3NY(ushort Species, Distribution3NY Distribution, byte Level, Moveset Moves)
: IEncounterable, IEncounterMatch, IRandomCorrelationEvent3, IFixedTrainer, IMoveset
{
public ushort Species { get; } = Species;