コード例 #1
0
    public static void LevelUpClass()
    {
        Bard.LevelUp();
        CurrentGame.game.memoryGeneral.humanClassProgress.bard.level     = CurrentGame.game.memoryGeneral.humanClassProgress.bard.level + 1;
        CurrentGame.game.memoryGeneral.humanClassProgress.bard.modifiers = Bard.ModList();

        foreach (string id in CurrentGame.game.memoryGeneral.humanClassProgress.bard.subbed)
        {
            Unit me = new Unit();
            foreach (Unit u in CurrentGame.game.storeroom.units)
            {
                if (id == u.unitID)
                {
                    u.unitClass.main.human.bard.modifiers = CurrentGame.game.memoryGeneral.humanClassProgress.bard.modifiers;
                    u.unitClass.main.human.bard.level     = CurrentGame.game.memoryGeneral.humanClassProgress.bard.level;
                }
            }
        }
    }