少年修仙传客户端代码仓库
0312 灵石商城去除倒计时显示,个人BOSS等级限制不显示首次击杀不扣次数
3个文件已修改
22 ■■■■ 已修改文件
System/FindPrecious/PersonalBossBriefInfoBehaviour.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/PersonalBossModel.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Store/StoreWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FindPrecious/PersonalBossBriefInfoBehaviour.cs
@@ -27,14 +27,14 @@
        }
        protected override bool isUnLocked
        {
            get { return findPreciousModel.IsBossUnlock(bossId) && IsPlayerLevelEnough(bossId); }
            get { return findPreciousModel.IsBossUnlock(bossId) && model.IsPlayerLevelEnough(bossId); }
        }
        protected override InteractorableState interactorableState {
            get {
                var selected = selectedBossId == bossId;
                var dieOrLocked = !findPreciousModel.IsBossUnlock(bossId) || ! IsPlayerLevelEnough(bossId);
                var dieOrLocked = !findPreciousModel.IsBossUnlock(bossId) || ! model.IsPlayerLevelEnough(bossId);
                if (!dieOrLocked)
                {
@@ -87,12 +87,6 @@
        }
        public bool IsPlayerLevelEnough(int bossId)
        {
            var config = NPCConfig.Get(bossId);
            return PlayerDatas.Instance.baseData.LV >= config.NPCLV;
        }
        public override void Dispose()
        {
System/FindPrecious/PersonalBossModel.cs
@@ -201,9 +201,15 @@
            ClientDungeonStageUtility.GotoNormalClientDungeon(PERSONALBOSS_MAPID, PERSONALBOSS_MAPID, config.lineId);
        }
        public bool IsPlayerLevelEnough(int bossId)
        {
            var config = NPCConfig.Get(bossId);
            return PlayerDatas.Instance.baseData.LV >= config.NPCLV;
        }
        public bool IsFreeTime(int bossID)
        {
            if (!findPreciousModel.IsBossUnlock(bossID)) return false;
            if (!(findPreciousModel.IsBossUnlock(bossID) && IsPlayerLevelEnough(bossID))) return false;
            var config = PersonalBossConfig.Get(bossID);
            DungeonRecord dungeonRecord;
System/Store/StoreWin.cs
@@ -185,7 +185,7 @@
                }
                var refreshType = commodities[0].storeConfig.RefreshType;
                if (model.storeFuncType == StoreFunc.IntegralStore) refreshType = 7;
                if (model.storeFuncType == StoreFunc.IntegralStore) refreshType = 0;
                if (refreshType == 0)
                {
@@ -227,7 +227,7 @@
            var shopType = commodities[0].storeConfig.ShopType;
            var RefreshType = commodities[0].storeConfig.RefreshType;
            if (model.storeFuncType == StoreFunc.IntegralStore) RefreshType = 7;
            if (model.storeFuncType == StoreFunc.IntegralStore) RefreshType = 0;
            this.m_RefreshContainer.gameObject.SetActive(RefreshType != 0);
            //if (model.showCoinsUIDict != null && model.showCoinsUIDict.ContainsKey(shopType))
            //{