From 7744cd05d338d9ddb8a97a0a22946bace79fac67 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 22 十月 2024 16:19:31 +0800 Subject: [PATCH] 10284 【后端】 仙宝奇缘新版本-倒贴版本(增加时效代币; 增加终身卡特权;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 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 c246b0f..3429fcf 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 @@ -1973,11 +1973,15 @@ ipyData = GetFBIpyData(mapID) if not ipyData: return + canBuyCnt = 0 buyTimesVIPPriID = ipyData.GetBuyTimesVIPPriID() - if not buyTimesVIPPriID: + if buyTimesVIPPriID: + canBuyCnt += PlayerVip.GetPrivilegeValue(curPlayer, buyTimesVIPPriID) + canBuyCnt += PlayerGoldInvest.GetAddFBBuyCnt(curPlayer, mapID) + GameWorld.DebugLog("购买副本进入次数: mapID=%s,canBuyCnt=%s" % (mapID, canBuyCnt)) + if canBuyCnt <= 0: GameWorld.DebugLog("mapID:%s 不可以购买进入次数"%mapID) return - canBuyCnt = PlayerVip.GetPrivilegeValue(curPlayer, buyTimesVIPPriID) hasBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_BuyFbCntDay % mapID) maxDayTimes = ipyData.GetDayTimes() -- Gitblit v1.8.0