public static string GetCharacterStats(string character, int level) { DataStore data = new DataStore(typeof(Seven).Assembly); Party p = new Party(data); Character c = (Character)typeof(Party).GetProperty(character).GetValue(p, null); while (c.Level < level) { c.GainExperience(c.ExpToNextLevel + 10); } return c.ToString(); }
public void LoadSavedGame(int save) { XmlDocument doc = new XmlDocument(); doc.Load(Path.Combine(SavePath, GetSaveFilePath(save))); XmlNode saveGame = doc.SelectSingleNode("*"); Party = new Party(Data, saveGame); _menuState = new MenuState(this); _menuState.Init(); SetState(_menuState); //TestPostBattleState(); }
public void LoadNewGame() { Party = new Party(Data); _menuState = new MenuState(this); _menuState.Init(); SetState(_menuState); }