mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 17:47:46 -05:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user