少年修仙传客户端代码仓库
client_Zxw
2018-12-14 8804cd133b4b2521972213234d61eec8cab842a7
2634 【BUG】【1.3】【1.3.100】坐骑魂石界面显示错误
1个文件已修改
20 ■■■■■ 已修改文件
System/Mount/MountStoneTipsWin.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Mount/MountStoneTipsWin.cs
@@ -184,20 +184,24 @@
                foreach (var item in _dic.Keys)
                {
                    textNumber += 1;
                    val += Config.Instance.Get<PlayerPropertyConfig>(item).Name;
                    if (item == 15 || item == 16)
                    var propertyConfig = Config.Instance.Get<PlayerPropertyConfig>(item);
                    val += propertyConfig.Name;
                    switch (propertyConfig.ISPercentage)
                    {
                        val += "<color=#109d06>  +" + (_dic[item] * _max) / 100 + "%   </color>";
                    }
                    else
                    {
                        val += "<color=#109d06>  +" + (_dic[item] * _max).ToString() + "   </color>";
                        case 0:
                            val += "<color=#109d06>  +" + (_dic[item] * _max) + "   </color>";
                            break;
                        case 1:
                            val += "<color=#109d06> +" + (_dic[item] * _max) / 100 + "%   </color>";
                            break;
                        case 2:
                            val += "<color=#109d06> +" + (_dic[item] * _max) + "%   </color>";
                            break;
                    }
                    if (textNumber == 3)
                    {
                        val += "\n";
                    }
                }
                _text.text = val;
            }