From bbca9a1da57c089959d1cf7384813d245290ff23 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 21 一月 2019 14:04:54 +0800 Subject: [PATCH] 5924 【后端】【1.5.100】诛仙Boss功能(初版) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 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 9b8a408..03a013c 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 @@ -31,7 +31,7 @@ import PlayerFamily import PlayerActivity import PlayerSuccess -import PlayerMagicWeapon +import GameFuncComm import PyGameData import PlayerVip import GameObj @@ -1694,6 +1694,13 @@ newEnterCnt = max(0, dayTimes - (maxCnt - enterCnt)) PlayerControl.NomalDictSetProperty(curPlayer, enterCntKey, newEnterCnt) GameWorld.DebugLog(" 特殊副本已进入次数更新: newEnterCnt=%s" % newEnterCnt) + elif mapID == ChConfig.Def_FBMapID_ZhuXianBoss: + if GameFuncComm.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_ZhuXianBoss): + curCnt = min(maxCnt - enterCnt + IpyGameDataPY.GetFuncCfg('ZhuXianBossCntCfg'), IpyGameDataPY.GetFuncCfg('ZhuXianBossCntCfg', 2)) + if curCnt > dayTimes: + PlayerControl.NomalDictSetProperty(curPlayer, itemAddCntKey, curCnt - dayTimes) + elif curCnt < dayTimes: + PlayerControl.NomalDictSetProperty(curPlayer, enterCntKey, dayTimes - curCnt) mapIDInfo.append(mapID) @@ -1759,6 +1766,9 @@ if mapID == ChConfig.Def_FBMapID_SealDemon and maxDayTimes and maxCnt - enterCnt >= maxDayTimes: GameWorld.DebugLog('当前次数已满,无需购买。。') return + if mapID == ChConfig.Def_FBMapID_ZhuXianBoss and maxCnt - enterCnt >= IpyGameDataPY.GetFuncCfg('ZhuXianBossCntCfg', 2): + return + if hasBuyCnt >= canBuyCnt: GameWorld.DebugLog("购买次数已经用完mapID=%s"%mapID) return -- Gitblit v1.8.0