From 06da72770c641fabf980816ed466a2280dac2be7 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 05 八月 2025 19:25:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/KnapSack/Logic/PackGirdCell.cs |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/Main/System/KnapSack/Logic/PackGirdCell.cs b/Main/System/KnapSack/Logic/PackGirdCell.cs
index d61fc3e..0ceae9e 100644
--- a/Main/System/KnapSack/Logic/PackGirdCell.cs
+++ b/Main/System/KnapSack/Logic/PackGirdCell.cs
@@ -13,7 +13,19 @@
         var guid = PackManager.Instance.GetSinglePack(PackType.Item).itemGuidList[index];
         if (string.IsNullOrEmpty(guid))
             return;
-        itemCell.Init(PackManager.Instance.GetItemByGuid(guid));
+
+        var item = PackManager.Instance.GetItemByGuid(guid);
+        ulong count = 0;
+        if (GeneralDefine.itemMoneyCountDict.ContainsKey(item.itemId))
+        {
+            //灞曠ず璐у竵鏁伴噺鐨勭墿鍝�
+            count = UIHelper.GetMoneyCnt(GeneralDefine.itemMoneyCountDict[item.itemId]);
+        }
+        else
+        {
+            count = (ulong)item.count;
+        }
+        itemCell.Init(new ItemCellModel(item.itemId, false, count));
         itemCell.button.AddListener(()=>
         {
             ItemTipUtility.Show(guid);

--
Gitblit v1.8.0