Exemple #1
0
        public override Item getOne()
        {
            Hoe hoe = new Hoe();

            hoe.UpgradeLevel = base.UpgradeLevel;
            CopyEnchantments(this, hoe);
            hoe._GetOneFrom(this);
            return(hoe);
        }
Exemple #2
0
        public static Tool getToolFromDescription(byte index, int upgradeLevel)
        {
            Tool tool = null;

            switch (index)
            {
            case 0:
                tool = new Axe();
                break;

            case 1:
                tool = new Hoe();
                break;

            case 2:
                tool = new FishingRod();
                break;

            case 3:
                tool = new Pickaxe();
                break;

            case 4:
                tool = new WateringCan();
                break;

            case 5:
                tool = new MeleeWeapon(0, upgradeLevel);
                break;

            case 6:
                tool = new Slingshot();
                break;
            }
            tool.UpgradeLevel = upgradeLevel;
            return(tool);
        }