少年修仙传客户端代码仓库
Client_PangDeRong
2018-09-12 f94fa55d1f4515889824346d881d0744c960a2da
1495 修复合成点击出现无法合成问题
2个文件已修改
16 ■■■■■ 已修改文件
System/Compose/New/ComposeWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWinModel.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWin.cs
@@ -43,6 +43,8 @@
            get { return _composeModel ?? (_composeModel = ModelCenter.Instance.GetModel<ComposeWinModel>()); }
        }
        SelectEquipModel selectModel { get { return ModelCenter.Instance.GetModel<SelectEquipModel>(); } }
        #region Built-in
        protected override void BindController()
        {
@@ -121,6 +123,7 @@
        protected override void OnPreClose()
        {
            selectModel.ClearSelectModel();
        }
        protected override void OnAfterClose()
System/Compose/New/ComposeWinModel.cs
@@ -201,6 +201,7 @@
    /// </summary>
    private byte[] fixedIndexArray = null;
    private byte[] addonsReduceArray = null;
    private byte[] unfixedIndexArray = null;
    Dictionary<int, Dictionary<int, int>> fixedMatIsBindDict = new Dictionary<int, Dictionary<int, int>>();  //id , isBind, count
    Dictionary<int, Dictionary<int, int>> unfixedMatIsBindDict = new Dictionary<int, Dictionary<int, int>>();
@@ -273,7 +274,15 @@
            }
        }
        byte[] unfixedIndexArray = DictToArray(selectModel.GetHaveUnfixedSelectItem());
        if(compoundModel.unfixedItemCount > 0)
        {
            DictToArray(selectModel.GetHaveUnfixedSelectItem());
        }
        else
        {
            unfixedIndexArray = null;
        }
        if (unfixedIndexArray != null)
        {
            for (i = 0; i < unfixedIndexArray.Length; i++)
@@ -592,6 +601,8 @@
    private void SetMatIsBindDict(ItemModel itemModel,Dictionary<int, Dictionary<int, int>> matDict)
    {
        if (itemModel == null) return;
        if (!matDict.ContainsKey(itemModel.itemId))
        {
            Dictionary<int, int> bindDict = new Dictionary<int, int>();