| | |
| | | import PlayerFeastTravel
|
| | | import PlayerFairyCeremony
|
| | | import PlayerNewFairyCeremony
|
| | | import ItemControler
|
| | | import ItemCommon
|
| | | import PyGameData
|
| | | import EventShell
|
| | |
| | | GameWorld.Log('寻访仙域, 没有随机出事件,使用默认事件!! playerLV=%s,visitCnt=%s,默认fdEventIDList=%s'%(curPlayer.GetLV(), visitCnt, fdEventIDList), curPlayer.GetID())
|
| | | if not fdEventIDList:
|
| | | return
|
| | | |
| | | for fdEventID in fdEventIDList:
|
| | | domainIpyData = IpyGameDataPY.GetIpyGameData('FairyDomain', fdEventID)
|
| | | if not domainIpyData:
|
| | | continue
|
| | | |
| | | # 草园重置
|
| | | if domainIpyData.GetEventType() in [FDEventType_GrasslandXian, FDEventType_GrasslandLing]:
|
| | | GameLogic_CrossGrassland.DoResetCrossGrassland(curPlayer, domainIpyData.GetEventType(), fdEventID)
|
| | | |
| | | if not PlayerActivity.AddDailyActionFinishCnt(curPlayer, dailyID):
|
| | | return
|
| | |
|
| | |
| | | def GetFairyAdventuresAward(curPlayer, fdeventID, state):
|
| | | ##奇遇领取奖励
|
| | | state = GameWorld.ToIntDef(state, 0)
|
| | | isSweep, state = state / 10, state % 10
|
| | | if state == FDEventState_Visiting:
|
| | | SetFairyDomainEventState(curPlayer, fdeventID, state)
|
| | | elif state == FDEventState_Visited:
|
| | |
| | | giveItemList.append(GameWorld.GetResultByWeightList(itemRateList))
|
| | | else:
|
| | | giveItemList = [ipyData.GetBasicAward()]
|
| | | NPCCommon.DoGiveItemByVirtualDrop(curPlayer, giveItemList, 0)
|
| | | msgDict = {FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(giveItemList)}
|
| | | if isSweep:
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList)
|
| | | msgDict.update({FBCommon.Over_dataMapID:ChConfig.Def_FBMapID_FairyTreasure, |
| | | FBCommon.Over_isPass:1, FBCommon.Over_isSweep:1})
|
| | | else:
|
| | | NPCCommon.DoGiveItemByVirtualDrop(curPlayer, giveItemList, 0)
|
| | | FBCommon.Notify_FB_Over(curPlayer, msgDict)
|
| | | GameWorld.DebugLog('缥缈奇遇领奖 msgDict=%s, fdeventID=%s' % (msgDict, fdeventID))
|
| | | GameWorld.DebugLog('缥缈奇遇领奖 msgDict=%s, fdeventID=%s, isSweep=%s' % (msgDict, fdeventID, isSweep))
|
| | | return
|
| | |
|
| | |
|