nonstandard build time value for a cnc classic mod fixes #2164

remove the testcase in structures.yaml if unwanted for cnc mod
This commit is contained in:
Matthias Mailänder
2012-06-27 10:53:01 +02:00
committed by Chris Forbes
parent d498ff1085
commit ed6a625c69
4 changed files with 30 additions and 0 deletions

View File

@@ -254,6 +254,10 @@ namespace OpenRA.Mods.RA
* Info.BuildSpeed
* (25 * 60) /* frames per min */ /* todo: build acceleration, if we do that */
/ 1000;
if (unit.Traits.Contains<CustomBuildTimeValueInfo>())
time = unit.Traits.Get<CustomBuildTimeValueInfo>().Value * (1 / Info.BuildSpeed);
return (int) time;
}