hch
2019-04-17 da666f2472eb72d68d2d1cf863a0b1afc9b2fc75
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_HorsePetBoss.py
@@ -173,7 +173,7 @@
    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
@@ -410,6 +410,7 @@
    if not ipyDataList:
        return auctionItemList, itemList
    awardRateList = []
    awardPieRateDict = {}
    for ipyData in ipyDataList:
        worldLVList = ipyData.GetWorldLV()
        if worldLV < worldLVList[0] or worldLV > worldLVList[1]:
@@ -417,8 +418,9 @@
        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:
@@ -432,6 +434,16 @@
        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
@@ -470,7 +482,7 @@
                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):