hxp
2021-11-04 563e6d6c9bb5e09f7ef7d3534466acd2dbc2aa36
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
@@ -30,6 +30,7 @@
import PlayerFeastTravel
import PlayerFairyCeremony
import PlayerNewFairyCeremony
import ItemControler
import ItemCommon
import PyGameData
import EventShell
@@ -193,6 +194,16 @@
        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
    
@@ -425,6 +436,7 @@
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:
@@ -464,10 +476,15 @@
                    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