From 469a1fd9bb55f55195fe3f7f30553e61145cc4e4 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 22 四月 2019 14:27:34 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(采集物可配置攻击是否打断采集) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py index 88d8d75..e1a2d29 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py @@ -778,8 +778,8 @@ return #副本中不打断 - if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull: - return + #if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull: + # return tagObj = curPlayer.GetActionObj() @@ -799,10 +799,14 @@ #GameWorld.Log("BreakPlayerCollect ->没有这个NPC", curPlayer.GetPlayerID()) return - if curNPC.GetNPCID() not in ReadChConfig.GetEvalChConfig('BreakPlayerCollectNPCIDList'): + npcID = curNPC.GetNPCID() + collectNPCIpyData = IpyGameDataPY.GetIpyGameDataNotLog("CollectNPC", npcID) + if not collectNPCIpyData: return - GameWorld.DebugLog(' 采集被打断 采集物NPCID=%s' % curNPC.GetNPCID()) + if not collectNPCIpyData.GetCanBreakCollect(): + return + #取消采集状态 ChangePlayerAction(curPlayer, IPY_GameWorld.paNull) -- Gitblit v1.8.0