| | |
| | | if not state:
|
| | | if GameWorld.GetGameFB().GetFBStep() == FB_Step_Fighting:
|
| | | GameWorld.GetGameFB().SetGameFBDict(FBDict_IsOver, tick)
|
| | | __DoLogicHorsePetBossOver(0, tick)
|
| | | __DoLogicHorsePetBossOver(0, tick, 0, 0)
|
| | | return
|
| | |
|
| | | ## 进副本
|
| | |
| | | return playerHurtList
|
| | |
|
| | |
|
| | | def __DoLogicHorsePetBossOver(isPass, tick):
|
| | | def __DoLogicHorsePetBossOver(isPass, tick, dropPosX, dropPosY):
|
| | | #结算
|
| | | FBCommon.SetFBStep(FB_Step_Over, tick)
|
| | |
|
| | |
| | | if itemList:
|
| | | overDict[FBCommon.Over_itemInfo] = FBCommon.GetJsonItemList(itemList)
|
| | | if giveItemList:
|
| | | NPCCommon.DoGiveItemByVirtualDrop(player, giveItemList, bossID, mailTypeKey='QCBOSS1')
|
| | | #ItemControler.GivePlayerItemOrMail(player, giveItemList, 'QCBOSS1', event)
|
| | | NPCCommon.DoGiveItemByVirtualDrop(player, giveItemList, bossID, dropPosX, dropPosY, mailTypeKey='QCBOSS1')
|
| | |
|
| | | player.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
|
| | | FBCommon.NotifyFBOver(player, ChConfig.Def_FBMapID_HorsePetBoss, lineID, isPass, overDict)
|
| | | elif giveItemList:
|
| | |
| | | if curNPC.GetNPCID() != bossID:
|
| | | return
|
| | |
|
| | | dropPosX, dropPosY = curNPC.GetPosX(), curNPC.GetPosY()
|
| | | |
| | | #结束 设置BOSS死亡
|
| | | FBCommon.NotifyCopyMapPlayerFBHelp(tick, DoFBHelp, 0)
|
| | | GameWorld.DebugLog('结束 设置BOSS死亡 lineID=%s' % lineID)
|
| | |
|
| | | __DoLogicHorsePetBossOver(1, tick)
|
| | | __DoLogicHorsePetBossOver(1, tick, dropPosX, dropPosY)
|
| | | GameWorld.GetGameFB().SetGameFBDict(FBDict_IsOver, tick)
|
| | | return
|
| | |
|