From 8705bd54b641be7994d03255ddeb208db3b9eabd Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Sat, 10 Sep 2022 12:15:21 -0400 Subject: [PATCH] Migrate --- NewHorizons/External/Configs/PlanetConfig.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index d429d405..55c59231 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -405,10 +405,20 @@ namespace NewHorizons.External.Configs if (!string.IsNullOrEmpty(Cloak.audioFilePath)) Cloak.audio = Cloak.audioFilePath; } - // Rings are no longer variable size module + // Ring is now a list so you can have many per planet if (Ring != null) { - if (Ring.curve != null) Ring.scaleCurve = Ring.curve; + if (Rings == null) Rings = new RingModule[0]; + Rings = Rings.Append(Ring).ToArray(); + } + + // Rings are no longer variable size module + if (Rings != null) + { + foreach (var ring in Rings) + { + if (ring.curve != null) ring.scaleCurve = ring.curve; + } } } }