mirror of
https://github.com/kwsch/pkNX.git
synced 2026-04-25 07:16:51 -05:00
(Re-)Add handling for uncatchable distribution raids
This commit is contained in:
parent
0936c08eb1
commit
6764dd98fe
|
|
@ -306,6 +306,10 @@ private static void AddToList(IReadOnlyCollection<DeliveryRaidEnemyTable> table,
|
|||
private static void TryAddToPickle(RaidEnemyInfo enc, ICollection<byte[]> list, RaidSerializationFormat format,
|
||||
ReadOnlySpan<ushort> totalS, ReadOnlySpan<ushort> totalV, ReadOnlySpan<ushort> minS, ReadOnlySpan<ushort> minV)
|
||||
{
|
||||
// not catchable
|
||||
if (enc.CaptureRate is 0)
|
||||
return;
|
||||
|
||||
using var ms = new MemoryStream();
|
||||
using var bw = new BinaryWriter(ms);
|
||||
|
||||
|
|
@ -454,8 +458,8 @@ private static void DumpPretty(IFileInternal ROM, DeliveryRaidEnemyTableArray ta
|
|||
|
||||
var capture = entry.Info.CaptureRate switch
|
||||
{
|
||||
// 0 never
|
||||
// 1 always
|
||||
0 => "Never",
|
||||
2 => "Only Once",
|
||||
_ => $"{entry.Info.CaptureRate}",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user