| | |
| | | import ShareDefine
|
| | | import PlayerMail
|
| | | import DBDataMgr
|
| | | import TurnSkill
|
| | | import ObjPool
|
| | |
|
| | | def OnDay():
|
| | |
| | | return {}
|
| | | return __getBossAttrDict(ipyDataList[0])
|
| | |
|
| | | def OnFBNPCKilledBefore(curPlayer, turnFight, gameObj, killer):
|
| | | def OnFBNPCKilledBefore(curPlayer, turnFight, gameObj, killer=None, useSkill=None):
|
| | | ## 副本NPC被击杀前处理,一般用于处理一些不被击杀的副本NPC逻辑
|
| | | # @return: 可否被正常击杀
|
| | |
|
| | |
| | | GameWorld.Log("天子考验全部血条被击杀! totalHPMax=%s,statDefValueTotal=%s" % (totalHPMax, statDefValueTotal))
|
| | | return True
|
| | |
|
| | | gameObj.SetMaxHP(ipyDataNow.GetMaxHP(), True)
|
| | | gameObj.SetHP(hp, True)
|
| | | gameObj.SetMaxHP(ipyDataNow.GetMaxHP(), False)
|
| | | gameObj.SetHP(hp, False)
|
| | | GameWorld.DebugLog("更新NPC血条: hpNum=%s,hp=%s/%s, statDefValueTotal=%s" % (hpNum, gameObj.GetHP(), gameObj.GetMaxHP(), statDefValueTotal))
|
| | | TurnSkill.Sync_HPRefresh(turnFight, gameObj)
|
| | | turnFight.SetDict("hpNum", hpNum)
|
| | | turnFight.syncHelp({"hpNum":hpNum})
|
| | | #turnFight.syncHelp({"hpNum":hpNum})
|
| | | gameObj.UpdInitBatAttr(__getBossAttrDict(ipyDataNow))
|
| | | return False
|
| | |
|
| | |
| | | #更新榜单
|
| | | PlayerBillboard.UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_Tianzi, todayHurtEx, todayHurt)
|
| | |
|
| | | itemList = __getTianziAwardList(todayHurt, bossID)
|
| | | itemList = __getTianziAwardList(totalHurt, bossID)
|
| | | overMsg.update({FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(itemList), "totalHurt":totalHurt, "todayHurtTotal":todayHurtTotal})
|
| | | |
| | | turnFight.awardData = [lineID, bossID, itemList]
|
| | | return
|
| | |
|
| | | def OnTurnFightAward(curPlayer, turnFight, mapID, funcLineID, awardData):
|
| | | ## 回合战斗结算奖励
|
| | | if not curPlayer:
|
| | | return
|
| | | |
| | | if not awardData:
|
| | | return
|
| | | |
| | | lineID, bossID, itemList = awardData
|
| | | |
| | | FBCommon.AddEnterFBCount(curPlayer, mapID)
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, itemList, event=["Tianzi", False, {}], isNotifyAward=False)
|
| | | overMsg.update({FBCommon.Over_itemInfo:FBCommon.GetJsonItemList(itemList), "totalHurt":totalHurt, "todayHurtTotal":todayHurtTotal})
|
| | | SyncTianziInfo(curPlayer, lineID, bossID)
|
| | | return
|
| | |
|