Esempio n. 1
0
 public Reward(ChanceTag chance, params TagBase[] tags)
 {
     RewardTags = new List <TagBase>();
     foreach (var tag in tags)
     {
         RewardTags.Add(tag);
     }
     RewardTags.Add(chance);
 }
Esempio n. 2
0
        public static List <Reward> GroupRewardWithChance(this IEnumerable <ItemTag> items, ChanceTag chance)
        {
            List <Reward> rewards = new List <Reward>();

            foreach (var item in items)
            {
                rewards.Add(new Reward(chance, item));
            }
            return(rewards);
        }