diff --git a/Rotationator/OverridePhase.cs b/Rotationator/OverridePhase.cs index a572738..957dc5d 100644 --- a/Rotationator/OverridePhase.cs +++ b/Rotationator/OverridePhase.cs @@ -25,4 +25,15 @@ public class OverridePhase get; set; } + + public Dictionary ToByamlCompatibleFormat() + { + return new Dictionary() + { + { "Length", Length }, + { "RegularStages", RegularStages }, + { "GachiRule", GachiRule.ToEnumString() }, + { "GachiStages", GachiStages } + }; + } } \ No newline at end of file diff --git a/Rotationator/Program.cs b/Rotationator/Program.cs index a30aa68..bdc3a22 100644 --- a/Rotationator/Program.cs +++ b/Rotationator/Program.cs @@ -302,7 +302,13 @@ void Run(InvocationContext context) { "Generator", "Rotationator 1" }, { "GenerationTime", referenceNow.ToString("O") }, { "BaseByamlStartTime", baseTime.ToString("O") }, - { "RandomSeed", seed.ToString() } + { "RandomSeed", seed.ToString() }, + { + "OverridePhases", + overridePhases.Select(p => + new KeyValuePair(p.Key.ToString("O"), p.Value.ToByamlCompatibleFormat())) + .ToDictionary() + } }; ByamlFile.Save(outputByamlPath, lastByaml, new ByamlSerializerSettings()