예제 #1
0
        private void TranslateReward(Defenderreward 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(Defenderreward 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));
        }