public static void LevelUpClass() { Priest.LevelUp(); CurrentGame.game.memoryGeneral.humanClassProgress.priest.level = CurrentGame.game.memoryGeneral.humanClassProgress.priest.level + 1; CurrentGame.game.memoryGeneral.humanClassProgress.priest.modifiers = Priest.ModList(); foreach (string id in CurrentGame.game.memoryGeneral.humanClassProgress.priest.subbed) { Unit me = new Unit(); foreach (Unit u in CurrentGame.game.storeroom.units) { if (id == u.unitID) { u.unitClass.main.human.priest.modifiers = CurrentGame.game.memoryGeneral.humanClassProgress.priest.modifiers; u.unitClass.main.human.priest.level = CurrentGame.game.memoryGeneral.humanClassProgress.priest.level; } } } }