showing the real story wrt power
This commit is contained in:
@@ -15,8 +15,8 @@ namespace OpenRa.Game
|
||||
public int Cash;
|
||||
public int Ore;
|
||||
public int DisplayCash;
|
||||
int powerProvided;
|
||||
int powerDrained;
|
||||
public int powerProvided;
|
||||
public int powerDrained;
|
||||
|
||||
public bool IsReady;
|
||||
|
||||
@@ -43,11 +43,6 @@ namespace OpenRa.Game
|
||||
powerDrained -= dPower;
|
||||
}
|
||||
|
||||
public int GetTotalPower()
|
||||
{
|
||||
return powerProvided - powerDrained;
|
||||
}
|
||||
|
||||
public float GetSiloFullness()
|
||||
{
|
||||
return (float)Ore / GetOreCapacity();
|
||||
|
||||
Reference in New Issue
Block a user