| | |
| | | ShareDefine.ActKey_ShopTypeList:todayShopType}
|
| | | # Boss复活活动
|
| | | elif actName == ShareDefine.OperationActionName_BossReborn:
|
| | | mapServerInfoDict = {ShareDefine.ActKey_ID:actID,ShareDefine.ActKey_TemplateID:ipyData.GetTemplateID()}
|
| | | mapServerInfoDict = {ShareDefine.ActKey_ID:actID,
|
| | | ShareDefine.ActKey_TemplateID:ipyData.GetTemplateID(),
|
| | | ShareDefine.ActKey_StartDate:ipyData.GetStartDate(),
|
| | | ShareDefine.ActKey_EndDate:ipyData.GetEndDate(),
|
| | | ShareDefine.ActKey_LVLimit:ipyData.GetLVLimit(),}
|
| | | # 限时礼包活动
|
| | | elif actName == ShareDefine.OperationActionName_FlashGiftbag:
|
| | | isDayReset = ipyData.GetIsDayReset()
|
| | |
| | | state = actBossRebornInfo.get(ShareDefine.ActKey_State, 0)
|
| | | if not state:
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('BossReborn', actionID)
|
| | | playerTemplateID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_BossRebornTemplateID)
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('BossReborn', playerTemplateID, actionID)
|
| | | if not ipyData:
|
| | | return
|
| | | totalTimes = ipyData.GetTotalTimes()
|
| | |
| | |
|
| | | def __GetAwardItem(curPlayer, ipyData, times=1):
|
| | | awardDict = {}
|
| | | for itemID, itemCnt, isbind in ipyData.GetAward():
|
| | | for itemID, itemCnt, isbind in ipyData.GetReward():
|
| | | if not itemID or not itemCnt:
|
| | | continue
|
| | | awardDict[itemID] = awardDict.get(itemID, 0) + itemCnt * times
|