| | |
| | | continue
|
| | | for ipyData in ipyDataList:
|
| | | suiteCnt = ipyData.GetSuiteCnt()
|
| | | star = ipyData.GetStar()
|
| | | needStar = ipyData.GetStar()
|
| | | skillID = ipyData.GetSkillID()
|
| | | if starList.count(star) >= suiteCnt:
|
| | | if [1 if star >= needStar else 0 for star in starList].count(1) >= suiteCnt:
|
| | | for attrID, attrValue in ipyData.GetAttrInfo().items():
|
| | | PlayerControl.CalcAttrDict_Type(attrID, attrValue, allAttrListSuit)
|
| | | #技能
|
| | | if skillID and not skillManager.FindSkillBySkillTypeID(skillID):
|
| | | learnSkillList.append(skillID)
|
| | | #广播
|
| | | notifyMark = ipyData.GetIsNotify()
|
| | | if notifyMark and not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_EquipPartSuiteNotify, notifyMark):
|
| | | PlayerControl.WorldNotify(0, 'AllStarLevelUp', [playerName, suiteID, suiteCnt, needStar])
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_EquipPartSuiteNotify, notifyMark, 1)
|
| | |
|
| | | else:
|
| | | if skillID and skillManager.FindSkillBySkillTypeID(skillID):
|
| | | delSkillID.append(skillID)
|
| | | skillManager.DeleteSkillBySkillTypeID(skillID)
|
| | | notifyMark = ipyData.GetIsNotify()
|
| | | if notifyMark and not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_EquipPartSuiteNotify, notifyMark):
|
| | | PlayerControl.WorldNotify(0, 'AllStarLevelUp', [playerName, suiteID, suiteCnt, star])
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_EquipPartSuiteNotify, notifyMark, 1)
|
| | | |
| | | |
| | |
|
| | | for skillID in learnSkillList:
|
| | | GameWorld.DebugLog(' 激活套装技能 skillResID=%s' % (skillID))
|
| | |
| | |
|
| | | def CalcEquipStarAttr(curPlayer, classlv, equipPlace, equipPartStar, allAttrListStar):
|
| | | ## 计算装备星数属性
|
| | | if not equipPartStar:
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('EquipStarUp', classlv, equipPlace, equipPartStar)
|
| | | if not ipyData:
|
| | | return
|