From cad87129e5ea2fd23cc195ed0444bd38f1117aa7 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 05 八月 2025 15:51:54 +0800 Subject: [PATCH] 79 【常规】背包 - 随机宝箱界面,自选宝箱界面,获得物品奖励界面 --- 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