少年修仙传客户端代码仓库
client_linchunjie
2019-05-16 8f064be0b76b41ef6c77cbcba1d8856de4637e07
3335 任务反馈
1个文件已修改
21 ■■■■■ 已修改文件
System/Message/RichNormalEvent.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/RichNormalEvent.cs
@@ -178,7 +178,26 @@
                        colorType = RichTextMgr.Inst.presentRichText.colorType == RichText.ColorType.Dark ? 0 : 1;
                    }
                    var fightPoint = PlayerDatas.Instance.baseData.FightPoint;
                    var targetValue = int.Parse(dic["myfightpoint"]);
                    var targetValue = 0;
                    var infoArray = dic["myfightpoint"].Split('_');
                    if (infoArray.Length > 1)
                    {
                        switch (infoArray[0])
                        {
                            case "skytower":
                                var config = SkyTowerConfig.Get(infoArray[1]);
                                if (config != null)
                                {
                                    targetValue = config.fightPower;
                                }
                                break;
                        }
                    }
                    else
                    {
                        int.TryParse(dic["myfightpoint"], out targetValue);
                    }
                    if (fightPoint < targetValue)
                    {
                        var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty;