| | |
| | |
|
| | | int[] composeCondi = itemConfig.JumpComposeCondi;
|
| | | if (composeCondi.Length < 3) return false;
|
| | | ItemCompoundConfig itemCompound = GetThirdTypeModellist(composeCondi[0],composeCondi[1],composeCondi[2])[0];
|
| | | if(itemCompound.levelNeed <= PlayerDatas.Instance.baseData.LV)
|
| | | ItemCompoundConfig itemCompound = ItemCompoundConfig.GetItemCompoundByType(composeCondi[0], composeCondi[1], composeCondi[2]);
|
| | | if(itemCompound != null)
|
| | | {
|
| | | switch (itemCompound.firstType)
|
| | | if (itemCompound.levelNeed <= PlayerDatas.Instance.baseData.LV)
|
| | | {
|
| | | case 1:
|
| | | jumpId = (int)JumpUIType.ComposeFunc1;
|
| | | break;
|
| | | case 2:
|
| | | jumpId = (int)JumpUIType.ComposeFunc2;
|
| | | break;
|
| | | case 3:
|
| | | jumpId = (int)JumpUIType.ComposeFunc3;
|
| | | break;
|
| | | case 4:
|
| | | jumpId = (int)JumpUIType.ComposeFunc4;
|
| | | break;
|
| | | case 5:
|
| | | jumpId = (int)JumpUIType.ComposeFunc5;
|
| | | break;
|
| | | }
|
| | | this.secondType = itemCompound.secondType;
|
| | | switch (itemCompound.firstType)
|
| | | {
|
| | | case 1:
|
| | | jumpId = (int)JumpUIType.ComposeFunc1;
|
| | | break;
|
| | | case 2:
|
| | | jumpId = (int)JumpUIType.ComposeFunc2;
|
| | | break;
|
| | | case 3:
|
| | | jumpId = (int)JumpUIType.ComposeFunc3;
|
| | | break;
|
| | | case 4:
|
| | | jumpId = (int)JumpUIType.ComposeFunc4;
|
| | | break;
|
| | | case 5:
|
| | | jumpId = (int)JumpUIType.ComposeFunc5;
|
| | | break;
|
| | | }
|
| | | this.secondType = itemCompound.secondType;
|
| | |
|
| | | if(itemCompound.firstType == 5 && itemCompound.secondType == 3)
|
| | | {
|
| | | this.thirdType = PlayerDatas.Instance.baseData.Job;
|
| | | if (itemCompound.firstType == 5 && itemCompound.secondType == 3)
|
| | | {
|
| | | this.thirdType = PlayerDatas.Instance.baseData.Job;
|
| | | }
|
| | | else
|
| | | {
|
| | | this.thirdType = itemCompound.thirdType;
|
| | | }
|
| | | return true;
|
| | | }
|
| | | else
|
| | | {
|
| | | this.thirdType = itemCompound.thirdType;
|
| | | SysNotifyMgr.Instance.ShowTip("TicketComposeUnlock", itemCompound.levelNeed, itemCompound.secondTypeName);
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("TicketComposeUnlock", itemCompound.levelNeed, itemCompound.secondTypeName);
|
| | | return false;
|
| | | }
|
| | |
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool CheckIsComposeByType(int firstType,int secondType,int thirdType)
|