spawn bridges with correct HP

This commit is contained in:
Chris Forbes
2010-01-19 11:50:12 +13:00
parent 0aeef8c3f7
commit 6345f7baee

View File

@@ -52,6 +52,8 @@ namespace OpenRa.Traits
TileSprites = replacedTiles.ToDictionary(
a => a.Key,
a => sprites[new TileReference { tile = (ushort)template.Index, image = (byte)a.Value }]);
self.Health = (int)(self.GetMaxHP() * template.HP);
}
public float GetCost(int2 p, UnitMovementType umt)