|
@@ -77,7 +77,7 @@ namespace GFGGame
|
|
StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_AUTO_PLAY, _autoPlay == true ? 1 : 0).Coroutine();
|
|
StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_AUTO_PLAY, _autoPlay == true ? 1 : 0).Coroutine();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public int maxFightSpeed = 2;
|
|
|
|
|
|
+ public int maxFightSpeed = 4;
|
|
private int _fightSpeed = 1;
|
|
private int _fightSpeed = 1;
|
|
public int fightSpeed
|
|
public int fightSpeed
|
|
{
|
|
{
|
|
@@ -257,7 +257,7 @@ namespace GFGGame
|
|
List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(cardId);
|
|
List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(cardId);
|
|
for (int j = 0; j < skillCfgs.Count; j++)
|
|
for (int j = 0; j < skillCfgs.Count; j++)
|
|
{
|
|
{
|
|
- // ET.Log.Debug("cardId:" + cardId + " skillLvs:" + skillLvs.Count + " skillCfgs:" + skillCfgs.Count + " index:" + j);
|
|
|
|
|
|
+ if (skillLvs.Count == 0) continue;
|
|
PassivitySkillLvlCfg skillLvlCfg = PassivitySkillLvlCfgArray.Instance.GetCfgByskilllvlAndskillId(skillLvs[j], skillCfgs[j].skillId);
|
|
PassivitySkillLvlCfg skillLvlCfg = PassivitySkillLvlCfgArray.Instance.GetCfgByskilllvlAndskillId(skillLvs[j], skillCfgs[j].skillId);
|
|
if (skillLvlCfg == null) continue;
|
|
if (skillLvlCfg == null) continue;
|
|
skillScore += skillBaseScore * skillLvlCfg.fightPowerParam / 10000;
|
|
skillScore += skillBaseScore * skillLvlCfg.fightPowerParam / 10000;
|
|
@@ -313,15 +313,12 @@ 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++;
|
|
-
|
|
|
|
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)
|
|
{
|
|
{
|
|
@@ -331,17 +328,15 @@ 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);
|
|
|
|
|
|
+ // 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);
|
|
Debug.Log(" targetScore666:" + targetScore);
|
|
_score = Mathf.CeilToInt((float)score);
|
|
_score = Mathf.CeilToInt((float)score);
|
|
@@ -353,8 +348,7 @@ 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;
|
|
|
|
|