From 09f7856ed26cb659933e761f4641f0511b7cab0f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 06 五月 2024 16:21:11 +0800
Subject: [PATCH] 10033 【后端】砍树(回合战斗副本支持任务类型4副本过关、类型12挑战副本;回合副本可重复挑战奖励及首通奖励支持;修复回合战斗NPC不存在时报错bug;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTask.py |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTask.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTask.py
index d06a415..e0241f6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTask.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTask.py
@@ -149,8 +149,8 @@
         if len(conds) != 2:
             return 0
         mapID, lineID = conds
-        grade = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, [mapID])
-        taskValue = 1 if grade > 0 else 0
+        passLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mapID)
+        taskValue = 1 if passLineID >= lineID else 0
         
     elif taskType == ChConfig.TaskType_EquipColorItem:
         if not conds:
@@ -217,18 +217,8 @@
     ## 检查任务条件是否满足
     taskType = ipyData.GetTaskType()
     
-    # 副本xxx过关
-    if taskType == ChConfig.TaskType_FBPass:
-        taskConds = ipyData.GetTaskConds()
-        if not conds or len(conds) != len(taskConds) or len(conds) < 2:
-            return
-        if conds[0] != taskConds[0]:
-            return
-        if conds[1] < taskConds[1]:
-            return
-        
     # 副本xxx挑战
-    elif taskType == ChConfig.TaskType_FBChallenge:
+    if taskType == ChConfig.TaskType_FBChallenge:
         taskConds = ipyData.GetTaskConds()
         if not conds or len(conds) != len(taskConds) or len(conds) < 1:
             return

--
Gitblit v1.8.0