hxp
2024-08-05 f90d0b143afb75b6476f79fc1dafb178237a1895
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_Love.py
@@ -356,4 +356,25 @@
    GameWorld.Log("结算: coupleID=%s,coupleEnterState=%s,overDict=%s" % (coupleID, coupleEnterState, overDict), playerID)
    return
## 可否扫荡
def OnPlayerFBSweepAsk(curPlayer, mapID, lineID, sweepCnt, isFinish, dataEx):
    return True
## 扫荡结果
def OnPlayerFBSweepResult(curPlayer, mapID, lineID, sweepCnt, isFinish, dataEx):
    npcCountDict = FBCommon.GetTDCfgNPCCntInfo(TDRefreshNPCFileNum)
    if sweepCnt > 1:
        for npcID, npcCount in npcCountDict.items():
            npcCountDict[npcID] = npcCount * sweepCnt
    jsonItemList, totalExp, totalMoney = NPCCommon.GiveKillNPCDropPrize(curPlayer, mapID, npcCountDict)
    isPass = 1
    overDict = {FBCommon.Over_itemInfo:jsonItemList, FBCommon.Over_isSweep:1}
    FBCommon.NotifyFBOver(curPlayer, mapID, lineID, isPass, overDict)
    GameWorld.DebugLog("扫荡奖励: 次数=%s,jsonItemList=%s,totalExp=%s,totalMoney=%s,npcCountDict=%s"
                       % (sweepCnt, jsonItemList, totalExp, totalMoney, npcCountDict))
    return True