From ad18dcb3014762a46929bb779b44d27262dcd3c9 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 24 十一月 2021 16:52:22 +0800 Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加情缘副本;AB相互提亲优化聘礼ID取较高的) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py index 73b6763..23c9aa9 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py @@ -31,6 +31,7 @@ import PetControl import ReadChConfig import GameObj +import FBLogic #--------------------------------------------------------------------- #--------------------------------------------------------------------- @@ -643,7 +644,7 @@ return -def NPCMoveByPointList(curNPC, movePointList): +def NPCMoveByPointList(curNPC, movePointList, tick): if not movePointList: return pointIndex = curNPC.GetDictByKey(ChConfig.Def_NPC_Dict_MovePointIndex) @@ -669,5 +670,10 @@ curNPC.Move(destPosX, destPosY) return + + # 到达终点 + if pointIndex == (len(movePointList) - 1): + FBLogic.OnTDNPCReachTheGoal(curNPC, tick) + return -- Gitblit v1.8.0