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

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