少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-16 e831784a7f2a9bf95fc5718ddd455fc83a362d73
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;
        }