Add Cinderace raid handling

This commit is contained in:
sora10pls 2022-12-29 19:20:01 -05:00
parent 854a8d1f5a
commit 67ac1e7378
4 changed files with 20 additions and 17 deletions

View file

@ -173,7 +173,6 @@ public sealed class MiscVerifier : Verifier
private static readonly HashSet<int> UnreleasedSV = new()
{
(int)Species.Raichu | (1 << 11), // Diglett-1
(int)Species.Diglett | (1 << 11), // Diglett-1
(int)Species.Meowth | (1 << 11), // Meowth-1
(int)Species.Growlithe | (1 << 11), // Growlithe-1
@ -193,22 +192,22 @@ public sealed class MiscVerifier : Verifier
(int)Species.Carbink, // Carbink
(int)Species.Rowlet, // Rowlet
(int)Species.Grookey, // Grookey
(int)Species.Scorbunny, // Scorbunny
(int)Species.Sobble, // Sobble
// Silly Workaround for evolution chain reversal not being iteratively implemented -- block Hisuians
(int)Species.Sliggoo | (1 << 11),
(int)Species.Avalugg | (1 << 11),
(int)Species.Lilligant | (1 << 11),
(int)Species.Braviary | (1 << 11),
(int)Species.Overqwil,
// Silly workaround for evolution chain reversal not being iteratively implemented -- block cross-gen evolution cases
(int)Species.Raichu | (1 << 11), // Raichu-1
(int)Species.Typhlosion | (1 << 11), // Typhlosion-1
(int)Species.Samurott | (1 << 11), // Samurott-1
(int)Species.Lilligant | (1 << 11), // Lilligant-1
(int)Species.Braviary | (1 << 11), // Braviary-1
(int)Species.Sliggoo | (1 << 11), // Sliggoo-1
(int)Species.Avalugg | (1 << 11), // Avalugg-1
(int)Species.Decidueye | (1 << 11), // Decidueye-1
(int)Species.Wyrdeer,
(int)Species.Kleavor,
(int)Species.Ursaluna,
(int)Species.Decidueye | (1 << 11), // Rowlet
(int)Species.Typhlosion | (1 << 11), // Cyndaquil
(int)Species.Samurott | (1 << 11), // Oshawott
(int)Species.Overqwil,
};
private void VerifyMiscPokerus(LegalityAnalysis data)

View file

@ -27,7 +27,7 @@ public sealed class RaidSevenStar9 : SaveBlock<SAV9SV>
public sealed class SevenStarRaidDetail
{
public const int SIZE = 0x06;
public const int SIZE = 0x08;
private readonly byte[] Data;
private readonly int Offset;
@ -46,16 +46,20 @@ public sealed class SevenStarRaidDetail
get => ReadUInt32LittleEndian(Data.AsSpan(Offset + 0x00));
set => WriteUInt32LittleEndian(Data.AsSpan(Offset + 0x00), value);
}
[Category(General), Description("Indicates if this Tera Raid Boss has been captured by the player.")]
public bool Captured
{
get => Data[Offset + 4] == 1;
set => Data[Offset + 4] = (byte)(value ? 1 : 0);
get => Data[Offset + 0x04] == 1;
set => Data[Offset + 0x04] = (byte)(value ? 1 : 0);
}
[Category(General), Description("Indicates if this Tera Raid Boss has been defeated at least once by the player.")]
public bool Defeated
{
get => Data[Offset + 5] == 1;
set => Data[Offset + 5] = (byte)(value ? 1 : 0);
get => Data[Offset + 0x05] == 1;
set => Data[Offset + 0x05] = (byte)(value ? 1 : 0);
}
// 0x06 - 0x07 padding
}