Remove GetSiloFullness.
This commit is contained in:
@@ -45,8 +45,6 @@ namespace OpenRA.Traits
|
||||
public int DisplayCash;
|
||||
public int DisplayOre;
|
||||
|
||||
public float GetSiloFullness() { return (float)Ore / OreCapacity; }
|
||||
|
||||
public void GiveOre(int num)
|
||||
{
|
||||
Ore += num;
|
||||
|
||||
@@ -26,8 +26,9 @@ namespace OpenRA.Mods.RA.Render
|
||||
|
||||
public void BuildingComplete( Actor self )
|
||||
{
|
||||
var pr = self.Owner.PlayerActor.Trait<PlayerResources>();
|
||||
anim.PlayFetchIndex( "idle",
|
||||
() => (int)( 4.9 * self.Owner.PlayerActor.Trait<PlayerResources>().GetSiloFullness() ) );
|
||||
() => (49 * pr.Ore) / (10*pr.OreCapacity));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.RA
|
||||
public IEnumerable<PipType> GetPips(Actor self)
|
||||
{
|
||||
return Graphics.Util.MakeArray( Info.PipCount,
|
||||
i => (Player.GetSiloFullness() > i * 1.0f / Info.PipCount)
|
||||
i => ( Player.Ore * Info.PipCount > i * Player.OreCapacity )
|
||||
? Info.PipColor : PipType.Transparent );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user