private string[] setFormation(int formation)
        {
            string [] form = new string[4];
            if (formation == 0)//Intern
            {
                form[0] = FormationHandler.FormDescByValue(0);
                form[1] = ". . .";
                form[2] = "";
                form[3] = "";
            }
            else if (formation == 1)//defense
            {
                form[0] = FormationHandler.FormDescByValue(1);
                form[1] = ".";
                form[2] = ".";
                form[3] = ".";
            }
            else if (formation == 2)//caster
            {
                form[0] = FormationHandler.FormDescByValue(2);
                form[1] = " .";
                form[2] = ". .";
                form[3] = "";
            }
            else//offense
            {
                form[0] = FormationHandler.FormDescByValue(3);
                form[1] = ". .";
                form[2] = " .";
                form[3] = "";
            }

            return(form);
        }
Пример #2
0
        internal override int getMagicDefense()
        {
            int mdef = magicdefense;

            for (int i = 0; i < equipped.Length; i++)
            {
                if (equipped[i] != null)
                {
                    mdef += equipped[i].Magicdefensemod;
                }
            }

            mdef = (int)(mdef * FormationHandler.getMagDefBonus());

            return(mdef);
        }
Пример #3
0
        internal override int getDefense()
        {
            int def = defense;

            for (int i = 0; i < equipped.Length; i++)
            {
                if (equipped[i] != null)
                {
                    def += equipped[i].Defensemod;
                }
            }

            def = (int)(def * FormationHandler.getDefBonus());

            return(def);
        }
Пример #4
0
        internal override int getMagic()
        {
            int mag = magic;

            for (int i = 0; i < equipped.Length; i++)
            {
                if (equipped[i] != null)
                {
                    mag += equipped[i].Magicmod;
                }
            }

            mag = (int)(mag * FormationHandler.getMagBonus());

            return(mag);
        }
Пример #5
0
        internal override int getAttack()
        {
            int att = attack;

            for (int i = 0; i < equipped.Length; i++)
            {
                if (equipped[i] != null)
                {
                    att += equipped[i].Attackmod;
                }
            }

            att = (int)(att * FormationHandler.getAttBonus());

            return(att);
        }