From e831784a7f2a9bf95fc5718ddd455fc83a362d73 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 16 四月 2019 15:18:17 +0800
Subject: [PATCH] 6524 【2.0】【前端】未穿戴装备的TIPS不显示养成相关内容
---
System/ItemTip/EquipTipUtility.cs | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/System/ItemTip/EquipTipUtility.cs b/System/ItemTip/EquipTipUtility.cs
index 56b349d..5b501f4 100644
--- a/System/ItemTip/EquipTipUtility.cs
+++ b/System/ItemTip/EquipTipUtility.cs
@@ -439,20 +439,27 @@
private static BaseProperty GetBaseProperty(string guid)
{
var item = packModel.GetItemByGuid(guid);
+ var equipPosition = new Int2(item.config.LV, item.config.EquipPlace);
+ var equiped = equipModel.GetEquip(equipPosition) == guid;
+
var baseProperty = GetBaseProperty(item.itemId);
- var starProperties = new List<Int2>();
- var currentStar = starModel.GetEquipStarLevel(new Int2(item.config.LV, item.config.EquipPlace));
- var maxStar = EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV);
- var star = Mathf.Min(currentStar, maxStar);
- if (star > 0)
+ if (equiped)
{
- baseProperty.star = star;
- var starConfig = EquipStarConfig.Get(item.config.LV, item.config.EquipPlace, star);
- starProperties.AddRange(starConfig.BaseAttrInfo);
+ var starProperties = new List<Int2>();
+ var currentStar = starModel.GetEquipStarLevel(equipPosition);
+ var maxStar = EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV);
+ var star = Mathf.Min(currentStar, maxStar);
+ if (star > 0)
+ {
+ baseProperty.star = star;
+ var starConfig = EquipStarConfig.Get(item.config.LV, item.config.EquipPlace, star);
+ starProperties.AddRange(starConfig.BaseAttrInfo);
+ }
+
+ baseProperty.starProperties = starProperties;
}
- baseProperty.starProperties = starProperties;
return baseProperty;
}
--
Gitblit v1.8.0