public XpBuff(PersonAttribute profession) : base("", "") { mProfession = profession; string professionString = profession.CapitalizedString(); mName = string.Format("Level {0} {1}s", GameState.GetLevelCap(mProfession) + 1, professionString); mDescription = professionString + "s gain +1 xp/s. +1 max level."; mIcon = profession.ToString(); }
public static string GetDescription(this PersonAttribute attr) { switch (attr) { case PersonAttribute.FARMER: return("Farmers produce food"); case PersonAttribute.WARRIOR: return("Warriors increase army"); case PersonAttribute.CIVILIAN: return("Civilians increase birthrate"); // TODO: explain this more case PersonAttribute.SCRIBE: return("Scribes produces XP"); // TODO: explain this more case PersonAttribute.WITCH_DOCTOR: return("Witch Doctors provides healing"); // TODO: add a % and a "per second somewhere" default: return(attr.CapitalizedString() + " <GetDescription>"); } }