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);
}
}

View File

@@ -213,7 +213,7 @@ Rules:
World:
CrateSpawner:
Maximum: 4
SpawnInterval: 5
SpawnInterval: 125
CrateActors: unitcrate
InitialSpawnDelay: 0
-SpawnMPUnits:

View File

@@ -139,7 +139,7 @@ World:
CrateSpawner:
Minimum: 1
Maximum: 6
SpawnInterval: 120
SpawnInterval: 3000
WaterChance: 0
PathFinder:
ValidateOrder:

View File

@@ -62,7 +62,7 @@ World:
CrateSpawner:
Minimum: 0
Maximum: 2
SpawnInterval: 60
SpawnInterval: 1500
WaterChance: 0
ValidGround: Sand, Dune, Rock
DomainIndex:

View File

@@ -294,7 +294,7 @@ Rules:
World:
CrateSpawner:
Maximum: 3
SpawnInterval: 5
SpawnInterval: 125
CrateActors: unitcrate
InitialSpawnDelay: 0
-SpawnMPUnits:

View File

@@ -199,7 +199,7 @@ Rules:
World:
CrateSpawner:
Maximum: 3
SpawnInterval: 5
SpawnInterval: 125
WaterChance: 1
CrateActors: unitcrate
InitialSpawnDelay: 0

View File

@@ -189,7 +189,7 @@ Rules:
World:
CrateSpawner:
Maximum: 3
SpawnInterval: 5
SpawnInterval: 125
CrateActors: unitcrate
InitialSpawnDelay: 0
-SpawnMPUnits:

View File

@@ -497,7 +497,7 @@ Rules:
World:
CrateSpawner:
Maximum: 1
SpawnInterval: 100
SpawnInterval: 2500
CrateActors: fortcrate
-SpawnMPUnits:
-MPStartLocations:

View File

@@ -105,7 +105,7 @@ World:
QuantizedFacings: 16
Minimum: 1
Maximum: 3
SpawnInterval: 120
SpawnInterval: 3000
WaterChance: .2
DomainIndex:
SmudgeLayer@SCORCH:

View File

@@ -157,7 +157,7 @@ World:
CrateSpawner:
Minimum: 1
Maximum: 6
SpawnInterval: 120
SpawnInterval: 3000
WaterChance: 0
ValidGround: Clear, Rough, Road, DirtRoad, Tiberium, BlueTiberium
PathFinder: