| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public static ItemCompoundConfig GetItemCompoundByType(int firstType,int secondType, int thirdType)
|
| | | {
|
| | | if(allComposeModelDict.ContainsKey(firstType))
|
| | | {
|
| | | if(allComposeModelDict[firstType].ContainsKey(secondType))
|
| | | {
|
| | | if(allComposeModelDict[firstType][secondType].ContainsKey(thirdType))
|
| | | {
|
| | | return allComposeModelDict[firstType][secondType][thirdType][0];
|
| | | }
|
| | | }
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | | public static bool TryGetTicketCompose(int _ticketId, out List<ItemCompoundConfig> list)
|
| | | {
|
| | | return ticketComposeDict.TryGetValue(_ticketId, out list);
|
| | |
| | |
|
| | | int[] composeCondi = itemConfig.JumpComposeCondi;
|
| | | if (composeCondi.Length < 3) return false;
|
| | | ItemCompoundConfig itemCompound = GetThirdTypeModellist(composeCondi[0],composeCondi[1],composeCondi[2])[0];
|
| | | ItemCompoundConfig itemCompound = ItemCompoundConfig.GetItemCompoundByType(composeCondi[0], composeCondi[1], composeCondi[2]);
|
| | | if(itemCompound != null)
|
| | | {
|
| | | if(itemCompound.levelNeed <= PlayerDatas.Instance.baseData.LV)
|
| | | {
|
| | | switch (itemCompound.firstType)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool CheckIsComposeByType(int firstType,int secondType,int thirdType)
|
| | | {
|
| | | ItemCompoundConfig itemCompound = GetThirdTypeModellist(firstType,secondType,thirdType)[0];
|