hch
3 天以前 971b6812339799e67b18cc10c3e910b1867daeec
0312 购买月卡开启3倍数;特权卡可直接跳过
1个文件已修改
34 ■■■■■ 已修改文件
Main/System/Battle/BaseBattleWin.cs 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BaseBattleWin.cs
@@ -241,12 +241,15 @@
            // 如果战场类型不在 FieldNameToIndex 中,使用默认配置
        }
        int nowRound = battleField.round;
        int realPassRound = passRound + 1;  // 配置是超过x回合可以跳,意味着x+1回合可以跳
        if (nowRound < realPassRound)
        if (passRound != 0)
        {
            SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound);
            return;
            int nowRound = battleField.round;
            int realPassRound = passRound + 1;  // 配置是超过x回合可以跳,意味着x+1回合可以跳
            if (nowRound < realPassRound)
            {
                SysNotifyMgr.Instance.ShowTip("BattlePass", realPassRound - nowRound);
                return;
            }
        }
        battleField.ForceFinish();
    }
@@ -261,15 +264,24 @@
    {
        if (null == battleField)
            return;
        // 计算下一个速度档位的索引
        int nextSpeedIndex = (BattleManager.Instance.speedIndex + 1) % BattleManager.Instance.speedGear.Length;
        // 检查下一档倍速功能是否开启
        int nextSpeedFuncId = BattleManager.Instance.speedIndexfuncIdArr[nextSpeedIndex];
        bool isOpen = FuncOpen.Instance.IsFuncOpen(nextSpeedFuncId);
        if (!isOpen && FuncOpenLVConfig.HasKey(nextSpeedFuncId))
        bool isOpen = false;
        if (InvestModel.Instance.IsActiveFightSpeed(3))
        {
            var config = FuncOpenLVConfig.Get(nextSpeedFuncId);
            SysNotifyMgr.Instance.ShowTip("BattleSpeedTip", TaskManager.Instance.GetNeedFinishTaskCount(config.LimitMissionID), nextSpeedIndex + 1);
            isOpen = true;
        }
        else
        {
            // 检查下一档倍速功能是否开启
            int nextSpeedFuncId = BattleManager.Instance.speedIndexfuncIdArr[nextSpeedIndex];
            isOpen = FuncOpen.Instance.IsFuncOpen(nextSpeedFuncId);
            if (!isOpen && FuncOpenLVConfig.HasKey(nextSpeedFuncId))
            {
                var config = FuncOpenLVConfig.Get(nextSpeedFuncId);
                SysNotifyMgr.Instance.ShowTip("BattleSpeedTip", TaskManager.Instance.GetNeedFinishTaskCount(config.LimitMissionID), nextSpeedIndex + 1);
            }
        }
        BattleManager.Instance.speedIndex = !isOpen ? 0 : nextSpeedIndex;
        battleField.SetSpeedRatio(BattleManager.Instance.speedGear[BattleManager.Instance.speedIndex]);