Seperated power into 'power provided' and 'power consumed'

This commit is contained in:
Matthew Bowra-Dean
2009-11-10 19:01:40 +13:00
parent a60be98721
commit abac3bd59d
3 changed files with 18 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ namespace OpenRa.Game.Traits
UnitInfo.BuildingInfo bi = self.unitInfo as UnitInfo.BuildingInfo;
if (bi == null) return;
self.Owner.Power += bi.Power;
self.Owner.ChangePower(bi.Power);
}
}
}