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