Files
DepthsOfGreed/Assets/Scripts/HandbookUI/HandbookCostText.cs
T

13 lines
377 B
C#

namespace DepthsOfGreed.HandbookUI
{
public static class HandbookCostText
{
public static string Format(int energy, int entrails)
{
string a = energy > 0 ? energy + " Energie" : "";
string b = entrails > 0 ? entrails + " Gedärme" : "";
return a.Length > 0 && b.Length > 0 ? a + " · " + b : a + b;
}
}
}