0312 优化引导下的一键上阵; 修复引导导致物品掉落卡住主线战斗问题
4个文件已修改
21 ■■■■ 已修改文件
Main/System/HeroUI/HeroPosWin.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.OnTeam.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/NewBieGuidance/NewBieCenter.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroPosWin.cs
@@ -474,21 +474,9 @@
        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);
            }
        }
Main/System/HeroUI/HeroUIManager.OnTeam.cs
@@ -384,7 +384,7 @@
    public int[] teamSortByJob;
    public int onekeyGuideID;
    public int onekeyGuideFirstPos; //一键上阵在引导下的最优先推荐位置
    public int[] onekeyGuidePosList; //一键上阵在引导下的顺序
    public Action OnUnLockHeroCountEvent;
    public int lockState
Main/System/HeroUI/HeroUIManager.cs
@@ -71,7 +71,7 @@
        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);
        
    }
Main/System/NewBieGuidance/NewBieCenter.cs
@@ -24,7 +24,8 @@
    public bool inGuiding
    {
        get { return currentGuide != 0; }
        // 当前有引导,并且不是暂停状态,则在引导中
        get { return currentGuide != 0 && IsPauseStoryBattleState(); }
    }
    List<int> allGuides = new List<int>();