Nearly There

This commit is contained in:
alzeih
2010-07-25 18:14:05 +12:00
parent fe527c1297
commit c749fcfce3
6 changed files with 48 additions and 17 deletions

View File

@@ -101,6 +101,7 @@ namespace OpenRA.Traits
if (unit == null || ! unit.Traits.Contains<BuildableInfo>())
return 0;
if (self.traits.Get<DeveloperMode>().FastBuild) return 0;
var ui = unit.Traits.Get<BuildableInfo>();
var time = ui.Cost
* self.Owner.PlayerActor.Info.Traits.Get<ProductionQueueInfo>().BuildSpeed /* todo: country-specific build speed bonus */