first commit
This commit is contained in:
22
NitroxServer/Serialization/SaveDataUpgrades/Upgrade_V1500.cs
Normal file
22
NitroxServer/Serialization/SaveDataUpgrades/Upgrade_V1500.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NitroxServer.Serialization.Upgrade;
|
||||
|
||||
namespace NitroxServer.Serialization.SaveDataUpgrades
|
||||
{
|
||||
public sealed class Upgrade_V1500 : SaveDataUpgrade
|
||||
{
|
||||
public override Version TargetVersion { get; } = new Version(1, 5, 0, 0);
|
||||
|
||||
protected override void UpgradeWorldData(JObject data)
|
||||
{
|
||||
data["GameData"]["StoryTiming"] = data["StoryTimingData"];
|
||||
data.Property("StoryTimingData")?.Remove();
|
||||
data["Seed"] = "TCCBIBZXAB"; //Default seed so life pod should stay the same
|
||||
data["InventoryData"]["Modules"] = new JArray();
|
||||
|
||||
Log.Warn("Plants will still be counted as normal items with no growth progression. Re adding them to a container should fix this.");
|
||||
Log.Warn("The precursor incubator may be unpowered and hatching progress will be reset");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user