少年修仙传客户端代码仓库
client_linchunjie
2018-12-21 9253333dcb14bb5191e702ccbc869cd9348a9c82
5367 【前端】【1.4】聚魂功能开发
1个文件已修改
17 ■■■■ 已修改文件
System/GatheringSoul/GatheringSoulModel.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GatheringSoul/GatheringSoulModel.cs
@@ -682,9 +682,22 @@
                    }
                    break;
                case ItemWinBtnType.Wear:
                    WindowCenter.Instance.Close<GatherSoulTipWin>();
                    if (ExistEmptyHole())
                    List<int> emptyHoles;
                    bool existEmptyHole = false;
                    if (ExistEmptyHole(out emptyHoles))
                    {
                        if (item.itemType == GATHERSOUL_CORE_TYPE && emptyHoles.Contains(coreHole))
                        {
                            existEmptyHole = true;
                        }
                        else if (item.itemType == GATHERSOUL_SOUL_TYPE)
                        {
                            existEmptyHole = emptyHoles.Count > 1 || emptyHoles[0] != coreHole;
                        }
                    }
                    if (existEmptyHole)
                    {
                        WindowCenter.Instance.Close<GatherSoulTipWin>();
                        ExecuteEquipSoul(item);
                    }
                    else