Пример #1
0
        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);
            }
        }
Пример #2
0
        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));
        }