using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TheSlimesJourney { public class Mutation { public string name = "Unknown mutation"; public string description = "Does nothing."; public Mutation(string name, string description) { this.name = name; this.description = description; } //Statics public static List allMutations = new List(); public static List possibleMutations = new List(); public static void AddMutations() { allMutations.Add(new Mutation("Regeneration", "Recover 2 Health at the start of every combat turn.")); allMutations.Add(new Mutation("Defensive Ability", "Allows you to Defend in combat (x2 defense until end of turn).")); allMutations.Add(new Mutation("Adaptable", "Gain 20% more experience (rounded down).")); allMutations.Add(new Mutation("Keen Senses", "See one more option when Wandering.")); allMutations.Add(new Mutation("Camouflage", "Doubles your chance of running away.")); allMutations.Add(new Mutation("Tentacle", "Allows you to carry and use one item.")); allMutations.Add(new Mutation("Body Storage", "Allows you to carry (but not use) three items.")); allMutations.Add(new Mutation("Goo Hand", "Allows you to carry and use one item.")); allMutations.Add(new Mutation("Claw", "Allows you to carry and use one item.")); allMutations.Add(new Mutation("Item Absorption", "Can consume items for bonus experience.")); allMutations.Add(new Mutation("Night Vision", "Allows you to see in the darkness.")); allMutations.Add(new Mutation("Vampirism", "Heal by damaging enemies, but you can't heal in any other way.")); allMutations.Add(new Mutation("Wings", "Gives you a 20% chance to dodge enemy attacks.")); allMutations.Add(new Mutation("Resilience", "Recover 4 Health whenever you take damage in combat.")); allMutations.Add(new Mutation("Speed", "Gives you a 10% chance to dodge enemy attacks.")); allMutations.Add(new Mutation("Aggression", "Damage you deal is doubled (after defense).")); allMutations.Add(new Mutation("Dwelling", "Can rest anywhere without any risks.")); } public static Mutation GetMutation(string name) { for (int i = 0; i < allMutations.Count; i++) { if (allMutations[i].name == name) return allMutations[i]; } return null; } } }