From 4ddf03fc6416cfbe8149b5a3b340037b49e4f79d Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 12 Jan 2010 16:28:39 +1300 Subject: [PATCH] // yes, that is how real-ra does it. --- OpenRa.Game/Traits/Building.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.Game/Traits/Building.cs b/OpenRa.Game/Traits/Building.cs index b351c14202..82a990aea9 100644 --- a/OpenRa.Game/Traits/Building.cs +++ b/OpenRa.Game/Traits/Building.cs @@ -65,7 +65,7 @@ namespace OpenRa.Game.Traits var maxHP = self.Info.Traits.Get().HP; - if (Info.Power > 0) /* todo: is this how real-ra scales it? */ + if (Info.Power > 0) return (self.Health * Info.Power) / maxHP; else return Info.Power;