From 0f213f3a4408bdc48e3017b4f10bf07834a54097 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 14 五月 2024 10:57:14 +0800
Subject: [PATCH] 10156 副本功能玩法关联回合战斗表现(个人boss改为回合战斗,奖励改为固定产出,区分首次击杀跟扫荡奖励;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
index eb91027..8ba0491 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
@@ -1720,21 +1720,23 @@
     NotifyFBCntRegainInfo(curPlayer, [mapID])
     return
 
-def OnFBJoin(curPlayer, mapID, funcLineID):
+def OnFBJoin(curPlayer, mapID, funcLineID, joinCount=1):
     ## 副本参与通用逻辑
-    PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_FBChallenge, 1, [mapID])
+    PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_FBChallenge, joinCount, [mapID])
     return
 
-def OnFBPass(curPlayer, mapID, funcLineID, awardItemList=None):
+def OnFBPass(curPlayer, mapID, funcLineID, awardItemList=None, passCount=1):
     ## 副本过关通用逻辑
-    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID)
-    Sync_FBPlayerFBInfoData(curPlayer, mapID)
-    
+    passLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mapID)
+    if funcLineID > passLineID:
+        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID)
+        Sync_FBPlayerFBInfoData(curPlayer, mapID)
+        PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_FBPass)
+        
     if awardItemList:
         GameWorld.DebugLog("给奖励物品: %s" % awardItemList)
         ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["FBPass_%s" % mapID, False, {"mapID":mapID, "funcLineID":funcLineID}])
         
-    PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_FBPass)
     return
 
 def RegainFBCntProcess(curPlayer):

--
Gitblit v1.8.0