From b2d7bb59dc37c7b350786b076ee2f344b7c8911f Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期一, 11 八月 2025 17:26:47 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts --- Main/System/HappyXB/HappyXBModel.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Main/System/HappyXB/HappyXBModel.cs b/Main/System/HappyXB/HappyXBModel.cs index 9635842..f46f2f9 100644 --- a/Main/System/HappyXB/HappyXBModel.cs +++ b/Main/System/HappyXB/HappyXBModel.cs @@ -747,7 +747,7 @@ XBFuncSet funcSet = GetXBFuncSet(type); if (funcSet == null) return false; - int toolCnt = PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[0]); + int toolCnt = (int)PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[0]); if (toolCnt >= funcSet.costToolNums[0]) { return true; @@ -764,7 +764,7 @@ XBFuncSet funcSet = GetXBFuncSet(type); if (funcSet == null) return false; - toolCnt = PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[1]); + toolCnt = (int)PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[1]); needToolCnt = funcSet.costToolNums[1]; if (toolCnt > 0) { @@ -783,7 +783,7 @@ XBFuncSet funcSet = GetXBFuncSet(type); if (funcSet == null) return false; - toolCnt = PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[1]); + toolCnt = (int)PackManager.Instance.GetItemCountByID(PackType.Item, funcSet.costToolIds[1]); needToolCnt = funcSet.costToolNums[1]; if (toolCnt > 0) -- Gitblit v1.8.0