示例#1
0
        private ShopItems GetRandomStuff(Tier tier)
        {
            ShopItems items = new ShopItems();

            AddBonuses(items, Getters.GetDrop(tier).Keys.ToList());
            AddScraps(items, tier);
            items.Backpack.Add(Getters.GetRandomAmmo(tier));
            return(items);
        }
示例#2
0
        private void SetDropForLevel(Tier tier, Difficulty diff)
        {
            Dictionary <IBonus, int> set = new Dictionary <IBonus, int>();

            foreach (var pair in Getters.GetDrop(tier))
            {
                set.Add(pair.Key, pair.Value * (int)diff);
            }
            foreach (var pair in Getters.GetScrapDrop(tier))
            {
                set.Add(pair.Key, pair.Value * (int)diff);
            }
            set.Add(new GoldCoin(new Vector(), tier, diff), 33 * (int)diff);
            lvl.SetDroppables(set);
        }