mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-03 04:26:46 -05:00
Show ride legend stored data
Hidden in box 33. All alone.
This commit is contained in:
@@ -228,7 +228,11 @@ private static List<SlotInfoMisc> GetExtraSlots8a(SAV8LA _)
|
||||
|
||||
private static List<SlotInfoMisc> GetExtraSlots9(SAV9SV sav)
|
||||
{
|
||||
var list = new List<SlotInfoMisc>();
|
||||
var list = new List<SlotInfoMisc>
|
||||
{
|
||||
new(sav.BoxInfo.Data, 0, sav.GetBoxOffset(BoxLayout9.BoxCount), true, Mutable: true) { Type = StorageSlotType.Party },
|
||||
};
|
||||
|
||||
var block = sav.Blocks.GetBlockSafe(SaveBlockAccessor9SV.KFusedCalyrex);
|
||||
var c = new SlotInfoMisc(block.Data, 3, 0, true) { Type = StorageSlotType.Fused };
|
||||
list.Add(c);
|
||||
|
||||
@@ -3,11 +3,11 @@ namespace PKHeX.Core;
|
||||
/// <summary>
|
||||
/// Miscellaneous origination <see cref="ISlotInfo"/>
|
||||
/// </summary>
|
||||
public sealed record SlotInfoMisc(byte[] Data, int Slot, int Offset, bool PartyFormat = false) : ISlotInfo
|
||||
public sealed record SlotInfoMisc(byte[] Data, int Slot, int Offset, bool PartyFormat = false, bool Mutable = false) : ISlotInfo
|
||||
{
|
||||
public SlotOrigin Origin => PartyFormat ? SlotOrigin.Party : SlotOrigin.Box;
|
||||
public bool CanWriteTo(SaveFile sav) => false;
|
||||
public WriteBlockedMessage CanWriteTo(SaveFile sav, PKM pk) => WriteBlockedMessage.InvalidDestination;
|
||||
public bool CanWriteTo(SaveFile sav) => Mutable;
|
||||
public WriteBlockedMessage CanWriteTo(SaveFile sav, PKM pk) => Mutable ? WriteBlockedMessage.None : WriteBlockedMessage.InvalidDestination;
|
||||
public StorageSlotType Type { get; init; }
|
||||
|
||||
public SlotInfoMisc(SaveFile sav, int slot, int offset, bool party = false) : this(GetBuffer(sav), slot, offset, party) { }
|
||||
|
||||
@@ -276,6 +276,12 @@ public override void SetBoxWallpaper(int box, int value)
|
||||
b.Data[box] = (byte)value;
|
||||
}
|
||||
|
||||
public byte BoxLegendWallpaperFlag
|
||||
{
|
||||
get => Blocks.GetBlock(SaveBlockAccessor9SV.KBoxWallpapers).Data[BoxLayout9.BoxCount];
|
||||
set => Blocks.GetBlock(SaveBlockAccessor9SV.KBoxWallpapers).Data[BoxLayout9.BoxCount] = value;
|
||||
}
|
||||
|
||||
public void CollectAllStakes()
|
||||
{
|
||||
for (int i = 14; i <= 17; i++)
|
||||
|
||||
Reference in New Issue
Block a user