From 2fb0f9761ef9789ce068fbe26d2e4c7af1148ec0 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 19 二月 2019 23:49:06 +0800
Subject: [PATCH] 3335 物品管理相关功能重构。

---
 System/KnapSack/Logic/ItemLogicUtility.cs |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/System/KnapSack/Logic/ItemLogicUtility.cs b/System/KnapSack/Logic/ItemLogicUtility.cs
index afc9505..b8ac035 100644
--- a/System/KnapSack/Logic/ItemLogicUtility.cs
+++ b/System/KnapSack/Logic/ItemLogicUtility.cs
@@ -44,7 +44,7 @@
                 return;
             }
 
-            itemIndex = selectedItem.itemInfo.ItemPlace;
+            itemIndex = selectedItem.itemPlace;
             var putOnLimits = selectedItem.GetUseDataModel((int)ItemUseDataKey.cancelUseLimit);
             if (putOnLimits != null)
             {
@@ -615,7 +615,7 @@
 
             SinglePackModel singlePack = null;
             int remainGrid = 0;
-            int equipPlace = item.itemInfo.ItemPlace;
+            int equipPlace = item.itemPlace;
             if (item.packType == PackType.JadeDynastyEquip)
             {
                 equipPlace += 121;
@@ -693,7 +693,7 @@
             }
 
             var putInWarehouse = new C0C01_tagCPutItemInWarehouse();
-            putInWarehouse.ItemIndex = (ushort)itemModel.itemInfo.ItemPlace;
+            putInWarehouse.ItemIndex = (ushort)itemModel.itemPlace;
             putInWarehouse.WarehouseIndex = 0;
             putInWarehouse.Count = (ushort)itemModel.itemInfo.ItemCount;
             GameNetSystem.Instance.SendInfo(putInWarehouse);
@@ -710,7 +710,7 @@
             }
 
             var putOutWarehouse = new C0C02_tagCGetItemInWarehouse();
-            putOutWarehouse.WarehouseIndex = (ushort)itemModel.itemInfo.ItemPlace;
+            putOutWarehouse.WarehouseIndex = (ushort)itemModel.itemPlace;
             putOutWarehouse.ItemIndex = 0;
             putOutWarehouse.Count = (ushort)itemModel.itemInfo.ItemCount;
             GameNetSystem.Instance.SendInfo(putOutWarehouse);
@@ -793,7 +793,7 @@
                 if (itemTipsModel.jumpAndUseTypes[i] == useItemModel.config.Type)
                 {
                     bool isMakeUse = CheckUseCondition(useItemModel);
-                    if (isMakeUse && IsHaveMakeNumber(useItemModel.itemInfo.ItemPlace))
+                    if (isMakeUse && IsHaveMakeNumber(useItemModel.itemPlace))
                     {
                         if (useItemModel.config.Jump != 0)
                         {
@@ -903,7 +903,7 @@
                 {
                     if (!CheckIsMaxOfflineTime(maxUseCnt, itemModel))
                     {
-                        SendMakeUseQuest(itemModel.itemInfo.ItemPlace);
+                        SendMakeUseQuest(itemModel.itemPlace);
                     }
                     else
                     {
@@ -954,7 +954,7 @@
                     {
                         if (isOk)
                         {
-                            SendMakeUseQuest(itemModel.itemInfo.ItemPlace);
+                            SendMakeUseQuest(itemModel.itemPlace);
                         }
                     }
                     );
@@ -970,7 +970,7 @@
                             ItemCDCool cool = KnapsackTimeCDMgr.Instance.GetItemCoolById(itemModel.itemInfo.ItemGUID);
                             if (cool == null || cool.GetRemainTime() <= 0)
                             {
-                                SendMakeUseQuest(itemModel.itemInfo.ItemPlace);
+                                SendMakeUseQuest(itemModel.itemPlace);
                             }
                             else
                             {
@@ -1016,7 +1016,7 @@
                     {
                         if (isOk)
                         {
-                            SendMakeUseQuest(itemModel.itemInfo.ItemPlace, useNum);
+                            SendMakeUseQuest(itemModel.itemPlace, useNum);
                         }
                     });
                     return true;
@@ -1119,7 +1119,7 @@
             else
             {
                 var sendInfo = new C0708_tagCDragItem();
-                sendInfo.SrcIndex = (ushort)itemModel.itemInfo.ItemPlace;
+                sendInfo.SrcIndex = (ushort)itemModel.itemPlace;
                 sendInfo.DestIndex = (ushort)singlePack.GetNullGridIndex();
                 sendInfo.ItemCount = (ushort)splitCount;
                 GameNetSystem.Instance.SendInfo(sendInfo); //鎷嗗垎鐗╀綋

--
Gitblit v1.8.0