少年修仙传客户端代码仓库
client_linchunjie
2018-11-15 9f172a7a19f81621352074350769204beaf8aa57
2354 【1.3】【BUG】潜力已解锁打开界面显示锁定
1个文件已修改
10 ■■■■■ 已修改文件
System/Treasure/TreasureModel.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasureModel.cs
@@ -317,6 +317,16 @@
        public bool GetPotentialUnlockShow(int _treasureId)
        {
            Treasure treasure;
            if (TryGetTreasure(_treasureId, out treasure))
            {
                var potential = treasure.GetPotentialByIndex(1);
                if (potential != null && IsPotentialUnlock(_treasureId, potential.id))
                {
                    SetPotentialUnlockShow(_treasureId);
                    return false;
                }
            }
            var _playerId = PlayerDatas.Instance.baseData.PlayerID;
            return LocalSave.GetBool(StringUtility.Contact(_playerId, "_PotentialUnlockShow_", _treasureId));
        }