Outbreak pretty dump: denote shiny rate standard/flat

This commit is contained in:
sora10pls
2023-10-06 13:03:45 -04:00
parent 8266fb72ec
commit 5b3ef4e02d

View File

@@ -482,6 +482,7 @@ private static void WriteParent(IFileInternal ROM, StreamWriter sw, CachedOutbre
not "" => $"-{enc.FormId} ({formName})",
_ => string.Empty,
};
var shiny = enc.EnableRarePercentage ? $"{enc.RarePercentage}%" : "Standard";
sw.WriteLine($"ID: {enc.ID}");
sw.WriteLine($"{species[(int)enc.DevId]}{form}");
@@ -492,8 +493,7 @@ private static void WriteParent(IFileInternal ROM, StreamWriter sw, CachedOutbre
sw.WriteLine($"Gender: {enc.Sex}");
if (enc.EnableScaleRange)
sw.WriteLine($"Scale: {enc.MinScale}-{enc.MaxScale}");
if (enc.EnableRarePercentage)
sw.WriteLine($"Shiny Rate: {enc.RarePercentage}%");
sw.WriteLine($"Shiny Rate: {shiny}");
if (enc.AddRibbonPercentage != 0)
sw.WriteLine($"Ribbon/Mark: {ribbons[(int)enc.AddRibbonType - 1]} ({enc.AddRibbonPercentage}%)");
}