From e2e187e1ec82f4fe2979883318fc59278c05bca3 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 26 二月 2026 19:55:15 +0800
Subject: [PATCH] 492 武将登场-客户端 废弃寻宝设定表PackType字段,适配CheckPackList字段
---
Main/System/HappyXB/HappyXBModel.cs | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs
index 6f63a4f..2b769ec 100644
--- a/Main/System/HappyXB/HappyXBModel.cs
+++ b/Main/System/HappyXB/HappyXBModel.cs
@@ -331,7 +331,19 @@
}
}
-
+ 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)
{
@@ -374,7 +386,7 @@
}
var funcSet = TreasureSetConfig.Get(xbType);
- if (CheckIsEmptyGrid((PackType)config.PackType))
+ if (CheckIsEmptyGrid(config.CheckPackList))
{
//閬撳叿瀵诲疂
if (funcSet.CostItemID != 0 && IsHaveOneXBTool(xbType))
@@ -429,7 +441,7 @@
}
var funcSet = TreasureSetConfig.Get(xbType);
- if (CheckIsEmptyGrid((PackType)config.PackType, 10))
+ if (CheckIsEmptyGrid(config.CheckPackList, 10))
{
int toolCnt = 0;
int needToolCnt = 0;
--
Gitblit v1.8.0