|
@@ -37,20 +37,33 @@ namespace GFGGame
|
|
|
{
|
|
|
roleData.pardScoreListDic.Clear();
|
|
|
roleData.pardListDic.Clear();
|
|
|
+ FightScoreCfg[] typeCfgs = FightScoreCfgArray.Instance.dataArray;
|
|
|
+ for (int j = 0; j < typeCfgs.Length; j++)
|
|
|
+ {
|
|
|
+ FightScoreCfg cfg = typeCfgs[j];
|
|
|
+ if (roleData.pardScoreListDic.ContainsKey(cfg.id) == false)
|
|
|
+ {
|
|
|
+ roleData.pardScoreListDic.Add(cfg.id, new List<int>());
|
|
|
+ }
|
|
|
+ if (roleData.pardListDic.ContainsKey(cfg.id) == false)
|
|
|
+ {
|
|
|
+ roleData.pardListDic.Add(cfg.id, new List<int>());
|
|
|
+ }
|
|
|
+ }
|
|
|
for (int i = 0; i < roleData.itemList.Count; i++)
|
|
|
{
|
|
|
- FightScoreCfg[] typeCfgs = FightScoreCfgArray.Instance.dataArray;
|
|
|
+ // FightScoreCfg[] typeCfgs = FightScoreCfgArray.Instance.dataArray;
|
|
|
for (int j = 0; j < typeCfgs.Length; j++)
|
|
|
{
|
|
|
FightScoreCfg cfg = typeCfgs[j];
|
|
|
- if (roleData.pardScoreListDic.ContainsKey(cfg.id) == false)
|
|
|
- {
|
|
|
- roleData.pardScoreListDic.Add(cfg.id, new List<int>());
|
|
|
- }
|
|
|
- if (roleData.pardListDic.ContainsKey(cfg.id) == false)
|
|
|
- {
|
|
|
- roleData.pardListDic.Add(cfg.id, new List<int>());
|
|
|
- }
|
|
|
+ // if (roleData.pardScoreListDic.ContainsKey(cfg.id) == false)
|
|
|
+ // {
|
|
|
+ // roleData.pardScoreListDic.Add(cfg.id, new List<int>());
|
|
|
+ // }
|
|
|
+ // if (roleData.pardListDic.ContainsKey(cfg.id) == false)
|
|
|
+ // {
|
|
|
+ // roleData.pardListDic.Add(cfg.id, new List<int>());
|
|
|
+ // }
|
|
|
|
|
|
bool isCheckFinish = false;
|
|
|
for (int k = 0; k < cfg.subTypesArr.Length; k++)
|
|
@@ -132,6 +145,7 @@ namespace GFGGame
|
|
|
double clickScore = (partBaseScore + (roleScore + cardScore) * clickCoefficient) * ConstScoreSystem.CLICK_SCORE;
|
|
|
|
|
|
int score = (int)Math.Ceiling(partScore + clickScore + skillScore);
|
|
|
+ Debug.Log("clickScore:" + clickScore + " score:" + score);
|
|
|
return Math.Max(0, score);
|
|
|
}
|
|
|
|
|
@@ -159,7 +173,7 @@ namespace GFGGame
|
|
|
/// </summary>
|
|
|
/// <param name="partId">评分部位</param>
|
|
|
/// <returns></returns>
|
|
|
- private double GetPartBaseScore(FightData roleData, int partId)
|
|
|
+ public double GetPartBaseScore(FightData roleData, int partId)
|
|
|
{
|
|
|
double partScore = 0;
|
|
|
double tagScore = 0;
|