From 0012445c0109fa67987800a1bac8f32e989b2d19 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 15 八月 2018 15:16:01 +0800
Subject: [PATCH] Merge branch 'master' into leonard
---
System/KnapSack/Logic/SelectBoxItemCell.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/System/KnapSack/Logic/SelectBoxItemCell.cs b/System/KnapSack/Logic/SelectBoxItemCell.cs
index 8fb0e12..1e39fa1 100644
--- a/System/KnapSack/Logic/SelectBoxItemCell.cs
+++ b/System/KnapSack/Logic/SelectBoxItemCell.cs
@@ -35,7 +35,12 @@
nameText.text = itemConfig.ItemName;
ItemCellModel cellModel = new ItemCellModel(id, false, (ulong)BoxModel.selectDict[id]);
itemBaisc.Init(cellModel);
- haveCntText.text = playerPack.GetItemCountByID(PackType.rptItem, id).ToString();
+ int haveCnt = playerPack.GetItemCountByID(PackType.rptItem, id);
+ if(haveCnt <= 0)
+ {
+ haveCnt = ModelCenter.Instance.GetModel<RuneModel>().GetRuneCountById(id);
+ }
+ haveCntText.text = haveCnt.ToString();
SetIsChoose(false);
}
--
Gitblit v1.8.0