| | |
| | |
|
| | | return
|
| | |
|
| | | def GetPlayerEquipItemCount(curPlayer, classLV, itemColor, includeHigh=True):
|
| | | ## 获取玩家穿戴的装备数量
|
| | | |
| | | haveCnt = 0
|
| | | classlVList = [classLV] if classLV else range(1, IpyGameDataPY.GetFuncCfg('EquipMaxClasslv')+1)
|
| | | equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | for classLV in classlVList:
|
| | | ipyDataList = IpyGameDataPY.GetIpyGameDataByCondition('EquipPlaceIndexMap', {'ClassLV':classLV}, True, False)
|
| | | if not ipyDataList:
|
| | | continue
|
| | | for ipyData in ipyDataList:
|
| | | gridIndex = ipyData.GetGridIndex()
|
| | | curEquip = equipPack.GetAt(gridIndex)
|
| | | if not ItemCommon.CheckItemCanUse(curEquip):
|
| | | continue
|
| | | if itemColor != None:
|
| | | if includeHigh:
|
| | | if curEquip.GetItemColor() < itemColor:
|
| | | continue
|
| | | else:
|
| | | if curEquip.GetItemColor() != itemColor:
|
| | | continue
|
| | | |
| | | # 可扩展套装
|
| | | |
| | | haveCnt += 1
|
| | | |
| | | return haveCnt
|
| | |
|
| | | ## 刷新所有装备对人物属性的改变
|
| | | # @param self 类实例
|
| | | # @return 返回值无意义
|