Example #1
0
    void Classes()
    {
        switch ((int)Class)
        {
        case 1:
            att?.AttClassCur(1);
            Bard CurClass1 = new Bard();

            CurClass1.skillsList();
            skill_1                       = CurClass1.skills[0];
            skill_2                       = CurClass1.skills[1];
            skill_3                       = CurClass1.skills[2];
            stats.CurrentClass            = CurClass1.bardClass();
            stats.currentClassLvlupPoints = CurClass1.GetLvlUpPoints();
            Strength                      = 3;
            Defense                       = 5;
            Magical                       = 5;
            MagDefense                    = 7;
            Speed = 6;
            Luck  = 7;

            weapons     = Database.GetWeapon(110);
            weaponBonus = weapons.statModifier["weaponDamage"];

            break;

        case 2:
            att?.AttClassCur(2);
            Fighter CurClass2 = new Fighter();
            CurClass2.skillsList();
            skill_1                       = CurClass2.skills[0];
            skill_2                       = CurClass2.skills[1];
            skill_3                       = CurClass2.skills[2];
            stats.CurrentClass            = CurClass2.fighterClass();
            stats.currentClassLvlupPoints = CurClass2.GetLvlUpPoints();
            Strength                      = 8;
            Defense                       = 7;
            Magical                       = 4;
            MagDefense                    = 4;
            Speed = 5;
            Luck  = 5;

            weapons     = Database.GetWeapon(310);
            weaponBonus = weapons.statModifier["weaponDamage"];

            break;

        case 3:
            att?.AttClassCur(3);
            Monk CurClass3 = new Monk();
            CurClass3.skillsList();
            skill_1                       = CurClass3.skills[0];
            skill_2                       = CurClass3.skills[1];
            skill_3                       = CurClass3.skills[2];
            stats.CurrentClass            = CurClass3.monkClass();
            stats.currentClassLvlupPoints = CurClass3.GetLvlUpPoints();
            Strength                      = 4;
            Defense                       = 7;
            Magical                       = 4;
            MagDefense                    = 7;
            Speed = 5;
            Luck  = 6;

            weapons     = Database.GetWeapon(410);
            weaponBonus = weapons.statModifier["weaponDamage"];

            break;

        case 4:
            att?.AttClassCur(4);
            Wizard CurClass4 = new Wizard();
            CurClass4.skillsList();
            skill_1                       = CurClass4.skills[0];
            skill_2                       = CurClass4.skills[1];
            skill_3                       = CurClass4.skills[2];
            stats.CurrentClass            = CurClass4.wizardClass();
            stats.currentClassLvlupPoints = CurClass4.GetLvlUpPoints();
            Strength                      = 3;
            Defense                       = 4;
            Magical                       = 8;
            MagDefense                    = 8;
            Speed = 4;
            Luck  = 6;

            weapons     = Database.GetWeapon(110);
            weaponBonus = weapons.statModifier["weaponDamage"];

            break;

        case 5:
            att?.AttClassCur(5);
            Priest CurClass5 = new Priest();
            CurClass5.skillsList();
            skill_1                       = CurClass5.skills[0];
            skill_2                       = CurClass5.skills[1];
            skill_3                       = CurClass5.skills[2];
            stats.CurrentClass            = CurClass5.priestClass();
            stats.currentClassLvlupPoints = CurClass5.GetLvlUpPoints();
            Strength                      = 3;
            Defense                       = 4;
            Magical                       = 7;
            MagDefense                    = 8;
            Speed = 5;
            Luck  = 6;

            weapons     = Database.GetWeapon(410);
            weaponBonus = weapons.statModifier["weaponDamage"];

            break;
        }
    }
Example #2
0
    public void AttClassCur(int Class)
    {
        switch (Class)
        {
        case 0:
            break;

        case 1:
        {
            Bard   CurClass = new Bard();
            Skills skill_1;
            Skills skill_2;
            Skills skill_3;
            skill_1                       = CurClass.skills[0];
            skill_2                       = CurClass.skills[1];
            skill_3                       = CurClass.skills[2];
            stats.CurrentClass            = CurClass.bardClass();
            stats.currentClassLvlupPoints = CurClass.GetLvlUpPoints();
        }
        break;

        case 2:
        {
            Fighter CurClass = new Fighter();
            Skills  skill_1;
            Skills  skill_2;
            Skills  skill_3;
            skill_1                       = CurClass.skills[0];
            skill_2                       = CurClass.skills[1];
            skill_3                       = CurClass.skills[2];
            stats.CurrentClass            = CurClass.fighterClass();
            stats.currentClassLvlupPoints = CurClass.GetLvlUpPoints();
        }
        break;

        case 3:
        {
            Monk   CurClass = new Monk();
            Skills skill_1;
            Skills skill_2;
            Skills skill_3;
            skill_1                       = CurClass.skills[0];
            skill_2                       = CurClass.skills[1];
            skill_3                       = CurClass.skills[2];
            stats.CurrentClass            = CurClass.monkClass();
            stats.currentClassLvlupPoints = CurClass.GetLvlUpPoints();
        }
        break;

        case 4:
        {
            Wizard CurClass = new Wizard();
            Skills skill_1;
            Skills skill_2;
            Skills skill_3;
            skill_1                       = CurClass.skills[0];
            skill_2                       = CurClass.skills[1];
            skill_3                       = CurClass.skills[2];
            stats.CurrentClass            = CurClass.wizardClass();
            stats.currentClassLvlupPoints = CurClass.GetLvlUpPoints();
        }
        break;

        case 5:
        {
            Priest CurClass = new Priest();
            Skills skill_1;
            Skills skill_2;
            Skills skill_3;
            skill_1                       = CurClass.skills[0];
            skill_2                       = CurClass.skills[1];
            skill_3                       = CurClass.skills[2];
            stats.CurrentClass            = CurClass.priestClass();
            stats.currentClassLvlupPoints = CurClass.GetLvlUpPoints();
        }
        break;

        case 6:

            break;

        case 7:

            break;

        case 8:

            break;
        }
    }