| | |
| | | privilegeIpyData = IpyGameDataPY.GetIpyGameDataNotLog('TreasurePrivilege', privilege)
|
| | | if not privilegeIpyData:
|
| | | return
|
| | | curGotValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWSoulGotValue % privilege)
|
| | | singleValue = privilegeIpyData.GetSingleValue()
|
| | | if singleValue and curGotValue % singleValue:
|
| | | fixGotValue = curGotValue/singleValue*singleValue
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MWSoulGotValue % privilege, fixGotValue)
|
| | | GameWorld.Log('玩家法宝之魂已领的数据不是单次进度的倍数,修复! privilege=%s,curGotValue=%s, fixGotValue=%s'%(privilege, curGotValue, fixGotValue))
|
| | | |
| | | curValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWSoulCurValue % privilege)
|
| | | newData = curValue + data if isAdd else data
|
| | | maxValue = privilegeIpyData.GetMaxValue()
|