0312 优化引导下的一键上阵; 修复引导导致物品掉落卡住主线战斗问题
| | |
| | | team.RemoveAllHeroes(); |
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == HeroUIManager.Instance.onekeyGuideID) |
| | | { |
| | | //第二个强制排在5号位 |
| | | if (guidList.Count > 1) |
| | | { |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[1]), 4, true); |
| | | guidList.RemoveAt(1); |
| | | } |
| | | |
| | | for (int i = 0; i < guidList.Count; i++) |
| | | { |
| | | int index = i; |
| | | if (i >= 4) |
| | | { |
| | | index = i + 1; |
| | | } |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[i]), index, true); |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[i]), HeroUIManager.Instance.onekeyGuidePosList[i] - 1, true); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | public int[] teamSortByJob; |
| | | public int onekeyGuideID; |
| | | public int onekeyGuideFirstPos; //一键上阵在引导下的最优先推荐位置 |
| | | public int[] onekeyGuidePosList; //一键上阵在引导下的顺序 |
| | | |
| | | public Action OnUnLockHeroCountEvent; |
| | | public int lockState |
| | |
| | | lockHeroCountLimit = JsonMapper.ToObject<int[][]>(config.Numerical1); |
| | | teamSortByJob = JsonMapper.ToObject<int[]>(config.Numerical2); |
| | | onekeyGuideID = int.Parse(config.Numerical3); |
| | | onekeyGuideFirstPos = int.Parse(config.Numerical4); |
| | | onekeyGuidePosList = JsonMapper.ToObject<int[]>(config.Numerical4); |
| | | |
| | | } |
| | | |
| | |
| | |
|
| | | public bool inGuiding
|
| | | {
|
| | | get { return currentGuide != 0; }
|
| | | // 当前有引导,并且不是暂停状态,则在引导中
|
| | | get { return currentGuide != 0 && IsPauseStoryBattleState(); }
|
| | | }
|
| | |
|
| | | List<int> allGuides = new List<int>();
|