Add GetCashAndResources() to PlayerResources, to get overall credits.
This commit is contained in:
@@ -218,5 +218,10 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (Resources > ResourceCapacity)
|
if (Resources > ResourceCapacity)
|
||||||
Resources = ResourceCapacity;
|
Resources = ResourceCapacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetCashAndResources()
|
||||||
|
{
|
||||||
|
return Cash + Resources;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user