| | |
| | | return
|
| | |
|
| | | def GetXBXZAwardProgress(curPlayer, mwID):
|
| | | # 获取仙宝寻主进度
|
| | | ##获取仙宝寻主当前达到条件的个数
|
| | | ipyDataList = IpyGameDataPY.GetIpyGameDataByCondition('XBXZ', {'MWID': mwID}, True, False)
|
| | | if not ipyDataList:
|
| | | return 0
|
| | | cnt = 0
|
| | | if ipyDataList:
|
| | | for ipyData in ipyDataList:
|
| | | if GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_XBXZAwardRecord, ipyData.GetID()):
|
| | | cnt += 1
|
| | | playerEquip = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
|
| | | for ipyData in ipyDataList:
|
| | | curType = ipyData.GetType()
|
| | | conditionList = ipyData.GetCondition()
|
| | | |
| | | if curType == 1:
|
| | | #穿戴X阶X颜色是否套装X部位装备
|
| | | for classlv, color, suite, place in conditionList:
|
| | | equipIpyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap',classlv,place)
|
| | | if not equipIpyData:
|
| | | continue
|
| | | gridIndex = equipIpyData.GetGridIndex()
|
| | | curEquip = playerEquip.GetAt(gridIndex)
|
| | | if curEquip.IsEmpty():
|
| | | continue
|
| | | curItemColor = curEquip.GetItemColor()
|
| | | curIsSuite = curEquip.GetSuiteID()
|
| | | if curItemColor >= color and curIsSuite >= suite:
|
| | | cnt += 1
|
| | | break
|
| | | else:
|
| | | continue
|
| | | return cnt
|
| | |
|
| | | # ipyDataList = IpyGameDataPY.GetIpyGameDataByCondition('XBXZ', {'MWID': mwID}, True, False)
|
| | | # cnt = 0
|
| | | # if ipyDataList:
|
| | | # for ipyData in ipyDataList:
|
| | | # if GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_XBXZAwardRecord, ipyData.GetID()):
|
| | | # cnt += 1
|
| | | # return cnt
|
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | |
|
| | |
| | | EventShell.EventRespons_XBXZ(curPlayer, ipyData.GetMWID())
|
| | | GameWorld.DebugLog(' 仙宝寻主领奖OK, ID=%s, cnt=%s' % (index, cnt))
|
| | | return
|
| | |
|
| | |
|
| | | ## 通知仙宝寻主对应奖励领奖记录
|
| | | # @param None
|