少年修仙传客户端代码仓库
client_linchunjie
2019-04-16 30d34ad5eca55436ad373bda30f1e1523ac41a8a
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
25 ■■■■■ 已修改文件
System/ItemTip/EquipTipUtility.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
        }