mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Migrate
This commit is contained in:
parent
a4dc54712a
commit
8705bd54b6
14
NewHorizons/External/Configs/PlanetConfig.cs
vendored
14
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user