From 378c281fc81dd9a136421503cc8cb267c0eaf995 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 28 九月 2025 16:13:24 +0800
Subject: [PATCH] 16 卡牌服务端(删除副本鼓舞、副本buff;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py |   70 -----------------------------------
 1 files changed, 0 insertions(+), 70 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py
index 84f2db6..93e4a3b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py
@@ -47,7 +47,6 @@
 import math
 #---------------------------------------------------------------------
 def OnLogin(curPlayer):
-    NotifyBuyFBBuffInfo(curPlayer)
     return
 
 ## 玩家副本行为封包 A5 08
@@ -547,75 +546,6 @@
         GameObj.SetHPFull(curPlayer)
         
     GameWorld.Log("玩家退出自定义场景!", curPlayer.GetPlayerID())
-    return
-
-#// B1 0A 副本购买buff #tagCMFBBuyBuff
-#struct    tagCMFBBuyBuff
-#{
-#    tagHead         Head;
-#    DWORD        MapID;
-#    WORD        MoneyCnt;
-#};
-def OnFBBuyBuff(playerIndex, clientData, tick):
-    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(playerIndex)
-    playerID = curPlayer.GetPlayerID()
-    mapID = clientData.MapID
-    moneyCnt = clientData.MoneyCnt
-    ipyData = IpyGameDataPY.GetIpyGameData('FBBuyBuff', mapID, moneyCnt)
-    if not ipyData:
-        return
-    addBuffID = ipyData.GetBuffID()
-    curSkill = GameWorld.GetGameData().GetSkillBySkillID(addBuffID)
-    if not curSkill:
-        return
-    crossMapID = PlayerControl.GetCrossMapID(curPlayer)
-    if crossMapID and mapID !=crossMapID:
-        return
-    if not crossMapID and mapID != GameWorld.GetMap().GetMapID():
-        return
-    
-    curTime = int(time.time())
-    #判断CD 
-    timeKey = (mapID, moneyCnt)
-    lastTime = PyGameData.g_fbBuyBuffTimeDict.get(playerID, {}).get(timeKey, 0)
-    if lastTime and curTime - lastTime < ipyData.GetBuffCD():
-        GameWorld.DebugLog('副本购买buff CD未到 ')
-        return
-
-    #扣钱
-    infoDict =  {"MapID":mapID, "addBuffID":addBuffID}
-    if not PlayerControl.PayMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, moneyCnt, ChConfig.Def_Cost_FBBuyBuff, infoDict):
-        return
-    if playerID not in PyGameData.g_fbBuyBuffTimeDict:
-        PyGameData.g_fbBuyBuffTimeDict[playerID] = {}
-    PyGameData.g_fbBuyBuffTimeDict[playerID][timeKey] = curTime
-    NotifyBuyFBBuffInfo(curPlayer)
-    if crossMapID:
-        msgDict = {"PlayerID":curPlayer.GetPlayerID(), "buffID":addBuffID}
-        GameWorld.SendMsgToCrossServer(ShareDefine.ClientServerMsg_AddBuff, msgDict)
-        GameWorld.DebugLog("跨服中请求复活, crossMapID=%s,msgDict=%s" % (crossMapID, msgDict), playerID)
-        return
-
-    SkillShell.__DoLogic_AddBuff(curPlayer, curPlayer, curSkill, False, tick, 0, 0)
-    #SkillCommon.AddBuffBySkillType(curPlayer, addBuffID, tick)
-    return
-
-def NotifyBuyFBBuffInfo(curPlayer):
-    playerID = curPlayer.GetPlayerID()
-    buffTimeDict = PyGameData.g_fbBuyBuffTimeDict.get(playerID, {})
-    if not buffTimeDict:
-        return
-    packData = ChPyNetSendPack.tagMCFBBuyBuffInfo()
-    packData.InfoList = []
-    for timeKey, buyTime in buffTimeDict.items():
-        mapID, moneyCnt = timeKey
-        timeInfo = ChPyNetSendPack.tagMCFBBuyBuffTime()
-        timeInfo.MapID = mapID
-        timeInfo.MoneyCnt = moneyCnt
-        timeInfo.BuyTime = buyTime
-        packData.InfoList.append(timeInfo)
-    packData.Cnt = len(packData.InfoList)
-    NetPackCommon.SendFakePack(curPlayer, packData)
     return
 
 #// B1 08 快速一键过关副本 #tagCMFBQuickPass

--
Gitblit v1.8.0