mirror of
https://github.com/kwsch/pkNX.git
synced 2026-08-24 11:24:50 -05:00
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.
This commit is contained in:
@@ -48,6 +48,8 @@ IEnumerable<string> 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user