少年修仙传客户端代码仓库
lcy
2024-12-18 02b80999649c1263a4565464b5b178add4ae7739
10294 轮回殿支持一键领取指定轮回类型的所有可领取的任务奖励
2个文件已修改
24 ■■■■■ 已修改文件
System/LoopAct/CycleHall/CycleHallActModel.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/LoopAct/CycleHall/CycleHallMissionCell.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/LoopAct/CycleHall/CycleHallActModel.cs
@@ -220,6 +220,26 @@
            }
        }
        //领取该roundType类型所有可领取的奖励
        public void HaveAllMissionAward(int roundType)
        {
            var act = GetOperationInfo();
            if (act == null || !act.TryGetRound(roundType, out var round) || round.AwardList == null)
                return;
            if (playerInfoDict == null || !playerInfoDict.TryGetValue((byte)roundType, out var playerInfo) || playerInfo == null)
                return;
            for (int i = 0; i < round.AwardList.Length; i++)
            {
                var award = round.AwardList[i];
                int state = GetAwardState(roundType, award.AwardIndex);//0 不可领取 1 可领取  2 已领取
                if (state == 1)
                {
                    SendGetAward(roundType, (int)award.NeedValue);
                }
            }
        }
        public void UpdateRedpoint()
        {
            redPoint.state = RedPointState.None;
System/LoopAct/CycleHall/CycleHallMissionCell.cs
@@ -75,7 +75,7 @@
            {
                if (state == 1)
                {
                    HaveMissionAward();
                    model.HaveAllMissionAward(roundType);
                }
            });
            for (int i = 0; i < missionItemCells.Count; i++)
@@ -93,7 +93,7 @@
                    {
                        if (state == 1)
                        {
                            HaveMissionAward();
                            model.HaveAllMissionAward(roundType);
                        }
                        else
                        {