少年修仙传客户端代码仓库
hch
2020-04-01 0afb7d66e9f577a1a01db854d721e64191fa742f
4683 【主干】个人boss有免费次数时打开优先优化
1个文件已修改
19 ■■■■■ 已修改文件
System/FindPrecious/PersonalBossModel.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/PersonalBossModel.cs
@@ -96,9 +96,28 @@
        public int GetRecommendBoss()
        {
            for (int i = 0; i < sortedBossIds.Count; i++)
            {
                var bossId = sortedBossIds[i];
                if (!findPreciousModel.IsBossUnlock(bossId))
                {
                    continue;
                }
                if (IsFreeTime(bossId))
                {
                    return bossId;
                }
            }
            for (int i = sortedBossIds.Count - 1; i >= 0; i--)
            {
                var bossId = sortedBossIds[i];
                if (IsFreeTime(bossId))
                {
                    return bossId;
                }
                if (findPreciousModel.IsBossUnlock(bossId)
                    && findPreciousModel.IsPlayerLevelLargerOrBiggerThanBoss(bossId))
                {