少年修仙传客户端代码仓库
Client_PangDeRong
2019-01-25 2e32cbe4806f76c5f1a9dcd08d24276f7d5b19b4
2957 【BUG】【1.5.200】没有穿戴的装备的套装属性不要显示激活状态 ​
1个文件已修改
17 ■■■■ 已修改文件
System/JadeDynastyKnapSack/JadeDynastySuitAttrBeh.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/JadeDynastyKnapSack/JadeDynastySuitAttrBeh.cs
@@ -183,15 +183,16 @@
                int equipPlace = equipPlaces[0];
                List<int> activeEquips = null;
                bool isActive = equipModel.TryGetIsActiveSuit(equipPlace,suitAttrData.suitLv,out activeEquips);
                activeObj.SetActive(!isActive);
                if(!isActive)
                bool isShowActiveObj = !isActive || type == PackType.rptJadeDynastyItem;
                activeObj.SetActive(isShowActiveObj);
                if(isShowActiveObj)
                {
                    string equipsName = string.Empty;
                    for(int i = 0; i < equipPlaces.Count; i++)
                    {
                        var place = equipPlaces[i];
                        string equipName = Language.Get(((RoleEquipType)place).ToString());
                        if (activeEquips.Contains(place))
                        if (activeEquips.Contains(place) && type == PackType.rptJadeDynastyEquip)
                        {
                            equipName = UIHelper.AppendStringColor(TextColType.Green,equipName);
                        }
@@ -218,15 +219,7 @@
                        var attrText = attrTextlist[i];
                        var attrConfig = Config.Instance.Get<PlayerPropertyConfig>(attrId);
                        string attrSB = string.Empty;
                        string attrValueSB = string.Empty;
                        if (isActive)
                        {
                          attrValueSB = UIHelper.AppendStringColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
                        }
                        else
                        {
                            attrValueSB = UIHelper.AppendStringColor(TextColType.Gray, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
                        }
                        string attrValueSB = tipsModel.GetProValueTypeStr(attrConfig, attrValue); ;
                        if (attrConfig.Name.Contains("%s"))
                        {
                            attrSB = attrConfig.Name.Replace("%s", attrValueSB);