|
@@ -313,7 +313,7 @@ namespace GFGGame
|
|
int currentTime = BeginTime.PART_ALL_FIGHT_BEGIN;
|
|
int currentTime = BeginTime.PART_ALL_FIGHT_BEGIN;
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
-
|
|
|
|
|
|
+ Debug.Log(" targetScore000:" + targetScore);
|
|
for (int i = 0; i < FightScoreCfgArray.Instance.dataArray.Length; i++)
|
|
for (int i = 0; i < FightScoreCfgArray.Instance.dataArray.Length; i++)
|
|
{
|
|
{
|
|
partId++;
|
|
partId++;
|
|
@@ -321,6 +321,7 @@ namespace GFGGame
|
|
currentTime = BeginTime.PART_FIGHT_BEGIN;
|
|
currentTime = BeginTime.PART_FIGHT_BEGIN;
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
|
|
+ // Debug.Log(" targetScore111:" + targetScore);
|
|
score += ScoreSystemData.Instance.GetPartScore(myRoleData, partId, ClickType.PREFACT_CLICK, 0);
|
|
score += ScoreSystemData.Instance.GetPartScore(myRoleData, partId, ClickType.PREFACT_CLICK, 0);
|
|
if (targetRoleData.type == FightTargetType.PLAYER)
|
|
if (targetRoleData.type == FightTargetType.PLAYER)
|
|
{
|
|
{
|
|
@@ -330,16 +331,19 @@ namespace GFGGame
|
|
{
|
|
{
|
|
targetScore += ScoreSystemData.Instance.GetRobotPartScore(targetRoleData, partId, ClickType.PREFACT_CLICK, 0);
|
|
targetScore += ScoreSystemData.Instance.GetRobotPartScore(targetRoleData, partId, ClickType.PREFACT_CLICK, 0);
|
|
}
|
|
}
|
|
|
|
+ // Debug.Log(" targetScore222:" + targetScore);
|
|
currentTime = BeginTime.PART_PREFACT_CLICK;
|
|
currentTime = BeginTime.PART_PREFACT_CLICK;
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
currentTime = BeginTime.PART_FIGHT_END;
|
|
currentTime = BeginTime.PART_FIGHT_END;
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.MINE, roundIndex, currentTime, partId, mainScore, cardId, skillLvs, roundTime, ref score, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
GetSkillScore(FightRoleType.TAEGET, roundIndex, currentTime, partId, targetMainScore, targetCardId, targetSkillLvs, targetRoundTime, ref targetScore, mainScore, cardId, skillLvs, roundTime, ref score);
|
|
-
|
|
|
|
|
|
+ Debug.Log(" targetScore444:" + targetScore);
|
|
}
|
|
}
|
|
score += ScoreSystemData.Instance.GetAllCircleAddScore(mainScore);
|
|
score += ScoreSystemData.Instance.GetAllCircleAddScore(mainScore);
|
|
|
|
+ // Debug.Log(" targetScore555:" + targetScore);
|
|
targetScore += ScoreSystemData.Instance.GetAllCircleAddScore(targetMainScore);
|
|
targetScore += ScoreSystemData.Instance.GetAllCircleAddScore(targetMainScore);
|
|
|
|
+ Debug.Log(" targetScore666:" + targetScore);
|
|
_score = Mathf.CeilToInt((float)score);
|
|
_score = Mathf.CeilToInt((float)score);
|
|
_targetScore = Mathf.CeilToInt((float)targetScore);
|
|
_targetScore = Mathf.CeilToInt((float)targetScore);
|
|
|
|
|
|
@@ -349,7 +353,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
List<PassivitySkillLvlCfg> vaildSkills = ScoreSystemData.Instance.GetValidSkills(currentTime, partId, cardId, skillLvs, targetCardId, targetSkillLvs, roundTime, targetRoundTime);
|
|
List<PassivitySkillLvlCfg> vaildSkills = ScoreSystemData.Instance.GetValidSkills(currentTime, partId, cardId, skillLvs, targetCardId, targetSkillLvs, roundTime, targetRoundTime);
|
|
ScoreSystemData.Instance.GetPartItemSkillScore(vaildSkills, mainScore, targetMainScore, out int skillScore, out int targetSkillScore, out Dictionary<int, int> skillScoreDic);
|
|
ScoreSystemData.Instance.GetPartItemSkillScore(vaildSkills, mainScore, targetMainScore, out int skillScore, out int targetSkillScore, out Dictionary<int, int> skillScoreDic);
|
|
-
|
|
|
|
|
|
+ Debug.Log(" skillScore:" + skillScore);
|
|
|
|
+ Debug.Log(" targetSkillScore:" + targetSkillScore);
|
|
score += skillScore;
|
|
score += skillScore;
|
|
targetScore += targetSkillScore;
|
|
targetScore += targetSkillScore;
|
|
|
|
|