private void TranslateReward(RewardInfo reward) { foreach (var item in reward.countedItems) { item.type = invasionTranslator.Translate(item.type); } foreach (var t in reward.countedItems) { t.type = alertTranslator.Translate(t.type); } }
public static string ToString(RewardInfo reward) { var rewards = new List <string>(); if (reward.credits > 0) { rewards.Add($"{reward.credits} cr"); } foreach (var item in reward.countedItems) { rewards.Add($"{item.count}x{item.type}"); } return(string.Join(" + ", rewards)); }