public BaseDustyBackpack() { Hue = Utility.RandomMetalHue(); for (int i = 0; i < ItemAmount; i++) { DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity)); } DropItem(new Gold(GoldAmount + Utility.Random(1000))); DropItem(TerMurBook.ConstructRandom()); }
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 BaseRewardBag() { Hue = Reward.RewardBagHue(); for (int i = 0; i < ItemAmount; i++) { if (0.05 > Utility.RandomDouble()) // check { DropItem(new RandomTalisman()); } else { DropItem(Reward.RandomItem(Utility.RandomMinMax(MinProperties, MaxProperties), MinIntensity, MaxIntensity)); } } }
public override void GiveRewards() { base.GiveRewards(); Bag bag = new Bag(); bag.Hue = BaseReward.RewardBagHue(); for (int i = 0; i < 2; i++) { Item gem = Loot.RandomGem(); gem.Amount = 5; bag.DropItem(gem); } for (int i = 0; i < 3; i++) { bag.DropItem(BaseReward.RandomItem(Utility.RandomMinMax(1, 3), 10, 70)); } Owner.SendLocalizedMessage(1074360, "#1023702"); // You receive a reward: bag Owner.AddToBackpack(bag); }