From 12975fcd6dc8b69b39de7d33f26a6eba8d66787d Mon Sep 17 00:00:00 2001 From: sora10pls <17801814+sora10pls@users.noreply.github.com> Date: Wed, 31 Mar 2021 22:43:56 -0400 Subject: [PATCH] Denote if a Raid Boss can be captured Comments out any such encounters in the PKHeX output. This is a pretty lazy solution for now, but it works. --- .../Gen8/FlatNest/NestHoleDistributionEncounter8Archive.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkNX.Structures/Encounter/Gen8/FlatNest/NestHoleDistributionEncounter8Archive.cs b/pkNX.Structures/Encounter/Gen8/FlatNest/NestHoleDistributionEncounter8Archive.cs index 39bd12a1..33530e0b 100644 --- a/pkNX.Structures/Encounter/Gen8/FlatNest/NestHoleDistributionEncounter8Archive.cs +++ b/pkNX.Structures/Encounter/Gen8/FlatNest/NestHoleDistributionEncounter8Archive.cs @@ -48,6 +48,8 @@ IEnumerable PrettySummary(NestHoleDistributionEncounter8 e) var rank = $"{e.MinRank + 1}-Star"; yield return $"{rank} {giga}{species[e.Species]}{form}"; yield return $"\tLv. {e.Level}"; + if (e.Field_13 == 6 && e.Field_14 == 6) // related to whether or not the raid boss can be caught; enums/bitflags? + yield return "\tCatchable: No"; if (e.ShinyLock == 1) yield return "\tShiny: Never"; else if (e.ShinyLock == 2) @@ -151,7 +153,10 @@ string Summary(NestHoleDistributionEncounter8 e) throw new Exception(); } var flawless = e.FlawlessIVs; - return $" new({e.Level:00},{e.DynamaxLevel:00},{flawless}) {{ Species = {e.Species:000}, Ability = {ability}{moves}{gender}{altform}{giga}{shiny} }},{comment}"; + var line = $" new({e.Level:00},{e.DynamaxLevel:00},{flawless}) {{ Species = {e.Species:000}, Ability = {ability}{moves}{gender}{altform}{giga}{shiny} }},{comment}"; + if (e.Field_13 == 6 && e.Field_14 == 6) + line = line.Insert(12, "//").Remove(10, 2); // comment out uncatchable encounters + return line; } }