public Reward(ChanceTag chance, params TagBase[] tags) { RewardTags = new List <TagBase>(); foreach (var tag in tags) { RewardTags.Add(tag); } RewardTags.Add(chance); }
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); }