Ejemplo n.º 1
0
        public override void SetPotionProperties()
        {
            EffectSettings cureSettings = SetEffectChance(DefaultEffectSettings(), 1, 10, 1);
            PotionRecipe   cureDisease  = new PotionRecipe(
                TextManager.Instance.GetText(textDatabase, "cureDisease"),
                100,
                cureSettings,
                (int)Items.MiscellaneousIngredients1.Elixir_vitae,
                (int)Items.PlantIngredients2.Fig,
                (int)Items.MiscellaneousIngredients1.Big_tooth);

            EffectSettings purificationSettings = SetEffectChance(DefaultEffectSettings(), 1, 10, 1);

            purificationSettings = SetEffectMagnitude(purificationSettings, 5, 5, 19, 19, 1);
            PotionRecipe purification = new PotionRecipe(
                TextManager.Instance.GetText(textDatabase, "purification"),
                500,
                purificationSettings,
                (int)Items.MiscellaneousIngredients1.Elixir_vitae,
                (int)Items.MiscellaneousIngredients1.Nectar,
                (int)Items.MiscellaneousIngredients1.Rain_water,
                (int)Items.PlantIngredients2.Fig,
                (int)Items.MiscellaneousIngredients1.Big_tooth,
                (int)Items.CreatureIngredients1.Ectoplasm,
                (int)Items.Gems.Diamond,
                (int)Items.CreatureIngredients2.Mummy_wrappings);

            purification.AddSecondaryEffect(HealHealth.EffectKey);
            purification.AddSecondaryEffect(InvisibilityNormal.EffectKey);

            cureDisease.TextureRecord  = 35;
            purification.TextureRecord = 35;
            AssignPotionRecipes(cureDisease, purification);
        }
Ejemplo n.º 2
0
        public override void SetPotionProperties()
        {
            EffectSettings cureSettings = SetEffectChance(DefaultEffectSettings(), 1, 10, 1);
            PotionRecipe   cureDisease  = new PotionRecipe(
                "cureDisease",
                100,
                cureSettings,
                (int)MiscellaneousIngredients1.Elixir_vitae,
                (int)PlantIngredients2.Fig,
                (int)MiscellaneousIngredients1.Big_tooth);

            EffectSettings purificationSettings = SetEffectChance(DefaultEffectSettings(), 1, 10, 1);

            purificationSettings = SetEffectMagnitude(purificationSettings, 5, 5, 19, 19, 1);
            PotionRecipe purification = new PotionRecipe(
                "purification",
                500,
                purificationSettings,
                (int)MiscellaneousIngredients1.Elixir_vitae,
                (int)MiscellaneousIngredients1.Nectar,
                (int)MiscellaneousIngredients1.Rain_water,
                (int)PlantIngredients2.Fig,
                (int)MiscellaneousIngredients1.Big_tooth,
                (int)CreatureIngredients1.Ectoplasm,
                (int)Gems.Diamond,
                (int)CreatureIngredients2.Mummy_wrappings);

            purification.AddSecondaryEffect(HealHealth.EffectKey);
            purification.AddSecondaryEffect(CurePoison.EffectKey);

            cureDisease.TextureRecord  = 35;
            purification.TextureRecord = 35;
            AssignPotionRecipes(cureDisease, purification);
        }
Ejemplo n.º 3
0
        public override void SetPotionProperties()
        {
            // Duration 48 + 0 per 1 levels, Chance 1-1 + 0-0 per 1 levels
            EffectSettings protectionSettings = SetEffectDuration(DefaultEffectSettings(), 48, 0, 1);

            protectionSettings = SetEffectChance(protectionSettings, 1, 0, 1);

            // Duration 20 + 0 per 1 levels, Chance 100-100 + 0-0 per 1 levels
            EffectSettings immunitySettings = SetEffectDuration(DefaultEffectSettings(), 20, 0, 1);

            immunitySettings = SetEffectChance(immunitySettings, 100, 0, 1);

            // Protection
            PotionRecipe fireProtection = new PotionRecipe(
                "Fire Protection",
                34,
                0,
                35,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.FruitPlantIngredients.Red_berries,
                (int)Items.FlowerPlantIngredients.Red_Flowers,
                (int)Items.MetalIngredients.Sulphur,
                (int)Items.Gems.Amber);

            PotionRecipe frostProtection = new PotionRecipe(
                "Frost Protection",
                43,
                0,
                35,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.FruitPlantIngredients.Fig,
                (int)Items.MiscPlantIngredients.Pine_branch,
                (int)Items.Gems.Turquoise);

            PotionRecipe shockProtection = new PotionRecipe(
                "Shock Protection",
                39,
                0,
                40,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.FruitPlantIngredients.Yellow_berries,
                (int)Items.FlowerPlantIngredients.Yellow_Flowers,
                (int)Items.MetalIngredients.Lodestone,
                (int)Items.Gems.Malachite);

            PotionRecipe poisonProtection = new PotionRecipe(
                "Poison Protection",
                36,
                4,
                45,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.FruitPlantIngredients.Green_berries,
                (int)Items.AnimalPartIngredients.Snake_venom,
                (int)Items.AnimalPartIngredients.Spider_venom,
                (int)Items.AnimalPartIngredients.Small_scorpion_stinger);

            PotionRecipe magickaProtection = new PotionRecipe(
                "Magicka Protection",
                40,
                0,
                45,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.FruitPlantIngredients.Cactus,
                (int)Items.FlowerPlantIngredients.Clover,
                (int)Items.MiscPlantIngredients.Ginkgo_leaves,
                (int)Items.AnimalPartIngredients.Ivory,
                (int)Items.CreatureIngredients.Harpy_Feather);

            PotionRecipe elementalProtection = new PotionRecipe(
                "Elemental Protection",
                245,
                0,
                70,
                protectionSettings,
                (int)Items.SolventIngredients.Pure_water,
                (int)Items.CreatureIngredients.Giant_blood,
                (int)Items.CreatureIngredients.Saints_hair,
                (int)Items.MetalIngredients.Gold,
                (int)Items.Gems.Jade,
                (int)Items.Gems.Turquoise,
                (int)Items.Gems.Malachite,
                (int)Items.Gems.Amber);

            elementalProtection.AddSecondaryEffect(variantProperties[(int)DFCareer.Elements.Fire].effectProperties.Key);
            elementalProtection.AddSecondaryEffect(variantProperties[(int)DFCareer.Elements.Frost].effectProperties.Key);
            elementalProtection.AddSecondaryEffect(variantProperties[(int)DFCareer.Elements.DiseaseOrPoison].effectProperties.Key);
            elementalProtection.AddSecondaryEffect(variantProperties[(int)DFCareer.Elements.Shock].effectProperties.Key);


            // Immunity
            PotionRecipe fireImmunity = new PotionRecipe(
                "Fire Immunity",
                350,
                0,
                70,
                immunitySettings,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.FruitPlantIngredients.Red_berries,
                (int)Items.CreatureIngredients.Dragons_scales,
                (int)Items.MetalIngredients.Sulphur,
                (int)Items.Gems.Ruby);

            PotionRecipe frostImmunity = new PotionRecipe(
                "Frost Immunity",
                265,
                0,
                70,
                immunitySettings,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.MiscPlantIngredients.Pine_branch,
                (int)Items.CreatureIngredients.Mummy_wrappings,
                (int)Items.CreatureIngredients.Werewolfs_blood,
                (int)Items.MetalIngredients.Silver,
                (int)Items.Gems.Sapphire);

            PotionRecipe shockImmunity = new PotionRecipe(
                "Shock Immunity",
                340,
                0,
                75,
                immunitySettings,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.FruitPlantIngredients.Yellow_berries,
                (int)Items.MiscPlantIngredients.Root_bulb,
                (int)Items.CreatureIngredients.Wraith_essence,
                (int)Items.MetalIngredients.Lodestone,
                (int)Items.Gems.Diamond);

            PotionRecipe poisonImmunity = new PotionRecipe(
                "Poison Immunity",
                335,
                0,
                80,
                immunitySettings,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.AnimalPartIngredients.Snake_venom,
                (int)Items.AnimalPartIngredients.Spider_venom,
                (int)Items.AnimalPartIngredients.Giant_scorpion_stinger,
                (int)Items.CreatureIngredients.Gorgon_snake,
                (int)Items.CreatureIngredients.Troll_blood,
                (int)Items.Gems.Emerald);

            PotionRecipe magickaImmunity = new PotionRecipe(
                "Magicka Immunity",
                460,
                0,
                80,
                immunitySettings,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.FruitPlantIngredients.Cactus,
                (int)Items.CreatureIngredients.Fairy_dragon_scales,
                (int)Items.CreatureIngredients.Basilisk_eye,
                (int)Items.CreatureIngredients.Harpy_Feather,
                (int)Items.MetalIngredients.Platinum,
                (int)Items.Gems.Diamond);

            // Assign potion recipes
            fireProtection.TextureRecord      = 15;
            frostProtection.TextureRecord     = 11;
            shockProtection.TextureRecord     = 12;
            poisonProtection.TextureRecord    = 14;
            magickaProtection.TextureRecord   = 13;
            elementalProtection.TextureRecord = 2;
            fireImmunity.TextureRecord        = 34;
            frostImmunity.TextureRecord       = 32;
            shockImmunity.TextureRecord       = 33;
            poisonImmunity.TextureRecord      = 35;
            magickaImmunity.TextureRecord     = 6;

            variantProperties[(int)DFCareer.Elements.Fire].potionProperties.Recipes            = new PotionRecipe[] { fireProtection, fireImmunity };
            variantProperties[(int)DFCareer.Elements.Frost].potionProperties.Recipes           = new PotionRecipe[] { frostProtection, frostImmunity };
            variantProperties[(int)DFCareer.Elements.Shock].potionProperties.Recipes           = new PotionRecipe[] { shockProtection, shockImmunity };
            variantProperties[(int)DFCareer.Elements.DiseaseOrPoison].potionProperties.Recipes = new PotionRecipe[] { poisonProtection, poisonImmunity };
            variantProperties[(int)DFCareer.Elements.Magic].potionProperties.Recipes           = new PotionRecipe[] { magickaProtection, magickaImmunity, elementalProtection };
        }
        public override void SetPotionProperties()
        {
            // Chance 100-100 + 0-0 per 1 levels
            EffectSettings cureDiseaseSettings = SetEffectChance(DefaultEffectSettings(), 100, 0, 1);
            PotionRecipe   cureDisease         = new PotionRecipe(
                "Cure Disease",
                32,
                0,
                25,
                cureDiseaseSettings,
                (int)Items.SolventIngredients.Nectar,
                (int)Items.FruitPlantIngredients.Red_berries,
                (int)Items.FlowerPlantIngredients.Yellow_Flowers,
                (int)Items.FlowerPlantIngredients.White_rose,
                (int)Items.AnimalPartIngredients.Big_tooth,
                (int)Items.AnimalPartIngredients.Small_tooth,
                (int)Items.MetalIngredients.Copper);

            // Chance 100-100 + 0-0 per 1 levels, Magnitude 100-100 + 0-0 per 1 levels
            EffectSettings purificationSettings = SetEffectChance(DefaultEffectSettings(), 100, 0, 1);

            purificationSettings = SetEffectMagnitude(purificationSettings, 100, 100, 0, 0, 1);
            PotionRecipe purification = new PotionRecipe(
                "Purification",
                1850,
                0,
                100,
                purificationSettings,
                (int)Items.SolventIngredients.Elixir_vitae,
                (int)Items.SolventIngredients.Ichor,
                (int)Items.AnimalPartIngredients.Giant_scorpion_stinger,
                (int)Items.CreatureIngredients.Unicorn_horn,
                (int)Items.CreatureIngredients.Saints_hair,
                (int)Items.CreatureIngredients.Troll_blood,
                (int)Items.CreatureIngredients.Mummy_wrappings,
                (int)Items.Gems.Diamond);

            purification.AddSecondaryEffect(CurePoison.EffectKey);
            purification.AddSecondaryEffect(CureParalyzation.EffectKey);
            purification.AddSecondaryEffect(DispelMagic.EffectKey);
            purification.AddSecondaryEffect(HealHealth.EffectKey);
            purification.AddSecondaryEffect(HealStrength.EffectKey);
            purification.AddSecondaryEffect(HealIntelligence.EffectKey);
            purification.AddSecondaryEffect(HealWillpower.EffectKey);
            purification.AddSecondaryEffect(HealAgility.EffectKey);
            purification.AddSecondaryEffect(HealEndurance.EffectKey);
            purification.AddSecondaryEffect(HealPersonality.EffectKey);
            purification.AddSecondaryEffect(HealSpeed.EffectKey);
            purification.AddSecondaryEffect(HealLuck.EffectKey);

            cureDisease.TextureRecord  = 35;
            purification.TextureRecord = 32;
            AssignPotionRecipes(cureDisease, purification);
        }