| | |
| | | import GameWorld
|
| | | import ChConfig
|
| | | import PlayerSuccess
|
| | | import OpenServerCampaign
|
| | | import ChEquip
|
| | | import PlayerBillboard
|
| | | import EventShell
|
| | | import DataRecordPack
|
| | |
| | | #装备判断
|
| | | needEquip = realmIpyData.GetNeedEquip()
|
| | | if needEquip and len(needEquip) == 3:
|
| | | classLV, color, isSuite = needEquip
|
| | | classLV, star, isSuite = needEquip
|
| | | equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | for place in ChConfig.EquipPlace_Base:
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classLV, place)
|
| | |
| | | curEquip = equipPack.GetAt(gridIndex)
|
| | | if not ItemCommon.CheckItemCanUse(curEquip):
|
| | | return
|
| | | if curEquip.GetItemColor() < color:
|
| | | curPartStar = ChEquip.GetEquipPartStar(curPlayer, gridIndex)
|
| | | if curPartStar < star:
|
| | | return
|
| | | if isSuite and not curEquip.GetSuiteID():
|
| | | return
|