Merge pull request #3111 from Mailaender/ra-building-artwork

Red Alert building artwork polishing
This commit is contained in:
Chris Forbes
2013-04-20 16:56:15 -07:00
10 changed files with 24 additions and 10 deletions

View File

@@ -30,9 +30,10 @@ namespace OpenRA.Mods.RA.Render
Info = info;
}
public void BuildingComplete( Actor self )
public void BuildingComplete(Actor self)
{
anim.PlayFetchIndex("idle",
var animation = (self.GetDamageState() >= DamageState.Heavy) ? "damaged-idle" : "idle";
anim.PlayFetchIndex(animation,
() => playerResources.OreCapacity != 0
? (Info.FillSteps * playerResources.Ore) / (10 * playerResources.OreCapacity)
: 0);