| | |
| | | # @return None
|
| | | def OnExec(curPlayer, gmList):
|
| | |
|
| | | curPlayerID = curPlayer.GetPlayerID()
|
| | | mailList = PlayerCompensation.SeekPlayerCompensation(curPlayer)
|
| | | for i, mail in enumerate(mailList):
|
| | | GUID = mail[0]
|
| | | compensationType = PlayerCompensation.CheckRequestCompensation(curPlayer, GUID)[0]
|
| | | PlayerCompensation.GiveCompensationSuccess(curPlayer, GUID, compensationType)
|
| | | curPersonalCompensation = GameWorld.GetCompensationMgr().FindPersonalCompensation(curPlayerID, GUID)
|
| | | if curPersonalCompensation.PlayerID == curPlayerID:
|
| | | compensationType = PlayerCompensation.Personal_CompensationType
|
| | | else:
|
| | | curEntireRequire = GameWorld.GetCompensationMgr().FindEntireCompensation(GUID)
|
| | | if curEntireRequire.GUID != GUID:
|
| | | continue
|
| | | compensationType = PlayerCompensation.Entire_CompensationType
|
| | | PlayerCompensation.GiveCompensationSuccess(curPlayer, GUID, compensationType, True)
|
| | |
|
| | | sendMCPack = ChPyNetSendPack.tagMCGiveCompensationResult()
|
| | | sendMCPack.GUID = GUID
|