From 4fbcdd1af685499a25d00b0d0bd07a77e4943e4b Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 19 二月 2019 23:56:53 +0800
Subject: [PATCH] 3335 物品管理相关功能重构。
---
System/Chat/ChatCtrl.cs | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/System/Chat/ChatCtrl.cs b/System/Chat/ChatCtrl.cs
index a8236a0..35c3d9c 100644
--- a/System/Chat/ChatCtrl.cs
+++ b/System/Chat/ChatCtrl.cs
@@ -828,7 +828,7 @@
{
return HrefAnalysis.EquipDetailRegex.IsMatch(msg);
}
- public string CheckHasItem(string msg,ChatCenter.RecentlyChat _recently)
+ public string CheckHasItem(string msg, ChatCenter.RecentlyChat _recently)
{
if (!HrefAnalysis.EquipRegex.IsMatch(msg))
{
@@ -877,7 +877,7 @@
}
_textBuilder.Append("|");
var _dictSuitLv = ModelCenter.Instance.GetModel<PlayerSuitModel>().GetServerSuitModelByPlace(itemPlaceList[i].itemPlace);
- if (_dictSuitLv != null&& equip)
+ if (_dictSuitLv != null && equip)
{
foreach (int key in _dictSuitLv.Keys)
{
@@ -1084,14 +1084,14 @@
var config = ItemConfig.Get(flauntGemId);
if (config != null)
{
- ItemModel _item = new ItemModel(PackType.Item);
- ItemInfo _itemInfo = new ItemInfo();
- _itemInfo.ItemID = flauntGemId;
- _itemInfo.IsBind = flauntGemBind ? 1 : 0;
- _item.SetItemInfo(_itemInfo);
- var itemInfo = string.Format("[{0}]", config.ItemName);
- itemPlaceList.Add(_item);
- return Language.Get("GemLookTalk", itemInfo);
+ var item = new ItemModel(PackType.Item);
+ var itemInfo = new ItemInfo();
+ itemInfo.ItemID = flauntGemId;
+ itemInfo.IsBind = flauntGemBind ? 1 : 0;
+ item.SetItemInfo(itemInfo);
+ var tip = string.Format("[{0}]", config.ItemName);
+ itemPlaceList.Add(item);
+ return Language.Get("GemLookTalk", tip);
}
return string.Empty;
}
--
Gitblit v1.8.0