39 public class CostList : List<HomeResource.Cost>
42 public string GetText()
47 while (enumerator.MoveNext())
50 text = text + (c.resource.Name +
":" + c.cost.ToString()).TagColorGoodBad(() => c.resource.value >= c.cost, () => c.resource.value < c.cost,
false) +
" ";
61 if (cost.resource.value < cost.cost)
74 cost.resource.Mod(-cost.cost,
true);