| | |
| | | gameWorld.SetGameWorldDict(FBDict_StartTick % lineID, 0)
|
| | | gameWorld.SetGameWorldDict(FBDict_Speed % lineID, 0)
|
| | | gameWorld.SetGameWorldDict(FBDict_RemainHP % lineID, 0)
|
| | | |
| | | PyGameData.g_horsePetBossPlayerHurtDict[lineID] = {}
|
| | | gameWorld.SetPropertyID(0)
|
| | | return
|
| | |
|
| | |
| | | if not ipyDataList:
|
| | | return auctionItemList, itemList
|
| | | awardRateList = []
|
| | | awardPieRateDict = {}
|
| | | for ipyData in ipyDataList:
|
| | | worldLVList = ipyData.GetWorldLV()
|
| | | if worldLV < worldLVList[0] or worldLV > worldLVList[1]:
|
| | |
| | | rankList = ipyData.GetRank()
|
| | | if rank < rankList[0] or rank > rankList[1]:
|
| | | continue
|
| | | awardRateList = ipyData.GetAward()
|
| | | if not awardRateList:
|
| | | awardRateList = ipyData.GetAward1()
|
| | | awardPieRateDict = ipyData.GetAward2()
|
| | | if not awardRateList and not awardPieRateDict:
|
| | | GameWorld.ErrLog('骑宠Boss奖励表 未配置该奖励 lineID=%s, rank=%s,worldLV=%s' % (lineID, rank, worldLV))
|
| | | return auctionItemList, itemList
|
| | | for rate, itemInfo in awardRateList:
|
| | |
| | | else:
|
| | | itemList.append(itemInfo)
|
| | |
|
| | | for doCnt, awardPieRateList in awardPieRateDict.items():
|
| | | for _ in xrange(doCnt):
|
| | | resultItem = GameWorld.GetResultByRandomList(awardPieRateList)
|
| | | if len(resultItem) != 3:
|
| | | GameWorld.ErrLog('骑宠Boss奖励表配置错误 itemInfo=%s' % resultItem)
|
| | | continue
|
| | | if resultItem[2]:
|
| | | auctionItemList.append(resultItem)
|
| | | else:
|
| | | itemList.append(resultItem)
|
| | | return auctionItemList, itemList
|
| | |
|
| | |
|
| | |
| | | gameFB.SetGameFBDict(FBDict_LastHPNotify, lastIndex + 1)
|
| | | lineID = GameWorld.GetGameWorld().GetPropertyID() - 1
|
| | | msgMark = 'QCBOSSHP1'
|
| | | PlayerControl.WorldNotify(0, msgMark, [bossID, remainPer])
|
| | | PlayerControl.WorldNotify(0, msgMark, [bossID, notifyHPPer])
|
| | | return
|
| | |
|
| | | def UpdateHPReduceSpeed(tick, isExit=False):
|