public int CalcReverseATK(int sATK) { double status_atk = StatusATK.GetStatusATK(attack_type, User.User_Data); double equipATK = (sATK - User.MasteryATK() - status_atk) / User.PercentATK() - User.WeaponATK() - StatusATK.GetStatusBonusATK(attack_type, User); return(Convert.ToInt32(Math.Floor(equipATK))); }
public void CalcUserData(bool _new_edit = true) { UserItem CalcUserItem = new UserItem(true); //직업별 추가 능력치 CalcUserItem += Data.User_Skill.GetOption(); //Stack Options CalcUserItem += Data.Monster_Research.GetOption(); CalcUserItem += Data.Dress_Style.GetOption(); CalcUserItem += Data.Sticker.GetOption(); CalcUserItem += Data.Medal.GetOption(); CalcUserItem += Data.Riding_ability.GetOption(); CalcUserItem += Data.Riding_personality.GetOption(); //소모품 버프 CalcUserItem += Data.User_ConBuff.GetOption(); //장비 옵션 CalcUserItem += Data.Equip.GetOption(); //스텟 옵션 CalcUserItem.Option_ITYPE[Enum.GetName(typeof(ITYPE), ITYPE.STATUS_ATK)] = StatusATK.GetStatusATK(ATTACK_TYPE.MELEE_TYPE, Data); Data.Status.SetAddStatus(_dic_user_data[SavePointNumber].User_Item); //조건부 옵션 계산 Data.User_Item.CalcIftypeValues(Data); Data.User_Item = CalcUserItem; itemDataChanged?.Invoke(); _user_data_edited = _new_edit; }
protected virtual double TotalATK(double total_equip_atk_inc) { return(StatusATK.GetStatusATK(attack_type, User.User_Data) * 2 + GetMasteryATK() + total_equip_atk_inc); }