| | |
| | | if atkObjType == IPY_GameWorld.gotPlayer:
|
| | | NotifyBattlefieldHelp(False, atkObj) # 击杀的暂只实时通知自己
|
| | |
|
| | | # 玩家被玩家击杀,掉落个人buff
|
| | | if defObjType == IPY_GameWorld.gotPlayer:
|
| | | DoDropPersonBuffOnKilled(atkObj, defObj, tick)
|
| | | |
| | | # 玩家被击杀,掉落个人buff
|
| | | if defObjType == IPY_GameWorld.gotPlayer:
|
| | | DoDropPersonBuffOnKilled(atkObj, defObj, tick)
|
| | | |
| | | return
|
| | |
|
| | | def DoFB_NPCDead(curNPC):
|
| | |
| | | NotifyBattlefieldHelp()
|
| | | return
|
| | |
|
| | | def DoDropPersonBuffOnKilled(atkPlayer, defPlayer, tick):
|
| | | def DoDropPersonBuffOnKilled(atkObj, defPlayer, tick):
|
| | | dropPersonBuffNPCList = IpyGameDataPY.GetFuncEvalCfg("CrossBattlefieldDropPersonBuff", 1)
|
| | | if not dropPersonBuffNPCList:
|
| | | return
|
| | | |
| | | atkObjType = atkObj.GetGameObjType()
|
| | | playerID = atkObj.GetPlayerID() if atkObjType == IPY_GameWorld.gotPlayer else 0
|
| | |
|
| | | dropNPCIDList = []
|
| | | for npcID in dropPersonBuffNPCList:
|
| | |
| | | if not dropX:
|
| | | continue
|
| | | npcID = dropNPCIDList.pop(0)
|
| | | NPCCommon.SummonMapNpc(npcID, dropX, dropY, playerID=atkPlayer.GetPlayerID())
|
| | | NPCCommon.SummonMapNpc(npcID, dropX, dropY, playerID=playerID)
|
| | |
|
| | | return
|
| | |
|