10014 【主干】【港台】【砍树】多个直购一次打包购买功能(增加免费领取礼包等级限制)
1个文件已修改
6 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGoldGift.py
@@ -305,6 +305,7 @@
            GameWorld.DebugLog("    未超过最大天,过天重置! curDays=%s" % (curDays), playerID)
            PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_DailyPackBuyGiftOnDayTime, curTime)
    else:
        freeGiftLVLimit = IpyGameDataPY.GetFuncCfg("DailyPackBuyGift", 5)
        # 单天补发的
        for awardIndexStr, addItemList in giftItemDict.items():
            if awardIndexStr in actCTGIDDict:
@@ -312,6 +313,11 @@
                    GameWorld.DebugLog("没有打包购买且没有单独购买,不补发! awardIndex=%s,packBuyTime=%s,buyState=%s" 
                                       % (awardIndexStr, packBuyTime, buyState), playerID)
                    continue
            else:
                if freeGiftLVLimit and curPlayer.GetLV() < freeGiftLVLimit:
                    GameWorld.DebugLog("没有打包购买且等级不足免费礼包,不补发! awardIndex=%s,playerLV=%s < freeGiftLVLimit=%s"
                                       % (awardIndexStr, curPlayer.GetLV(), freeGiftLVLimit), playerID)
                    continue
            if getRecord&pow(2, int(awardIndexStr)):
                GameWorld.DebugLog("已经领取过该奖励了,不补发! awardIndex=%s,getRecord=%s" % (awardIndexStr, getRecord), playerID)
                continue