| | |
| | | return itemID
|
| | |
|
| | | def GetTreasureCntAward(curPlayer, treasureType, needTreasureCnt):
|
| | | ## 领取天道树奖励
|
| | | ## 领取寻宝累计次数奖励
|
| | | needTreasureCnt = GameWorld.ToIntDef(needTreasureCnt, 0)
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("TreasureCntAward", treasureType, needTreasureCnt)
|
| | |
| | | GameWorld.DebugLog("领取寻宝次数奖励! treasureType=%s,needTreasureCnt=%s,awardIndex=%s,awardState=%s,updState=%s"
|
| | | % (treasureType, needTreasureCnt, awardIndex, awardState, updState), playerID)
|
| | |
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList)
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["TreasureCntAward", False, {}])
|
| | | Sync_TreasureInfo(curPlayer, [treasureType])
|
| | | return
|
| | |
|