Add an upgrade rule for the seconds -> ticks change

and update the default mods
This commit is contained in:
abcdefg30
2015-08-16 23:01:22 +02:00
parent 277f9acb89
commit e7c62b070b
10 changed files with 22 additions and 9 deletions

View File

@@ -2158,6 +2158,19 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20150926)
{
if (node.Key == "CrateSpawner")
{
var interval = node.Value.Nodes.FirstOrDefault(n => n.Key == "SpawnInterval");
if (interval != null)
{
var value = Exts.ParseIntegerInvariant(interval.Value.Value);
interval.Value.Value = (value * 25).ToString();
}
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}