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:
committed by
Chris Forbes
parent
d498ff1085
commit
ed6a625c69
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user