| | |
| | |
|
| | | def __CalcAttr_ItemPlus(curPlayer, curEquip, packType, equipIndex, allAttrList, plus_addEquipBaseAttrPerList):
|
| | | ## 计算装备强化后的属性
|
| | | equipPartPlusLV = GetEquipPartPlusLVByRank(curPlayer, packType, equipIndex, curEquip)
|
| | | equipPartPlusEvolveLV = GetEquipPartPlusEvolveLVByEquip(curPlayer, packType, equipIndex, curEquip)
|
| | | equipPartPlusLV = GetEquipPartPlusLV(curPlayer, packType, equipIndex)
|
| | | equipPartPlusEvolveLV = GetEquipPartPlusEvolveLV(curPlayer, packType, equipIndex)
|
| | |
|
| | | if not equipPartPlusLV:
|
| | | return
|
| | |
| | | def GetEquipPartProficiency(curPlayer, packType, index):
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_EquipPartProficiency % (packType, index))
|
| | |
|
| | |
|
| | | ## 设置公共部位强化熟练度
|
| | | def SetEquipPartProficiency(curPlayer, packType, index, value):
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_EquipPartProficiency % (packType, index), value)
|
| | |
|
| | |
|
| | | ## 获取公共部位强化星级, 因装备的最高可强化星级影响,用于算当前装备属性使用, 不影响全身星级
|
| | | def GetEquipPartPlusLVByRank(curPlayer, packType, index, curEquip):
|
| | | maxStarLV = ItemCommon.GetItemMaxPlusLV(curPlayer, index, curEquip)
|
| | | return min(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_EquipPartPlusLV % (packType, index)), maxStarLV)
|
| | |
|
| | | return
|
| | |
|
| | | ## 获取公共部位强化等级
|
| | | def GetEquipPartPlusLV(curPlayer, packType, index):
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_EquipPartPlusLV % (packType, index))
|
| | |
|
| | |
|
| | | ## 设置公共部位强化等级
|
| | | def SetEquipPartPlusLV(curPlayer, packType, index, curEquip, setPlusLV):
|
| | |
| | | GameWorld.DebugLog("设置强化等级: index=%s,befPlusLV=%s,setPlusLV=%s,befTotalPlusLV=%s,updTotalPlusLV=%s"
|
| | | % (index, befPlusLV, setPlusLV, befTotalPlusLV, updTotalPlusLV))
|
| | | return
|
| | |
|
| | |
|
| | | ## 获取公共部位强化进化等级, 用于算当前装备属性使用, 不影响全身星级
|
| | | def GetEquipPartPlusEvolveLVByEquip(curPlayer, packType, index, curEquip):
|
| | | maxEvolveLV = ItemCommon.GetItemMaxPlusEvolveLV(curPlayer, index, curEquip)
|
| | | return min(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_EquipPartPlusEvolveLV % (packType, index)), maxEvolveLV)
|
| | |
|
| | |
|
| | | ## 获取公共部位强化进化等级
|
| | | def GetEquipPartPlusEvolveLV(curPlayer, packType, index):
|