| | |
| | | worldInfo["eventEndTick"] = max(0, self.eventEndTick - tick) # 事件结束剩余时间,单位毫秒
|
| | | if self.eventNPCHP:
|
| | | worldInfo["eventNPCHP"] = self.eventNPCHP
|
| | | crystalAtkedList = []
|
| | | for npcID in GetCrystalNPCIDList():
|
| | | curNPC = GameWorld.FindNPCByNPCID(npcID)
|
| | | if not curNPC:
|
| | | continue
|
| | | if curNPC.GetPlayerHurtList().GetHurtCount() > 0:
|
| | | crystalAtkedList.append(npcID)
|
| | | worldInfo["crystalAtkedList"] = crystalAtkedList
|
| | | return {"worldInfo":worldInfo}
|
| | |
|
| | | def RandSuperTask(self):
|
| | |
| | |
|
| | | eventRefresCD = IpyGameDataPY.GetFuncCfg("CrossBattlefieldEvent", 4) * 1000
|
| | | if worldObj.lastEventEndTick and eventRefresCD and (tick - worldObj.lastEventEndTick) < eventRefresCD:
|
| | | GameWorld.DebugLog("事件刷新CD中!")
|
| | | #GameWorld.DebugLog("事件刷新CD中!")
|
| | | return
|
| | |
|
| | | fbPropertyID = GameWorld.GetGameWorld().GetPropertyID()
|
| | |
| | |
|
| | | return True
|
| | |
|
| | | ## 开始采集
|
| | | def OnBeginCollect(curPlayer, curNPC):
|
| | | tick = GameWorld.GetGameWorld().GetTick()
|
| | | FBCommon.NotifyCopyMapPlayerFBHelp(tick, DoFBHelp, 0, refreshCrossBattlefield)
|
| | | return
|
| | |
|
| | | ##玩家收集成功(塔, 旗)
|
| | | def OnCollectOK(curPlayer, npcID, tick):
|
| | | GameWorld.DebugLog("OnCollectOK npcID=%s" % npcID, curPlayer.GetPlayerID())
|