| | |
| | | else:
|
| | | PlayerControl.CalcAttrDict_Type(legendAttrID, legendAttrValue, allAttrList)
|
| | | #宝石属性
|
| | | gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipIndex, allAttrListZXStone)
|
| | | equipPlaceStoneLVDict[equipIndex] = gemlvList
|
| | | gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipPlace, allAttrListZXStone)
|
| | | equipPlaceStoneLVDict[equipPlace] = gemlvList
|
| | |
|
| | |
|
| | | # GameWorld.DebugLog("诛仙装备属性: allAttrList=%s" % (allAttrList))
|
| | |
| | | else:
|
| | | PlayerControl.CalcAttrDict_Type(suitEffID, suitEffValue, allAttrListZXSuit)
|
| | | #宝石共鸣属性
|
| | | #GameWorld.DebugLog('equipPlaceStoneLVDict=%s'%equipPlaceStoneLVDict)
|
| | | needStoneCnt = IpyGameDataPY.GetFuncCfg('GemResonance')
|
| | | for suitType, placeGroupList in suitPlaceGroupDict.items():
|
| | | suitType = int(suitType)
|
| | |
| | | if len(groupStoneLVList) < needStoneCnt:
|
| | | continue
|
| | | groupStoneLVList.sort(reverse=True)
|
| | | shareStoneLV = min(groupStoneLVList[needStoneCnt:])
|
| | | shareStoneLV = min(groupStoneLVList[:needStoneCnt])
|
| | | GameWorld.DebugLog(" 激活诛仙宝石共鸣: suitType=%s, shareStoneLV=%s" % (suitType, shareStoneLV))
|
| | | stoneAttrIpyData = IpyGameDataPY.GetIpyGameData("ZhuXianStoneAttr", suitType, shareStoneLV)
|
| | | if not stoneAttrIpyData:
|
| | |
| | | plusEffDict = equipPlaceBaseAttrDict[plusPlace]
|
| | | #GameWorld.DebugLog(" plusPlace=%s,plusEffDict=%s" % (plusPlace, plusEffDict))
|
| | | for plusEffID, plusEffValue in plusEffDict.items():
|
| | | addValue = int(plusEffValue * (10000 + suitEffValue) / 10000.0)
|
| | | addValue = int(plusEffValue * (10000 + effValue) / 10000.0)
|
| | | #GameWorld.DebugLog(" plusEffID=%s,plusEffValue=%s,addValue=%s" % (plusEffID, plusEffValue, addValue))
|
| | | PlayerControl.CalcAttrDict_Type(plusEffID, addValue, allAttrListZXStone)
|
| | | else:
|