mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Remove GameSync/SecureValue from SAV tab (still lives in Block Data) Remove inaccessible items from FRLG/E key items
23 lines
752 B
C#
23 lines
752 B
C#
using System;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
/// <summary>
|
|
/// Modifies contents of boxes by using an <see cref="Action"/> to change data.
|
|
/// </summary>
|
|
public sealed record BoxManipModify(BoxManipType Type, Action<PKM> Action, Func<SaveFile, bool> Usable)
|
|
: BoxManipBase(Type, Usable)
|
|
{
|
|
public BoxManipModify(BoxManipType type, Action<PKM> Action) : this(type, Action, _ => true) { }
|
|
|
|
public override string GetPrompt(bool all) => string.Empty;
|
|
public override string GetFail(bool all) => string.Empty;
|
|
public override string GetSuccess(bool all) => string.Empty;
|
|
|
|
public override int Execute(SaveFile sav, BoxManipParam param)
|
|
{
|
|
var (start, stop, _) = param;
|
|
return sav.ModifyBoxes(Action, start, stop);
|
|
}
|
|
}
|