| | |
| | | # BYTE Type; //0-开始寻访 1-结束寻访
|
| | | #};
|
| | | def OnVisitFairyDomain(index, clientData, tick):
|
| | | # 活跃消耗改为放置,缥缈待修改,暂屏蔽
|
| | | return
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | |
|
| | | otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
|
| | |
| | | if fairyDomainState == 1:
|
| | | GameWorld.DebugLog(" 正在寻访仙域中!请先退出寻访")
|
| | | return
|
| | | costPoint = IpyGameDataPY.GetFuncCfg('ImmortalDomainActivePoint', 2)
|
| | | if not PlayerActivity.CostActivityPoint(curPlayer, costPoint, True):
|
| | | GameWorld.DebugLog(" 寻访仙域需要活跃点不足!costPoint=%s"%costPoint)
|
| | | remainCnt = PlayerActivity.GetDailyActionrRemainCnt(curPlayer, dailyID)
|
| | | if not remainCnt:
|
| | | GameWorld.DebugLog(" 没有寻访次数了!")
|
| | | return
|
| | |
|
| | | |
| | | #随机事件 重置事件状态
|
| | | visitCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainVisitCnt)
|
| | | appointIpyDataList = IpyGameDataPY.GetIpyGameDataListNotLog('FairyDomainAppoint', visitCnt + 1)
|
| | |
| | | GameWorld.Log('寻访仙域, 没有随机出事件,使用默认事件!! playerLV=%s,visitCnt=%s,默认fdEventIDList=%s'%(curPlayer.GetLV(), visitCnt, fdEventIDList), curPlayer.GetID())
|
| | | if not fdEventIDList:
|
| | | return
|
| | | PlayerActivity.CostActivityPoint(curPlayer, costPoint)
|
| | | if not PlayerActivity.AddDailyActionFinishCnt(curPlayer, dailyID):
|
| | | return
|
| | | |
| | | #奇遇事件 随机档位数据
|
| | | openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
|
| | | for fdEventID in fdEventIDList:
|
| | |
| | | def GetMaxEventCnt():
|
| | | # 最大可出现事件个数
|
| | | otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
|
| | | maxEventCnt = max([info[1] for info in otherCntRateList]) + len(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain'))
|
| | | maxEventCnt = max([info[1] for info in otherCntRateList]) + len(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 1, {}))
|
| | | return maxEventCnt
|
| | |
|
| | | ###=========================奇遇===============================
|