// yes, that is how real-ra does it.

This commit is contained in:
Bob
2010-01-12 16:28:39 +13:00
parent 3649b3b69f
commit 4ddf03fc64

View File

@@ -65,7 +65,7 @@ namespace OpenRa.Game.Traits
var maxHP = self.Info.Traits.Get<BuildingInfo>().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;