using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mmoRL { public class Skill { public int id = 0; public string name = "Unknown Skill"; public string description = "Unknown effect"; public int expCost = 0; public Skill() { } public static Skill GetSkill(int id) { Skill skill = new Skill(); skill.id = id; string n = skill.name; //Name string d = skill.description; //Description int x = skill.expCost; //XP switch (id) { case 1: n = "Recovery"; d = "Heal to 25 HP when entering a safe area"; x = 5; break; case 2: n = "Regeneration"; d = "Heal 1 HP every turn"; x = 15; break; case 3: n = "Crafting"; d = "Allows you to craft items"; x = 15; break; case 4: n = "Toughness"; d = "Raises HP by 10"; x = 20; break; case 5: n = "Destruction"; d = "Allows you to destroy objects"; x = 50; break; case 6: n = "Construction"; d = "Allows you to craft and place floors and walls"; x = 10; break; case 7: n = "Painting"; d = "Allows you to create and use paints"; x = 200; break; case 8: n = "Equipment Crafting"; d = "Allows you to craft equipment"; x = 50; break; case 9: n = "Synthesis"; d = "Allows you to create items from magic"; x = 50; break; case 10: n = "Leatherworking"; d = "Allows you to craft leather items"; x = 200; break; case 11: n = "Resilience"; d = "Raises armor by 1"; x = 100; break; case 12: n = "Aggression"; d = "Raises strength by 1"; x = 200; break; case 13: n = "Inner Focus"; d = "Raises strength by 10 while unarmed"; x = 200; break; case 14: n = "Advance"; d = "Allows you to warp to stairs down in safe areas"; x = 150; break; case 15: n = "Return"; d = "Allows you to warp to stairs up in safe areas"; x = 150; break; case 16: n = "Transmutation"; d = "Allows you to turn items into magic"; x = 100; break; case 17: n = "Greater Toughness"; d = "Raises HP by 20"; x = 200; break; case 18: n = "Greater Resilience"; d = "Raises armor by 3"; x = 400; break; case 19: n = "Greater Aggression"; d = "Raises strength by 3"; x = 600; break; case 20: n = "Path of the Warrior"; d = "Raises strength by 15 while armed"; x = 800; break; case 21: n = "Extreme Toughness"; d = "Raises HP by 20"; x = 1200; break; case 22: n = "Extreme Resilience"; d = "Raises armor by 5"; x = 1600; break; case 23: n = "Extreme Aggression"; d = "Raises strength by 5"; x = 2000; break; case 24: n = "BERSERKER"; d = "Raises strength by 20 while not wearing any armor of any kind"; x = 2500; break; } skill.name = n; skill.description = d; skill.expCost = x; return skill; } } }