From 217627970593db2f63ddb62d6c3d4c5e787871fe Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 25 三月 2019 20:43:11 +0800
Subject: [PATCH] 6385 【后端】【2.0】五行灵根开发

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py |   42 +-----------------------------------------
 1 files changed, 1 insertions(+), 41 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index d9ea722..359e937 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -479,40 +479,6 @@
         return True
     return False
 
-#物品属性判断------------------------------------------------------------------
-## 使用物品检查是否满足属性
-#  @param curPlayer 当前玩家
-#  @param curItem 当前物品
-#  @return False or True
-def CheckItemAttrLimit(curPlayer, curItem):
-    # 取消限制的物品
-    if curItem.GetUserAttr(ShareDefine.Def_IudetCancelUseLimit) == 1:
-        return True
-    #智力为基础限制
-    if curItem.GetLimitPNE() > curPlayer.GetPNE():
-        return False
-    
-    #由于可变属性强化表加载问题, 暂时不处理强化表的属性点限制,以物品表为主,如有需要再开启此判断 20151210 by hxp
-    # 从强化表中获得数据,装备强化限制力量 敏捷
-#    if curItem.GetType() in ReadChConfig.GetEvalChConfig("EquipPlus_EquipType"):
-#        plusInfo = ...
-#        
-#        if plusInfo is None:
-#            GameWorld.ErrLog("tagItemPlus.txt can't find equip:%s" % curItem.GetItemTypeID())
-#            return False
-#             
-#        limitSTR, limitPHY = plusInfo.GetLimitSTR(), plusInfo.GetLimitPHY()
-#    
-#    # 物品表中获得信息
-#    else:
-    limitSTR, limitPHY = curItem.GetLimitSTR(), curItem.GetLimitPHY()
-    
-    if limitSTR > curPlayer.GetSTR() or limitPHY > curPlayer.GetPHY():
-        return False
-    
-    return True
-
-
 #物品使用等级判断----------------------------------------------------------------
 ## 物品使用等级判断
 #  @param curPlayer 玩家
@@ -794,13 +760,7 @@
         #等级检查
         if not CheckItemUseLV(curPlayer, curItem, needNotify):
             return False
-
-        #使用物品检查是否满足属性
-        if not CheckItemAttrLimit(curPlayer, curItem):
-            if needNotify:
-                PlayerControl.NotifyCode(curPlayer, "itemuse_andyshao_671654")
-            return False
-    
+        
         #=======================================================================
         # #马匹检查
         # if curItem.GetType() == ChConfig.Def_Item_Type_Horse and not CheckCanEquipHorse(curPlayer):

--
Gitblit v1.8.0