예제 #1
0
        public BaseRewardBag() : base()
        {
            Hue = Reward.RewardBagHue();

            while (Items.Count < ItemAmount)
            {
                if (0.05 > Utility.RandomDouble())                   // check
                {
                    DropItem(Loot.RandomTalisman());
                }
                else
                {
                    switch (Utility.Random(4))
                    {
                    case 0: DropItem(Reward.Armor()); break;

                    case 1: DropItem(Reward.RangedWeapon()); break;

                    case 2: DropItem(Reward.Weapon()); break;

                    case 3: DropItem(Reward.Jewlery()); break;
                    }
                }
            }
        }
예제 #2
0
        public Strongbox() : base()
        {
            Hue = Reward.StrongboxHue();

            while (Items.Count < Amount)
            {
                switch (Utility.Random(4))
                {
                case 0: AddItem(Reward.Armor()); break;

                case 1: AddItem(Reward.RangedWeapon()); break;

                case 2: AddItem(Reward.Weapon()); break;

                case 3: AddItem(Reward.Jewlery()); break;
                }
            }

            if (0.25 > Utility.RandomDouble())               // check
            {
                AddItem(new RandomTalisman());
            }
        }
 public override Item RandomItem()
 {
     return(Reward.Armor());
 }