少年修仙传客户端代码仓库
client_linchunjie
2018-12-24 973c739934e43200563e7786ec3f04d61efcdafd
5367 【前端】【1.4】聚魂功能开发
1个文件已修改
19 ■■■■■ 已修改文件
System/GatheringSoul/GatherSoulItemBehaviour.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulItemBehaviour.cs
@@ -224,16 +224,19 @@
                            data.SetTipsFuncBtn(ItemWinBtnType.compose, OnTipFunc);
                        }
                        bool existSamePropertyHole = soulModel.IsSamePropertyCompareHoles(-1, item as GatherSoulItem) != -1;
                        if (!existSamePropertyHole)
                        {
                            data.SetTipsFuncBtn(ItemWinBtnType.Wear, OnTipFunc);
                        }
                        bool existCoreHoleItem = false;
                        GatherSoulItem holeItem;
                        if (existSamePropertyHole ||
                            (item.itemType == GatheringSoulModel.GATHERSOUL_CORE_TYPE
                            && soulModel.TryGetItem(soulModel.coreHole, out holeItem)))
                        if (soulModel.TryGetItem(soulModel.coreHole, out holeItem))
                        {
                            data.SetTipsFuncBtn(ItemWinBtnType.Replace, OnTipFunc);
                            existCoreHoleItem = true;
                        }
                        if (item.itemType == GatheringSoulModel.GATHERSOUL_CORE_TYPE)
                        {
                            data.SetTipsFuncBtn(existCoreHoleItem ? ItemWinBtnType.Replace : ItemWinBtnType.Wear, OnTipFunc);
                        }
                        else
                        {
                            data.SetTipsFuncBtn(existSamePropertyHole ? ItemWinBtnType.Replace : ItemWinBtnType.Wear, OnTipFunc);
                        }
                    }
                    itemTipsModel.SetItemTipsModel(data);