| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RecoverFBItemAddCnt % index, newItemAddCnt)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RecoverFBExtraCnt % index, newExtraCnt)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RecoverFBNoBuyCnt % index, newnoBuyCnt)
|
| | | if max(newCommonCnt, newBuyCnt, newItemAddCnt, newExtraCnt, newnoBuyCnt) == 0 and index != Def_TJGRecoverID:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HaveRecover % index, 1)
|
| | | if index != Def_TJGRecoverID:
|
| | | #1:找回了普通 2:找回了vip 3:2个都有找回 |
| | | recoverData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_HaveRecover % index, 0)
|
| | | updData = recoverData
|
| | | if i < len(cntList) -1:
|
| | | if recoverData == 2:
|
| | | updData = 3
|
| | | elif recoverData == 0:
|
| | | updData = 1
|
| | | else:
|
| | | if max(curCommonCnt, curBuyCnt, curItemAddCnt, curExtraCnt) == 0:
|
| | | if recoverData == 0:
|
| | | updData = 2
|
| | | elif recoverData == 1:
|
| | | updData = 3
|
| | | else:
|
| | | updData = 3
|
| | | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_HaveRecover % index, updData)
|
| | | |
| | |
|
| | | return
|
| | |
|
| | |
| | | numInfoPack.Index = index
|
| | | numInfoPack.RecoverCnt = commonCnt
|
| | | numInfoPack.ExtraCnt = vipExtraCnt
|
| | | numInfoPack.HaveRecover = haveRecover
|
| | | numInfoPack.ExtraData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RecoverGainData % index, 0)
|
| | | numInfoPack.ExtraData2 = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_RecoverGainDataEx % index, 0)
|
| | | sendPack.NumInfo.append(numInfoPack)
|