| | |
| | | }
|
| | | 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
|