| | |
| | | FBDict_BossTotalHP = 'FBDict_BossTotalHP' #BOSS血量
|
| | | FBDict_LastHurtTick = 'FBDict_LastHurtTick' #上次伤害时间
|
| | | FBDict_HasGiveAward = 'FBDict_HasGiveAward' # 是否有给奖励
|
| | | FBDict_HasAddCnt = 'FBDict_HasAddCnt' # 是否有扣次数
|
| | |
|
| | |
|
| | | # 副本通用配置
|
| | | (
|
| | |
| | | ## 检查可否进行挑战
|
| | | def __CheckCanChallenge(curPlayer):
|
| | | #判断次数
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianTower)
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower):
|
| | | GameWorld.Log('进入次数不足!!')
|
| | | return 0
|
| | |
|
| | | curFloor = __GetZhuXianTowerCurPassLV(curPlayer)
|
| | | ipyMgr = IpyGameDataPY.IPY_Data()
|
| | | maxFloor = ipyMgr.GetZhuXianTowerByIndex(ipyMgr.GetZhuXianTowerCount() - 1).GetID()
|
| | | if curFloor >= maxFloor:
|
| | | if curFloor >= maxFloor: #已经最后层时,判断次数
|
| | | enterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntDay % ChConfig.Def_FBMapID_ZhuXianTower)
|
| | | if enterCnt >= FBCommon.GetEnterFBMaxCnt(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower):
|
| | | GameWorld.Log('进入次数不足!!')
|
| | | return 0
|
| | | return maxFloor
|
| | | return curFloor + 1
|
| | |
|
| | |
| | | for itemID, itemCnt, isBind in prizeItemList:
|
| | | ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind, [IPY_GameWorld.rptItem],
|
| | | event=["ZhuXianTower", False, {}])
|
| | | #本次副本里第一次给奖励时扣次数
|
| | | if not gameFB.GetGameFBDictByKey(FBDict_HasAddCnt):
|
| | | #首次S级不扣次数,非S级给奖励扣次数,非首次S扣次数
|
| | | if not isFirstPass:
|
| | | FBCommon.AddEnterFBCount(curPlayer, ChConfig.Def_FBMapID_ZhuXianTower, 1)
|
| | | gameFB.SetGameFBDict(FBDict_HasAddCnt, 1)
|
| | |
|
| | |
|
| | | gameFB.SetGameFBDict(FBDict_HasGiveAward, 1)
|
| | | |
| | | return
|
| | |
|
| | |
|