We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1736f2 commit b4ae029Copy full SHA for b4ae029
1 file changed
src/TSMapEditor/Models/TaskForce.cs
@@ -131,6 +131,7 @@ public string GetHintText()
131
StringBuilder sb = new StringBuilder();
132
sb.Append("Contains:");
133
134
+ int totalCost = 0;
135
foreach (var entry in TechnoTypes)
136
{
137
if (entry == null)
@@ -141,8 +142,14 @@ public string GetHintText()
141
142
sb.Append(entry.Count);
143
sb.Append("x ");
144
sb.Append(entry.TechnoType.GetEditorDisplayName());
145
+
146
+ totalCost += entry.TechnoType.Cost * entry.Count;
147
}
148
149
+ sb.Append(Environment.NewLine);
150
151
+ sb.Append("Total Cost: $" + totalCost);
152
153
return sb.ToString();
154
155
0 commit comments