| | |
| | | # @param addItemDictList, LimitTime, mailInfo, PlayerJob, Text
|
| | | # @return None
|
| | | def AddEntireItem(GUID, addItemDictList, LimitTime, mailInfo, PlayerJob, Text,
|
| | | gold = 0, goldPaper = 0, silver = 0, detail=""):
|
| | | gold = 0, goldPaper = 0, silver = 0, detail="", serverID=0):
|
| | | '''
|
| | | @param mailInfo: GetEntireCompensationInfo 的返回值, 目前暂存字段 PlayerLV 中
|
| | | '''
|
| | |
| | | GameWorld.GetCompensationMgr().AddCompensationItem(GUID, curItemData)
|
| | |
|
| | | createTime = GameWorld.GetCurrentDataTimeStr()
|
| | | |
| | | #添加全服领取补偿条件
|
| | | GameWorld.GetCompensationMgr().AddEntireCompensationItem(GUID, createTime, LimitTime, mailInfo,
|
| | | PlayerJob, Text, gold, goldPaper, silver)
|
| | | PlayerJob, Text, gold, goldPaper, silver, serverID)
|
| | | checkState, limitLVType, limitLV = ParseEntireCompensationInfo(mailInfo)
|
| | | addDict = {"LimitTime":LimitTime, "LimitLV":limitLV, "LimitLVType":limitLVType, "CheckState":checkState, "PlayerJob":PlayerJob, "Text":Text,
|
| | | "Gold":gold, "GoldPaper":goldPaper, "Silver":silver, "ItemList":addItemDictList, "Detail":detail}
|
| | |
| | | if (curEntireRequire.PlayerJob&pow(2,curJob)) == 0:
|
| | | SetPrizeState(curPlayerID, GUID, Disable_State, readState)
|
| | | return Unknow_CompensationType, None
|
| | | |
| | | |
| | | if curEntireRequire.ServerID and curEntireRequire.ServerID != GameWorld.GetPlayerServerID(curPlayer):
|
| | | # 指定服务器邮件
|
| | | SetPrizeState(curPlayerID, GUID, Disable_State, readState)
|
| | | return Unknow_CompensationType, None
|
| | | |
| | | #可以用的奖励
|
| | | SetPrizeState(curPlayerID, GUID, Enable_State, readState)
|
| | | #返回物品信息
|