示例#1
0
        private void TranslateReward(Attackerreward 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(Attackerreward 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));
        }