mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 19:55:32 -05:00
Minor clean
This commit is contained in:
@@ -54,7 +54,7 @@ protected BoxManipBase(BoxManipType type, Func<SaveFile, bool> usable)
|
||||
public static readonly IReadOnlyList<BoxManipBase> ClearCommon = new List<BoxManipBase>
|
||||
{
|
||||
new BoxManipClear(BoxManipType.DeleteAll, _ => true),
|
||||
new BoxManipClear(BoxManipType.DeleteEggs, pk => pk.IsEgg, s => s.Generation >= 2 & s is not SAV8LA),
|
||||
new BoxManipClear(BoxManipType.DeleteEggs, pk => pk.IsEgg, s => s.Generation >= 2 && s is not SAV8LA),
|
||||
new BoxManipClearComplex(BoxManipType.DeletePastGen, (pk, sav) => pk.Generation != sav.Generation, s => s.Generation >= 4),
|
||||
new BoxManipClearComplex(BoxManipType.DeleteForeign, (pk, sav) => !sav.IsOriginalHandler(pk, pk.Format > 2)),
|
||||
new BoxManipClear(BoxManipType.DeleteUntrained, pk => pk.EVTotal == 0, s => s is not SAV8LA),
|
||||
@@ -66,7 +66,7 @@ protected BoxManipBase(BoxManipType type, Func<SaveFile, bool> usable)
|
||||
|
||||
public static readonly IReadOnlyList<BoxManipModify> ModifyCommon = new List<BoxManipModify>
|
||||
{
|
||||
new(BoxManipType.ModifyHatchEggs, pk => pk.ForceHatchPKM(), s => s.Generation >= 2 & s is not SAV8LA),
|
||||
new(BoxManipType.ModifyHatchEggs, pk => pk.ForceHatchPKM(), s => s.Generation >= 2 && s is not SAV8LA),
|
||||
new(BoxManipType.ModifyMaxFriendship, pk => pk.MaximizeFriendship()),
|
||||
new(BoxManipType.ModifyMaxLevel, pk => pk.MaximizeLevel()),
|
||||
new(BoxManipType.ModifyResetMoves, pk => pk.SetMoves(pk.GetMoveSet()), s => s.Generation >= 3),
|
||||
|
||||
@@ -211,7 +211,7 @@ private static CheckResult VerifyEncounterEgg8BDSP(PKM pkm)
|
||||
|
||||
private static CheckResult VerifyEncounterEggLevelLoc(PKM pkm, int eggLevel, ICollection<int> MetLocations)
|
||||
{
|
||||
return VerifyEncounterEggLevelLoc(pkm, eggLevel, (location, version) => MetLocations.Contains(location));
|
||||
return VerifyEncounterEggLevelLoc(pkm, eggLevel, (location, _) => MetLocations.Contains(location));
|
||||
}
|
||||
|
||||
// (hatch location, hatch version, bool result)
|
||||
|
||||
Reference in New Issue
Block a user