PKHeX/PKHeX.Core/Legality/Settings/Specialized/FramePatternSettings.cs
Kurt bb6e45db60 Refactor out legality settings, add more settings
Extract PP verifier
Add disabling of wordfilter for formats < 6
Add context-specific bypasses for nickname/handler checks
2024-04-26 14:33:03 -05:00

15 lines
696 B
C#

using System.ComponentModel;
namespace PKHeX.Core;
[TypeConverter(typeof(ExpandableObjectConverter))]
public sealed class FramePatternSettings
{
[LocalizedDescription("Severity to flag a Legality Check if the RNG Frame Checking logic does not find a match for Generation 3 encounters.")]
public Severity RNGFrameNotFound3 { get; set; } = Severity.Fishy;
[LocalizedDescription("Severity to flag a Legality Check if the RNG Frame Checking logic does not find a match for Generation 4 encounters.")]
public Severity RNGFrameNotFound4 { get; set; } = Severity.Invalid;
public Severity GetSeverity(byte generation) => generation == 3 ? RNGFrameNotFound3 : RNGFrameNotFound4;
}