using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CookingSkill { public class Skill : SpaceCore.Skills.Skill { public Skill() : base( "spacechase0.Cooking" ) { Name = "Cooking"; Icon = null; // TODO ExperienceCurve = new int[] { 100, 380, 770, 1300, 2150, 3300, 4800, 6900, 10000, 15000 }; ; ExperienceBarColor = new Microsoft.Xna.Framework.Color(196, 76, 255); // Level 5 Profession profSellPrice = new Profession(this, "SellPrice"); profSellPrice.Icon = null; // TODO profSellPrice.Name = "Gourmet"; profSellPrice.Description = "+20% sell price"; Professions.Add(profSellPrice); Profession profBuffTime = new Profession(this, "BuffTime"); profBuffTime.Icon = null; // TODO profBuffTime.Name = "Satisfying"; profBuffTime.Description = "+25% buff duration once eaten"; Professions.Add(profBuffTime); ProfessionsForLevels.Add(new ProfessionPair(5, profSellPrice, profBuffTime)); // Level 10 - track A Profession profConservation = new Profession(this, "Conservation"); profConservation.Icon = null; // TODO profConservation.Name = "Efficient"; profConservation.Description = "15% chance to not consume ingredients"; Professions.Add(profSellPrice); Profession profSilver = new Profession(this, "Silver"); profSilver.Icon = null; // TODO profSilver.Name = "Professional Chef"; profSilver.Description = "Home-cooked meals are always at least silver"; Professions.Add(profSilver); ProfessionsForLevels.Add(new ProfessionPair(10, profConservation, profSilver, profSellPrice)); // Level 10 - track B Profession profBuffLevel = new Profession(this, "BuffLevel"); profBuffLevel.Icon = null; // TODO profBuffLevel.Name = "Intense Flavors"; profBuffLevel.Description = "Food buffs are one level stronger once eaten\n(+20% for max energy or magnetism)"; Professions.Add(profBuffLevel); Profession profBuffPlain = new Profession(this, "BuffPlain"); profBuffPlain.Icon = null; // TODO profBuffPlain.Name = "Secret Spices"; profBuffPlain.Description = "Provides a few random buffs when eating unbuffed food"; Professions.Add(profBuffPlain); ProfessionsForLevels.Add(new ProfessionPair(10, profBuffLevel, profBuffPlain, profBuffTime)); } } } // Usage var skill = new Skill(); Skills.RegisterSkill( skill ); int level = farmer.GetCustomSkillLevel( skill ); farmer.AddCustomSkillExperience( skill, 10 );