| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public bool CheckIsEmptyGrid(int[] checkPackList, int needGrid = 1)
|
| | | {
|
| | | if (checkPackList.IsNullOrEmpty())
|
| | | return true;
|
| | | for (int i = 0; i < checkPackList.Length; i++)
|
| | | {
|
| | | if (!CheckIsEmptyGrid((PackType)checkPackList[i], needGrid))
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | public bool CheckIsEmptyGrid(PackType type, int needGrid = 1)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | var funcSet = TreasureSetConfig.Get(xbType);
|
| | | if (CheckIsEmptyGrid((PackType)config.PackType))
|
| | | if (CheckIsEmptyGrid(config.CheckPackList))
|
| | | {
|
| | | //道具寻宝
|
| | | if (funcSet.CostItemID != 0 && IsHaveOneXBTool(xbType))
|
| | |
| | | }
|
| | |
|
| | | var funcSet = TreasureSetConfig.Get(xbType);
|
| | | if (CheckIsEmptyGrid((PackType)config.PackType, 10))
|
| | | if (CheckIsEmptyGrid(config.CheckPackList, 10))
|
| | | {
|
| | | int toolCnt = 0;
|
| | | int needToolCnt = 0;
|