少年修仙传客户端代码仓库
client_linchunjie
2018-10-18 f93c57bfd57f97e78c3a00a29f302f5e8c83cdee
2158【1.2.0】猫耳聊天屏蔽逻辑优化
2个文件已修改
6 ■■■■ 已修改文件
System/Chat/ChatCtrl.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/HrefAnalysis.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatCtrl.cs
@@ -763,7 +763,7 @@
                {
                    bool equip = itemPlaceList[i].packType == PackType.rptEquip;
                    uint[] stones = equip ? PlayerStoneData.Instance.GetStoneInfo(itemPlaceList[i].itemInfo.ItemPlace) : null;
                    _textBuilder.Append(StringUtility.Contact("*", itemPlaceList[i].itemInfo.ItemID,
                    _textBuilder.Append(StringUtility.Contact("#item#", itemPlaceList[i].itemInfo.ItemID,
                                                              "|", itemPlaceList[i].itemInfo.IsBind,
                                                              "|", itemPlaceList[i].itemInfo.ItemCount,
                                                              "|", stones != null ? LitJson.JsonMapper.ToJson(stones) :
@@ -814,7 +814,7 @@
                            ",\"Value\":", LitJson.JsonMapper.ToJson(_array)));
                        _textBuilder.Append("}");
                    }
                    _textBuilder.Append("*");
                    _textBuilder.Append("#item#");
                    if (_recently != null)
                    {
                        _recently.Add(cfg.ItemName, _textBuilder.ToString().Substring(_length));
System/Message/HrefAnalysis.cs
@@ -272,7 +272,7 @@
    }
    public static Regex EquipRegex = new Regex(@"\[([\u4e00-\u9fa5a-zA-Z0-9\|'_\(\)()\. ::]+?)\]", RegexOptions.Singleline);
    public static Regex EquipDetailRegex = new Regex("\\*([\u4e00-\u9fa5a-zA-Z0-9\\|'_\\(\\)()\\. ::\\,\\[\\]a-zA-Z\"\\{\\}]+?)\\*", RegexOptions.Singleline);
    public static Regex EquipDetailRegex = new Regex("#item#([\u4e00-\u9fa5a-zA-Z0-9\\|'_\\(\\)()\\. ::\\,\\[\\]a-zA-Z\"\\{\\}]+?)#item#", RegexOptions.Singleline);
    public bool ExcuteHrefEvent(string msg, int index = 0)
    {