少年修仙传客户端代码仓库
QD-PangDeRong
2018-08-11 ba735336b03503c46c5f40a718c5c0ef186e3e7c
[1543]修复装备分解帅选条件没刷新
2个文件已修改
50 ■■■■ 已修改文件
System/KnapSack/Logic/EquipDevourWin.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/PlayerPackModels.cs 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/EquipDevourWin.cs
@@ -167,7 +167,8 @@
            if (type != PackType.rptItem || (type == PackType.rptItem && itemConfig.Type != 29 && itemConfig.EquipPlace <= 0)) return;
            devourModellist = playerPack.GetDevourModellist();
            playerPack.GetSelectDevourList();
            ItemModel itemModel = playerPack.GetItemModelByIndex(type,index);
            playerPack.RefreshGetNewItem(itemModel);
            gridCtrl.m_Scorller.RefreshActiveCellViews();
        }
@@ -217,7 +218,7 @@
            if (!isOpen)
            {
                lvlistObj.SetActive(false);
                playerPack.EquipDecomRedCtrl();
                playerPack.GetSelectDevourList();
                gridCtrl.m_Scorller.RefreshActiveCellViews();
            }
        }
@@ -236,7 +237,7 @@
            if (!isOpen)
            {
                colorlistObj.SetActive(false);
                playerPack.EquipDecomRedCtrl();
                playerPack.GetSelectDevourList();
                gridCtrl.m_Scorller.RefreshActiveCellViews();
            }
        }
@@ -245,7 +246,7 @@
        {
            if (!isOpen)
            {
                playerPack.EquipDecomRedCtrl();
                playerPack.GetSelectDevourList();
                gridCtrl.m_Scorller.RefreshActiveCellViews();
            }
        }
@@ -332,7 +333,7 @@
        {
            RefreshDecomposeAttr(true);
            devourModellist = playerPack.GetDevourModellist();
            playerPack.GetCanDevourModellist();
            playerPack.GetSelectDevourList();
            gridCtrl.m_Scorller.RefreshActiveCellViews();
            RefreshGeMatProgress();
            if (playerPack.getItems != null && playerPack.getItems.Length > 0)
System/KnapSack/Logic/PlayerPackModels.cs
@@ -1099,6 +1099,7 @@
                RefreshColorSelectAct(type);
            }
            SendEquipDevourRecordQuest();
            EquipDecomRedCtrl();
        }
        public void SetLvSelect(EquipLvType type)
@@ -1123,6 +1124,7 @@
                RefreshLvSelectAct(type);
            }
            SendEquipDevourRecordQuest();
            EquipDecomRedCtrl();
        }
       
        public void SetStarSelect(EquipStarType type)
@@ -1133,6 +1135,7 @@
                RefreshStarSelectAct(type);
            }
            SendEquipDevourRecordQuest();
            EquipDecomRedCtrl();
        }
        public List<int> devourPlacelist { get; private set; }
@@ -1279,11 +1282,20 @@
        public void GetSelectDevourList()
        {
            GetCanDevourModellist();
            for(int i = 0; i < canDevourModellist.Count; i++)
            selectDevourlist.Clear();
            selectDevourlist.AddRange(canDevourModellist);
        }
        public void RefreshGetNewItem(ItemModel model)
        {
            if (model == null) return;
            if(CheckIsReachDevourCondi(model))
            {
                if(!selectDevourlist.Contains(canDevourModellist[i]))
                selectDevourlist.Add(model);
                if (RefreshEquipDecomNumAct != null)
                {
                    selectDevourlist.Add(canDevourModellist[i]);
                    RefreshEquipDecomNumAct();
                }
            }
        }
@@ -1296,6 +1308,27 @@
                RefreshEquipDecomNumAct();
            }
        }
        public bool CheckIsReachDevourCondi(ItemModel model)
        {
            if (model.chinItemModel.Type == 29)
            {
                if (!defaultUnSelectlist.Contains(model.itemId))
                {
                    return true;
                }
                return false;
            }
            else
            {
                if (IsCanDevour(model))
                {
                    return true;
                }
            }
            return false;
        }
        
        public void RemoveSelectDevourModellist(ItemModel model)
        {