public RewardBox() { Hue = Reward.StrongboxHue(); for (int i = 0; i < ItemAmount; i++) { DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity)); } if (0.25 > Utility.RandomDouble()) // check { DropItem(new RandomTalisman()); } }
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()); } }