Exemplo n.º 1
0
        public BaseCraftsmanSatchel()
            : base()
        {
            Hue = Reward.SatchelHue();

            int count = 1;

            if (0.015 > Utility.RandomDouble())
            {
                count = 2;
            }

            bool equipment = false;
            bool jewlery   = false;
            bool talisman  = false;

            while (Items.Count < count)
            {
                if (0.33 > Utility.RandomDouble() && !talisman)
                {
                    DropItem(Loot.RandomTalisman());
                    talisman = true;
                }
                else if (0.4 > Utility.RandomDouble() && !equipment)
                {
                    DropItem(RandomItem());
                    equipment = true;
                }
                else if (0.88 > Utility.RandomDouble() && !jewlery)
                {
                    DropItem(Reward.Jewlery());
                    jewlery = true;
                }
            }
        }
Exemplo n.º 2
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;
                    }
                }
            }
        }
Exemplo n.º 3
0
        public CarpentersCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                var recipe = Reward.CarpentryRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }

            var runic = Reward.CarpenterRunic();

            if (runic != null)
            {
                DropItem(runic);
            }

            var furniture = Reward.RandomFurniture();

            if (furniture != null)
            {
                DropItem(furniture);
            }
        }
Exemplo n.º 4
0
        public RewardBox()
            : base()
        {
            Hue = Reward.StrongboxHue();

            while (Items.Count < Amount)
            {
                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;
                }
            }

            if (0.25 > Utility.RandomDouble()) // check
            {
                DropItem(Loot.RandomTalisman());
            }
        }
Exemplo n.º 5
0
        public JaacarBox()
        {
            Movable = true;
            Hue     = 1266;

            DropItem(Reward.CookRecipe());
        }
Exemplo n.º 6
0
        public JaacarBox()
            : base()
        {
            this.Movable = true;
            this.Hue     = 1266;

            this.DropItem(Reward.CookRecipe());
        }
Exemplo n.º 7
0
 public TinkersCraftsmanSatchel()
     : base()
 {
     if (this.Items.Count < 2 && 0.5 > Utility.RandomDouble())
     {
         this.DropItem(Reward.TinkerRecipe());
     }
 }
Exemplo n.º 8
0
        public AlchemistCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                var recipe = Reward.AlchemyRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }
        }
Exemplo n.º 9
0
        public TinkersCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                var recipe = Reward.TinkerRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }
        }
Exemplo n.º 10
0
        public SmithsCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                Item recipe = Reward.SmithRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }
        }
Exemplo n.º 11
0
        public TailorsCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                Item recipe = Reward.TailorRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }
        }
Exemplo n.º 12
0
        public FletcherCraftsmanSatchel()
            : base()
        {
            if (this.Items.Count < 2 && 0.5 > Utility.RandomDouble())
            {
                this.DropItem(Reward.FletcherRecipe());
            }

            if (0.01 > Utility.RandomDouble())
            {
                this.DropItem(Reward.FletcherRunic());
            }
        }
Exemplo n.º 13
0
        public CarpentersCraftsmanSatchel()
            : base()
        {
            if (this.Items.Count < 2 && 0.5 > Utility.RandomDouble())
            {
                this.DropItem(Reward.CarpRecipe());
            }

            if (0.01 > Utility.RandomDouble())
            {
                this.DropItem(Reward.CarpRunic());
            }
        }
Exemplo n.º 14
0
        public FletcherCraftsmanSatchel()
            : base()
        {
            if (Items.Count < 2)
            {
                var recipe = Reward.FletcherRecipe();

                if (recipe != null)
                {
                    DropItem(recipe);
                }
            }

            var runic = Reward.FletcherRunic();

            if (runic != null)
            {
                DropItem(runic);
            }
        }
Exemplo n.º 15
0
 public override Item RandomItem()
 {
     return(Reward.RangedWeapon());
 }
Exemplo n.º 16
0
 public override Item RandomItem()
 {
     return(Reward.Armor());
 }