5367 【前端】【1.4】聚魂功能开发(聚魂替换规则修改)
| | |
| | | {
|
| | | 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);
|
| | | }
|
| | |
| | | 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)
|