Exemplo n.º 1
0
        public Skill()
            : base("spacechase0.Cooking")
        {
            this.Icon           = Mod.Instance.Helper.Content.Load <Texture2D>("assets/iconA.png");
            this.SkillsPageIcon = Mod.Instance.Helper.Content.Load <Texture2D>("assets/iconB.png");

            this.ExperienceCurve = new[] { 100, 380, 770, 1300, 2150, 3300, 4800, 6900, 10000, 15000 };

            this.ExperienceBarColor = new Microsoft.Xna.Framework.Color(196, 76, 255);

            // Level 5
            Skill.ProfessionSellPrice = new GenericProfession(skill: this, id: "SellPrice", name: I18n.Gourmet_Name, description: I18n.Gourmet_Desc);
            this.Professions.Add(Skill.ProfessionSellPrice);

            Skill.ProfessionBuffTime = new GenericProfession(skill: this, id: "BuffTime", name: I18n.Satisfying_Name, description: I18n.Satisfying_Desc);
            this.Professions.Add(Skill.ProfessionBuffTime);

            this.ProfessionsForLevels.Add(new ProfessionPair(5, Skill.ProfessionSellPrice, Skill.ProfessionBuffTime));

            // Level 10 - track A
            Skill.ProfessionConservation = new GenericProfession(skill: this, id: "Conservation", name: I18n.Efficient_Name, description: I18n.Efficient_Desc);
            this.Professions.Add(Skill.ProfessionConservation);

            Skill.ProfessionSilver = new GenericProfession(skill: this, id: "Silver", name: I18n.ProfessionalChef_Name, description: I18n.ProfessionalChef_Desc);
            this.Professions.Add(Skill.ProfessionSilver);

            this.ProfessionsForLevels.Add(new ProfessionPair(10, Skill.ProfessionConservation, Skill.ProfessionSilver, Skill.ProfessionSellPrice));

            // Level 10 - track B
            Skill.ProfessionBuffLevel = new GenericProfession(skill: this, id: "BuffLevel", name: I18n.IntenseFlavors_Name, description: I18n.IntenseFlavors_Desc);
            this.Professions.Add(Skill.ProfessionBuffLevel);

            Skill.ProfessionBuffPlain = new GenericProfession(skill: this, id: "BuffPlain", name: I18n.SecretSpices_Name, description: I18n.SecretSpices_Desc);
            this.Professions.Add(Skill.ProfessionBuffPlain);

            this.ProfessionsForLevels.Add(new ProfessionPair(10, Skill.ProfessionBuffLevel, Skill.ProfessionBuffPlain, Skill.ProfessionBuffTime));
        }
Exemplo n.º 2
0
        public Skill()
            : base("spacechase0.Cooking")
        {
            this.Icon           = Mod.Instance.Helper.Content.Load <Texture2D>("assets/iconA.png");
            this.SkillsPageIcon = Mod.Instance.Helper.Content.Load <Texture2D>("assets/iconB.png");

            this.ExperienceCurve = new[] { 100, 380, 770, 1300, 2150, 3300, 4800, 6900, 10000, 15000 };

            this.ExperienceBarColor = new Microsoft.Xna.Framework.Color(196, 76, 255);

            // Level 5
            Skill.ProfessionSellPrice = new GenericProfession(this, "SellPrice")
            {
                Icon        = null, // TODO
                Name        = "Gourmet",
                Description = "+20% sell price"
            };
            this.Professions.Add(Skill.ProfessionSellPrice);

            Skill.ProfessionBuffTime = new GenericProfession(this, "BuffTime")
            {
                Icon        = null, // TODO
                Name        = "Satisfying",
                Description = "+25% buff duration once eaten"
            };
            this.Professions.Add(Skill.ProfessionBuffTime);

            this.ProfessionsForLevels.Add(new ProfessionPair(5, Skill.ProfessionSellPrice, Skill.ProfessionBuffTime));

            // Level 10 - track A
            Skill.ProfessionConservation = new GenericProfession(this, "Conservation")
            {
                Icon        = null, // TODO
                Name        = "Efficient",
                Description = "15% chance to not consume ingredients"
            };
            this.Professions.Add(Skill.ProfessionConservation);

            Skill.ProfessionSilver = new GenericProfession(this, "Silver")
            {
                Icon        = null, // TODO
                Name        = "Professional Chef",
                Description = "Home-cooked meals are always at least silver"
            };
            this.Professions.Add(Skill.ProfessionSilver);

            this.ProfessionsForLevels.Add(new ProfessionPair(10, Skill.ProfessionConservation, Skill.ProfessionSilver, Skill.ProfessionSellPrice));

            // Level 10 - track B
            Skill.ProfessionBuffLevel = new GenericProfession(this, "BuffLevel")
            {
                Icon        = null, // TODO
                Name        = "Intense Flavors",
                Description = "Food buffs are one level stronger once eaten\n(+20% for max energy or magnetism)"
            };
            this.Professions.Add(Skill.ProfessionBuffLevel);

            Skill.ProfessionBuffPlain = new GenericProfession(this, "BuffPlain")
            {
                Icon        = null, // TODO
                Name        = "Secret Spices",
                Description = "Provides a few random buffs when eating unbuffed food"
            };
            this.Professions.Add(Skill.ProfessionBuffPlain);

            this.ProfessionsForLevels.Add(new ProfessionPair(10, Skill.ProfessionBuffLevel, Skill.ProfessionBuffPlain, Skill.ProfessionBuffTime));
        }