| | |
| | | fightPowerVariables.Clear(); |
| | | fightPowerVariables[PLAYER_LV] = PlayerDatas.Instance.baseData.LV; |
| | | fightPowerVariables[OFFICIAL_LV] = PlayerDatas.Instance.baseData.realmLevel; |
| | | fightPowerVariables[SKILL_POWER] = SkillConfig.Get(item.Key + item.Value - 1).FightPower; |
| | | if (item.Value == 0) |
| | | { |
| | | continue; |
| | | } |
| | | var skill = SkillConfig.Get(item.Key + item.Value - 1); |
| | | if (skill == null) |
| | | { |
| | | Debug.LogError("skill is null" + (item.Key + item.Value - 1)); |
| | | continue; |
| | | } |
| | | fightPowerVariables[SKILL_POWER] = skill.FightPower; |
| | | skillPower += (long)FightPowerFormula.GetSkillsFightPower(fightPowerVariables); |
| | | } |
| | | |