예제 #1
0
        void CalcDamage()
        {
            if (now_mob.Name == "")
            {
                return;
            }

            UserData user_data = MainWindow._user_data_manager.Data;

            user_data.JobSelect.SetUserData(user_data);
            int skill_damage = 1;

            int calcATK_min = Convert.ToInt32(Math.Floor(user_data.JobSelect.GetMinATK() * skill_damage));
            int calcATK_max = Convert.ToInt32(Math.Floor(user_data.JobSelect.GetMaxATK() * skill_damage));

            string normal_atk = Convert.ToString(calcATK_min) + " ~ " + Convert.ToString(calcATK_max);

            _calc_user_dmamge_binding = new CalcUserDamageBinding("평타", normal_atk);
            foreach (UserSkill.UserSkillInfo info in user_data.User_Skill.GetActiveSkills())
            {
                if (info.Level == 0)
                {
                    continue;
                }
                //if ( info.Detail.HAS_DMG_EQUATION )
                SkillInfo skill = SkillWindow.SkillWindow._skill_db.Dic[info.Name];
                normal_atk = Convert.ToString(calcATK_min * skill.DAMAGE[info.Level]) + " ~ " + Convert.ToString(calcATK_max * skill.DAMAGE[info.Level]);
                _calc_user_dmamge_binding.AddDamageBinding(skill.NAME_KOR, normal_atk);
            }
            CalcUserDamage.ItemsSource = _calc_user_dmamge_binding;
        }
예제 #2
0
        void CalcDamage()
        {
            if (now_mob.Name == "")
            {
                return;
            }

            UserData user_data = MainWindow._user_data_manager.Data;

            user_data.JobSelect.SetUserData(user_data);
            int skill_damage = 1;

            int calcATK_min = Convert.ToInt32(Math.Floor(user_data.JobSelect.GetMinATK() * skill_damage));
            int calcATK_max = Convert.ToInt32(Math.Floor(user_data.JobSelect.GetMaxATK() * skill_damage));

            string normal_atk = Convert.ToString(calcATK_min) + " ~ " + Convert.ToString(calcATK_max);

            _calc_user_dmamge_binding  = new CalcUserDamageBinding("평타", normal_atk);
            CalcUserDamage.ItemsSource = _calc_user_dmamge_binding;
        }