| | |
| | | playerName = curPlayer.GetName()
|
| | | gameWorld.SetDict(FamilyPartyFB_QuestionID%curFamilyid, 0)
|
| | | gameWorld.SetDict(FamilyPartyFB_AnswerTick%curFamilyid, tick)
|
| | | PlayerControl.FamilyNotify(curFamilyid, 'Party_Answer', [playerName])
|
| | |
|
| | | if curFamilyid in PyGameData.g_familyAnswerDict:
|
| | | PyGameData.g_familyAnswerDict[curFamilyid][0] +=1
|
| | | PyGameData.g_familyAnswerDict[curFamilyid][1] = tick
|
| | |
| | | import ItemControler
|
| | | import PlayerWeekParty
|
| | | import PlayerActivity
|
| | | import NPCCommon
|
| | | import EventReport
|
| | | import GameObj
|
| | |
|
| | |
| | | if not state:
|
| | | if not GameWorld.GetGameFB().GetGameFBDictByKey(FBDict_IsOver):
|
| | | GameWorld.GetGameFB().SetGameFBDict(FBDict_IsOver, tick)
|
| | | __DoLogicAllFamilyBossOver(0, tick)
|
| | | __DoLogicAllFamilyBossOver(0, tick, 0, 0)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | return playerHurtList
|
| | |
|
| | |
|
| | | def __DoLogicAllFamilyBossOver(isPass, tick):
|
| | | def __DoLogicAllFamilyBossOver(isPass, tick, dropPosX, dropPosY):
|
| | | #结算
|
| | | FBCommon.SetFBStep(FB_Step_Over, tick)
|
| | | msgStr = str([])
|
| | |
| | | batchPlayerIDList, batchAddItemList, batchParamList, batchDetailList = [], [], [], []
|
| | | event = ["AllFamilyBoss", False, {}]
|
| | | needMemberCnt = IpyGameDataPY.GetFuncCfg('LeagueBOSSNumber1')
|
| | | bossID = CurFBLineBOSSID(lineID)
|
| | | for rank, hurtInfo in enumerate(playerHurtList, 1):
|
| | | familyID = hurtInfo[0]
|
| | | memberIDList = hurtInfo[1][2]
|
| | |
| | | member = playerManager.FindPlayerByID(memberID)
|
| | | if member:
|
| | | if menberItemList:
|
| | | ItemControler.GivePlayerItemOrMail(member, menberItemList, 'LeagueBOSS1', event)
|
| | | NPCCommon.DoGiveItemByVirtualDrop(member, menberItemList, bossID, dropPosX, dropPosY, mailTypeKey='LeagueBOSS1')
|
| | | #ItemControler.GivePlayerItemOrMail(member, menberItemList, 'LeagueBOSS1', event)
|
| | | member.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
|
| | | FBCommon.NotifyFBOver(member, ChConfig.Def_FBMapID_AllFamilyBoss, lineID, isPass, overDict)
|
| | | elif menberItemList:
|
| | |
| | | GameWorld.DebugLog('结束 设置BOSS死亡')
|
| | |
|
| | | GameWorld.GetGameFB().SetGameFBDict(FBDict_IsOver, tick)
|
| | | |
| | | __DoLogicAllFamilyBossOver(1, tick)
|
| | | dropPosX, dropPosY = curNPC.GetPosX(), curNPC.GetPosY()
|
| | | __DoLogicAllFamilyBossOver(1, tick, dropPosX, dropPosY)
|
| | | return
|
| | |
|
| | |
|
| | |
| | | # if mapID != ChConfig.Def_FBMapID_FamilyParty:
|
| | | # return
|
| | | #
|
| | |
|
| | | |
| | | addPoint, addExp = IpyGameDataPY.GetFuncEvalCfg('PartyReward', 2)
|
| | | #仙盟贡献度
|
| | | PlayerFamily.AddPlayerFamilyActiveValue(curPlayer, addPoint, True, ShareDefine.Def_AddFAVReason_FamilyParty, True)
|
| | | #答题经验更新
|
| | | PlayerControl.PlayerControl(curPlayer).AddExp(addExp, ShareDefine.Def_ViewExpType_SysEx)
|
| | | |
| | | PlayerControl.FamilyNotify(curPlayer.GetFamilyID(), 'Party_Answer', [curPlayer.GetName(), addPoint])
|
| | | curAnswerCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyPartyAnswerCnt)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FamilyPartyAnswerCnt, curAnswerCnt + 1)
|
| | |
|