| | |
| | | if fbpasslv: #副本关卡属性
|
| | | fbipyData = IpyGameDataPY.GetIpyGameData('MagicWeaponFB', magicWeaponID, fbpasslv)
|
| | | if fbipyData:
|
| | | attrDict = fbipyData.AttrDict()
|
| | | GameWorld.AddDictValue(allAttrDict, attrDict)
|
| | | attrDict = fbipyData.GetAttrDict()
|
| | | for effID, value in attrDict.items():
|
| | | effID = int(effID)
|
| | | allAttrDict[effID] = allAttrDict.get(effID, 0) + value
|
| | | |
| | |
|
| | | for effID, value in allAttrDict.items():
|
| | | if treasureType == 1:
|
| | |
| | | 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()
|