| | |
| | | SyncMysticalLimitShopInfo(curPlayer)
|
| | | SyncShopItemTodayBuyCount(curPlayer)
|
| | | SyncSuperGiftInfo(curPlayer)
|
| | | if not curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MysticalShopGoods % 0):
|
| | | __DoMysticalShopRefresh(curPlayer, True, GameWorld.GetGameWorld().GetTick())
|
| | | SyncMysticalShopInfo(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | GameWorld.DebugLog('神秘商店刷新特殊规则,等级段:%s,updLVRefreshCnt=%s,specialGoodsID=%s'%(curLVDan, updLVRefreshCnt, specialGoodsID))
|
| | |
|
| | | GameWorld.DebugLog('神秘商店刷新isFree=%s,goldGoodsCnt=%s,sliverGoodsCnt=%s,goodsResultList=%s'%(isFree, goldGoodsCnt, sliverGoodsCnt, goodsResultList))
|
| | | syncIndexList = []
|
| | | for i in xrange(maxCnt):
|
| | | goodsID = goodsResultList[i] if i < len(goodsResultList) else 0
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MysticalShopGoods % i, goodsID)
|
| | | |
| | | dayBuyCntKey = ChConfig.Def_PDict_ShopItemDayBuyCnt % goodsID
|
| | | curDayBuyCnt = curPlayer.NomalDictGetProperty(dayBuyCntKey)
|
| | | if curDayBuyCnt:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, dayBuyCntKey, 0)
|
| | | syncIndexList.append(goodsID)
|
| | | if syncIndexList:
|
| | | SyncShopItemTodayBuyCount(curPlayer, syncIndexList, True)
|
| | | #֪ͨ
|
| | | SyncMysticalShopInfo(curPlayer)
|
| | | return
|