|
@@ -77,24 +77,7 @@ namespace GFGGame
|
|
return GetFightTargetData();
|
|
return GetFightTargetData();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //获取副本机器人战斗数据
|
|
|
|
- public static FightData GetFightTargetData()
|
|
|
|
- {
|
|
|
|
|
|
|
|
- StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
|
|
- StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
|
- _targetData.name = fightCfg.targetName;
|
|
|
|
- _targetData.scoreType = InstanceZonesDataManager.currentScoreType; //本次战斗的主题
|
|
|
|
- _targetData.baseScore = fightCfg.targetBaseScore;
|
|
|
|
- _targetData.cardId = fightCfg.targetCardId;
|
|
|
|
- _targetData.cardScore = fightCfg.targetCardScore;
|
|
|
|
- _targetData.tags = fightCfg.needTagsArr;
|
|
|
|
- _targetData.skillLvs = new List<int>(fightCfg.targetSkillLvsArr);
|
|
|
|
- _targetData.itemScoreList = new List<int>(fightCfg.targetPartsScoreArr);
|
|
|
|
- _targetData.type = ArenaFightTargetType.ROBOT;
|
|
|
|
- _targetData.res = fightCfg.targetRes;
|
|
|
|
- return _targetData;
|
|
|
|
- }
|
|
|
|
//获取玩家战斗数据
|
|
//获取玩家战斗数据
|
|
private static FightData GetMyFightRoleData()
|
|
private static FightData GetMyFightRoleData()
|
|
{
|
|
{
|
|
@@ -103,7 +86,7 @@ namespace GFGGame
|
|
_roleData.scoreType = InstanceZonesDataManager.currentScoreType;
|
|
_roleData.scoreType = InstanceZonesDataManager.currentScoreType;
|
|
_roleData.baseScore = RoleLevelCfgArray.Instance.GetCfg(RoleDataManager.lvl).baseScore;
|
|
_roleData.baseScore = RoleLevelCfgArray.Instance.GetCfg(RoleDataManager.lvl).baseScore;
|
|
_roleData.cardId = InstanceZonesDataManager.currentCardId; ;//卡牌id
|
|
_roleData.cardId = InstanceZonesDataManager.currentCardId; ;//卡牌id
|
|
- _roleData.cardScore = _roleData.cardId == 0 ? 0 : CardDataManager.GetCardDataById(_roleData.cardId).scores[_roleData.scoreType];//卡牌对应主题的属性分数
|
|
|
|
|
|
+ _roleData.cardScore = _roleData.cardId <= 0 ? 0 : CardDataManager.GetCardDataById(_roleData.cardId).scores[_roleData.scoreType];//卡牌对应主题的属性分数
|
|
|
|
|
|
|
|
|
|
StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
@@ -127,6 +110,25 @@ namespace GFGGame
|
|
return _roleData;
|
|
return _roleData;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //获取副本机器人战斗数据
|
|
|
|
+ public static FightData GetFightTargetData()
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(InstanceZonesDataManager.currentLevelCfgId);
|
|
|
|
+ StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
|
+ _targetData.name = fightCfg.targetName;
|
|
|
|
+ _targetData.scoreType = InstanceZonesDataManager.currentScoreType; //本次战斗的主题
|
|
|
|
+ _targetData.baseScore = fightCfg.targetBaseScore;
|
|
|
|
+ _targetData.cardId = fightCfg.targetCardId;
|
|
|
|
+ _targetData.cardScore = fightCfg.targetCardScore;
|
|
|
|
+ _targetData.tags = fightCfg.needTagsArr;
|
|
|
|
+ _targetData.skillLvs = new List<int>(fightCfg.targetSkillLvsArr);
|
|
|
|
+ _targetData.itemScoreList = new List<int>(fightCfg.targetPartsScoreArr);
|
|
|
|
+ _targetData.type = ArenaFightTargetType.ROBOT;
|
|
|
|
+ _targetData.res = fightCfg.targetRes;
|
|
|
|
+ return _targetData;
|
|
|
|
+ }
|
|
|
|
+
|
|
//副本通关状态,key为CalculateHelper.GenerateInstanceZonesLevelStateKey,值为通到关卡编号
|
|
//副本通关状态,key为CalculateHelper.GenerateInstanceZonesLevelStateKey,值为通到关卡编号
|
|
private static Dictionary<int, int> _passLevelDic = new Dictionary<int, int>();
|
|
private static Dictionary<int, int> _passLevelDic = new Dictionary<int, int>();
|
|
|
|
|