Add an upgrade rule for the float to int percentage change

This commit is contained in:
abcdefg30
2015-08-16 23:33:31 +02:00
parent 589e673aa9
commit ccf184413e
3 changed files with 6 additions and 2 deletions

View File

@@ -2168,6 +2168,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
var value = Exts.ParseIntegerInvariant(interval.Value.Value);
interval.Value.Value = (value * 25).ToString();
}
var chance = node.Value.Nodes.FirstOrDefault(n => n.Key == "WaterChance");
if (chance != null)
ConvertFloatToIntPercentage(ref chance.Value.Value);
}
}

View File

@@ -200,7 +200,7 @@ Rules:
CrateSpawner:
Maximum: 3
SpawnInterval: 125
WaterChance: 1
WaterChance: 100
CrateActors: unitcrate
InitialSpawnDelay: 0
-SpawnMPUnits:

View File

@@ -106,7 +106,7 @@ World:
Minimum: 1
Maximum: 3
SpawnInterval: 3000
WaterChance: .2
WaterChance: 20
DomainIndex:
SmudgeLayer@SCORCH:
Type: Scorch