From 330c5a30027fd33e2f77643f4c3c2f77b4d91a0f Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 10 五月 2024 16:42:13 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(回合战斗NPC相关属性统一调整到NPC扩展表;去除副本回合制表,新增冒险关卡表;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 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 ca6d134..eab588f 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 @@ -33,6 +33,7 @@ import ItemControler import PlayerSuccess import GameFuncComm +import PlayerTask import PyGameData import PlayerVip import GameObj @@ -1719,6 +1720,23 @@ NotifyFBCntRegainInfo(curPlayer, [mapID]) return +def OnFBOver(curPlayer, mapID, funcLineID, isWin, awardItemList): + ## 副本结束通用逻辑 + + PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_FBChallenge, 1, [mapID]) + if not isWin: + return + + PlayerTask.UpdTaskValue(curPlayer, ChConfig.TaskType_FBPass) + + PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID) + Sync_FBPlayerFBInfoData(curPlayer, mapID) + + GameWorld.DebugLog("奖励物品: %s" % awardItemList) + if awardItemList: + ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["FBPass_%s" % mapID, False, {"mapID":mapID, "funcLineID":funcLineID}]) + return + def RegainFBCntProcess(curPlayer): ## 按时间恢复副本次数 -- Gitblit v1.8.0