Exemple #1
0
        public void UpgradeToLevel(int level)
        {
            var modify = CardAssistant.GetCardModify(WeaponConfig.Quality, WeaponConfig.Modify);

            int standardValue = (20 + WeaponConfig.Star * 12) * (level * 8 + 92) / 100 * (200 + modify) / 200;

            standardValue = (int)((float)standardValue * 4 / WeaponConfig.Dura * (1 + (WeaponConfig.Dura - 4) * 0.1));//耐久低的武器总值削减
            Atk           = standardValue * (WeaponConfig.AtkP) / 100;
            PArmor        = standardValue * (WeaponConfig.PArmor) / 100 * 5;
            MArmor        = standardValue * (WeaponConfig.MArmor) / 100 * 5;

            if (Range > 10)
            {
                Atk = (int)(Atk * CardAssistant.GetCardFactorOnRange(Range));
            }

            if (Mov > 10)
            {
                Atk = (int)(Atk * CardAssistant.GetCardFactorOnMove(Mov));
            }
        }
Exemple #2
0
        public void UpgradeToLevel(int level)
        {
            var modify = CardAssistant.GetCardModify(MonsterConfig.Quality, MonsterConfig.Modify);

            Level = level;

            int standardValue = (20 + MonsterConfig.Star * 12) * (level * 8 + 92) / 100 * (200 + modify) / 200;

            Atk = standardValue * (100 + MonsterConfig.AtkP) / 100;     //200
            Hp  = standardValue * (100 + MonsterConfig.VitP) / 100 * 5; //200
            if (Range != 10)
            {
                Atk = (int)(Atk * CardAssistant.GetCardFactorOnRange(Range));
                Hp  = (int)(Hp * CardAssistant.GetCardFactorOnRange(Range));
            }
            if (Mov != 10)
            {
                Atk = (int)(Atk * CardAssistant.GetCardFactorOnMove(Mov));
                Hp  = (int)(Hp * CardAssistant.GetCardFactorOnMove(Mov));
            }
        }