少年修仙传客户端代码仓库
client_linchunjie
2018-12-24 556d6b55bb1c715735b8a9707b6367eb5d81184d
5367 【前端】【1.4】聚魂功能开发(聚魂替换规则修改)
2个文件已修改
25 ■■■■■ 已修改文件
System/GatheringSoul/GatherSoulItemBehaviour.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatheringSoulModel.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatherSoulItemBehaviour.cs
@@ -223,11 +223,15 @@
                        {
                            data.SetTipsFuncBtn(ItemWinBtnType.compose, OnTipFunc);
                        }
                        if (soulModel.IsSamePropertyCompareHoles(-1, item as GatherSoulItem) == -1)
                        bool existSamePropertyHole = soulModel.IsSamePropertyCompareHoles(-1, item as GatherSoulItem) != -1;
                        if (!existSamePropertyHole)
                        {
                            data.SetTipsFuncBtn(ItemWinBtnType.Wear, OnTipFunc);
                        }
                        else
                        GatherSoulItem holeItem;
                        if (existSamePropertyHole ||
                            (item.itemType == GatheringSoulModel.GATHERSOUL_CORE_TYPE
                            && soulModel.TryGetItem(soulModel.coreHole, out holeItem)))
                        {
                            data.SetTipsFuncBtn(ItemWinBtnType.Replace, OnTipFunc);
                        }
System/GatheringSoul/GatheringSoulModel.cs
@@ -863,6 +863,23 @@
                    SendEquipPack((int)PackType.rptGatherSoul, item.index, (int)PackType.rptInterimPack, tryEquipHole);
                }
            }
            if (item.itemType == GATHERSOUL_CORE_TYPE)
            {
                GatherSoulItem holeItem;
                if (TryGetItem(coreHole, out holeItem))
                {
                    var sameHole = -1;
                    if (gatherSoulPropertys[item.id].Count > gatherSoulPropertys[holeItem.id].Count)
                    {
                        sameHole = IsSamePropertyCompareHoles(coreHole, item);
                    }
                    if (sameHole != -1)
                    {
                        SendEquipPack((int)PackType.rptInterimPack, sameHole, (int)PackType.rptGatherSoul, 0);
                    }
                    SendEquipPack((int)PackType.rptGatherSoul, item.index, (int)PackType.rptInterimPack, tryEquipHole);
                }
            }
        }
        public void ExecutePutOffSoul(GatherSoulItem item)