void Start()
    {
        stats.Name         = "Eggplant";
        stats.HealthPoints = monk.Strength;
        stats.ManaPoints   = 100;
        stats.Level        = 1;
        stats.Experience   = 0;
        stats.Mastery      = 1;
        stats.Strength     = 8;
        stats.Defense      = 4;
        stats.Magical      = 11;
        stats.MagDefense   = 3;
        stats.Speed        = 5;
        stats.Luck         = 5;

        /*stats[0] = new BaseStat(4, "Strength", "Character Physical Power");
         * stats[1] = new BaseStat(100, "HP", "Health of Player");
         * stats[2] = new BaseStat(1, "Mastery", "Proficency in Class");
         * stats[3] = new BaseStat(8, "Strength", "Character Physical Attack");
         * stats[4] = new BaseStat(4, "Defense", "Character Physical Defense");
         * stats[5] = new BaseStat(11, "Magic", "Character Magical Power");
         * stats[6] = new BaseStat(3, "MagDefense", "Character Magical Defense");
         * stats[7] = new BaseStat(2, "Speed", "Distance Character can travel");
         * stats[3].AddStatBonus(new StatBonus(5));
         * Debug.Log(stats[3].GetCalcStatValue());*/


        stats.CurrentClass            = monk.monkClass();
        stats.currentClassLvlupPoints = monk.GetLvlUpPoints();
        weapons = Database.GetWeapon(410);
        int statsmod2 = weapons.statModifier["weaponDamage"];

        Debug.Log(statsmod2);
        armor   = Database.GetArmor(410);
        skill_1 = monk.skills[0];
        Debug.Log(skill_1);
    }
Exemplo n.º 2
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;
        }
    }