| | |
| | | if not realmIpyData:
|
| | | GameWorld.ErrLog("没有该境界等级数据! Lv=%s" % curRealmLV)
|
| | | return False
|
| | | needRealmPoint = realmIpyData.GetNeedPoint()
|
| | | if not needRealmPoint:
|
| | | needLV = realmIpyData.GetNeedLV()
|
| | | if not needLV:
|
| | | GameWorld.DebugLog("境界已是最大等级,不能升级! Lv=%s" % curRealmLV, curPlayer.GetPlayerID())
|
| | | return False
|
| | | if not PlayerControl.HaveMoney(curPlayer, ShareDefine.TYPE_Price_RealmPoint, needRealmPoint, False):
|
| | | GameWorld.DebugLog("境界修炼点不足,无法开启渡劫!needRealmPoint=%s" % (needRealmPoint), curPlayer.GetPlayerID())
|
| | | if curPlayer.GetLV() < needLV:
|
| | | GameWorld.DebugLog("等级不足,无法开启渡劫!needRealmPoint=%s" % (needLV), curPlayer.GetPlayerID())
|
| | | return False
|
| | | # if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RealmFBIsOpen) != 1:
|
| | | # return False
|
| | | |
| | | |
| | | if not realmIpyData.GetBossID():
|
| | | return False
|
| | |
|
| | | return True
|
| | |
|
| | |
|
| | |
| | | GameWorld.GetGameFB().SetGameFBDict(ChConfig.Map_FBDict_PropertyMark, propertyMark + 1)
|
| | | PlayerControl.SetFBFuncLineID(curPlayer, lineID)
|
| | | #FBCommon.SetFBPropertyMark(lineID)
|
| | | if lineID == 0:
|
| | | FBCommon.SetFBStep(FB_Step_MapPrepare, tick)
|
| | | #if lineID == 0:
|
| | | FBCommon.SetFBStep(FB_Step_MapPrepare, tick)
|
| | |
|
| | |
|
| | |
|
| | |
| | | # __OnDuJieFBStart(tick)
|
| | | fbStep = gameFB.GetFBStep()
|
| | |
|
| | | if lineID !=0 and fbStep == FB_Step_CallHelp:
|
| | | FBHelpBattle.SendGameServer_RefreshHelpBattlePlayer(curPlayer, ChConfig.Def_FBMapID_DuJie)
|
| | | return
|
| | | # if lineID !=0 and fbStep == FB_Step_CallHelp:
|
| | | # FBHelpBattle.SendGameServer_RefreshHelpBattlePlayer(curPlayer, ChConfig.Def_FBMapID_DuJie)
|
| | | # return
|
| | |
|
| | | if fbStep == FB_Step_MapPrepare:
|
| | | #初始化并通知等待倒计时
|
| | |
| | |
|
| | | curStar = gameFB.GetGameFBDictByKey(DuJieFB_Star)
|
| | | realmLV = gameFB.GetGameFBDictByKey(DuJieFB_RealmLV)
|
| | | realmIpyData = PlayerPrestigeSys.GetRealmIpyData(realmLV)
|
| | |
|
| | | FBPropertyMark = FBCommon.GetFBPropertyMark()
|
| | | lineID = 1 if FBPropertyMark else 0
|
| | | leaveTick = invadeCfg[Def_Time_Leave] * 1000
|
| | |
| | | addXianyuanCoin, reason = FBHelpBattle.DoFBAddXianyuanCoin(curPlayer, ChConfig.Def_FBMapID_DuJie, FBPropertyMark)
|
| | | overDict[FBCommon.Over_xianyuanCoin] = [addXianyuanCoin, reason]
|
| | |
|
| | | if realmIpyData and realmIpyData.GetIsBigRealm():
|
| | | #成就
|
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_DujieFBHelpPass, 1)
|
| | | if playerCnt > 1: #多人组队渡劫
|
| | | EventShell.EventRespons_FBEvent(curPlayer, 'teamdujie')
|
| | | |
| | | FBCommon.NotifyFBOver(curPlayer, ChConfig.Def_FBMapID_DuJie, lineID, isPass, overDict)
|
| | |
|
| | | return
|
| | |
| | | # if curPlayer.GetFamilyID() <= 0:
|
| | | # GameWorld.DebugLog("没有战盟,不能请求守护!")
|
| | | # return
|
| | | |
| | | return
|
| | | realmLV = GameWorld.GetGameFB().GetGameFBDictByKey(DuJieFB_RealmLV)
|
| | | realmIpyData = PlayerPrestigeSys.GetRealmIpyData(realmLV)
|
| | | if not realmIpyData:
|
| | | return
|
| | | if realmIpyData.GetIsBigRealm():
|
| | | GameWorld.DebugLog("大境界渡劫,不能请求守护!")
|
| | | return
|
| | | |
| | | GameWorld.DebugLog("向盟友寻求渡劫守护!")
|
| | | atkAdd = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RealmFBAttrAdd % ShareDefine.Def_Effect_BaseAtkAddPer)
|
| | | msgStr = str([atkAdd, isInspire])
|