mirror of
https://github.com/kwsch/pkNX.git
synced 2026-10-01 22:02:29 -05:00
Update evolution, add editor
This commit is contained in:
@@ -54,6 +54,6 @@ public class EvolutionEntry8a
|
||||
[FlatBufferItem(0)] public ushort Method { get; set; }
|
||||
[FlatBufferItem(1)] public ushort Argument { get; set; }
|
||||
[FlatBufferItem(2)] public ushort Species { get; set; }
|
||||
[FlatBufferItem(3)] public byte Form { get; set; }
|
||||
[FlatBufferItem(4)] public byte Level { get; set; }
|
||||
[FlatBufferItem(3)] public ushort Form { get; set; }
|
||||
[FlatBufferItem(4)] public ushort Level { get; set; }
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class NewHugeOutbreakGroupArchive8a : IFlatBufferArchive<NewHugeOutbreakG
|
||||
public class NewHugeOutbreakGroup8a : IFlatBufferArchive<NewHugeOutbreakDetail8a>
|
||||
{
|
||||
[FlatBufferItem(00)] public ulong Group { get; set; }
|
||||
[FlatBufferItem(01)] public NewHugeOutbreakDetail8a[] Table { get; set; } = Array.Empty<NewHugeOutbreakDetail8a>();
|
||||
[FlatBufferItem(01)] public NewHugeOutbreakDetail8a[] Table { get; set; } = Array.Empty<NewHugeOutbreakDetail8a>(); // successive tables
|
||||
[FlatBufferItem(02)] public ulong EncounterTableID { get; set; }
|
||||
|
||||
public int SumTable => Table.Sum(z => z.Rate);
|
||||
|
||||
@@ -406,6 +406,13 @@ public void PopFlatConfig(GameFile file, string title)
|
||||
public void EditBall_Throw_Config() => PopFlatConfig(GameFile.BallThrowConfig, "Ball Throw Config Editor");
|
||||
public void EditSize_Scale_Config() => PopFlatConfig(GameFile.SizeScaleConfig, "Size Scale Config Editor");
|
||||
|
||||
public void EditEvolutions()
|
||||
{
|
||||
var names = ROM.GetStrings(TextName.SpeciesNames);
|
||||
PopFlat<EvolutionTable8, EvolutionSet8a>(GameFile.Evolutions, "Evolution Editor",
|
||||
z => $"{names[z.Index]}{(z.Form != 0 ? $"-{z.Form}" : "")}");
|
||||
}
|
||||
|
||||
public void EditOutbreakDetail()
|
||||
=> PopFlat<MassOutbreakTable8a, MassOutbreak8a>(GameFile.Outbreak, "Outbreak Proc Editor", z => z.WorkValueName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user