|  |  |  | 
|---|
|  |  |  | maxStarLV = ItemCommon.GetItemMaxStar(curEquip) | 
|---|
|  |  |  | return min(GetEquipPartStar(curPlayer, equipPackindex), maxStarLV) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def GetTotalEquipStars(curPlayer): | 
|---|
|  |  |  | ##获取部位总星数 | 
|---|
|  |  |  | totalStar = 0 | 
|---|
|  |  |  | equipMaxClasslv = IpyGameDataPY.GetFuncCfg('EquipMaxClasslv') | 
|---|
|  |  |  | for equipPlace in ChConfig.Pack_EquipPart_CanPlusStar.get(IPY_GameWorld.rptEquip, []): | 
|---|
|  |  |  | for classlv in xrange(1, equipMaxClasslv+1): | 
|---|
|  |  |  | ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classlv, equipPlace) | 
|---|
|  |  |  | if not ipyData: | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | totalStar +=GetEquipPartStar(curPlayer, ipyData.GetGridIndex()) | 
|---|
|  |  |  | return totalStar | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ## 通知公共部位星数 | 
|---|
|  |  |  | def NotifyEquipPartStar(curPlayer, index=None): | 
|---|