| | |
| | | break
|
| | |
|
| | | #此处只处理复活的
|
| | | PlayerGeTui.GeTuiBossReborn(bossID)
|
| | | #PlayerGeTui.GeTuiBossReborn(bossID)
|
| | | __SetIsAlive(bossID, 1)
|
| | | syncBOSSIDList.append(bossID)
|
| | |
|
| | |
| | |
|
| | | #BOSS个推提前倒计时通知处理, 复活由DoCheckWorldBossReborn处理
|
| | | def ProcessBossGeTui(tick):
|
| | | if not GameWorld.SetWorldDictKey(ChConfig.TYPE_WorldBossGeTuiTick, tick):
|
| | | #间隔未到 |
| | | return
|
| | | if GameWorld.IsCrossServer():
|
| | | return
|
| | | curTime = int(time.time())
|
| | | for bossInfo in PyGameData.g_sortBOSSRefreshList:
|
| | | bossID, killedTime, refreshTime = bossInfo
|
| | | isAlive = __GetIsAlive(bossID)
|
| | | if isAlive:
|
| | | #GameWorld.DebugLog(" bossID=%s,未被击杀!" % bossID)
|
| | | continue
|
| | | rebornSecond = max(0, refreshTime - (curTime - killedTime))
|
| | | if not rebornSecond:
|
| | | #不处理复活BOSS
|
| | | continue
|
| | | |
| | | PlayerGeTui.GeTuiBoss(bossID, rebornSecond)
|
| | | return
|
| | | # if not GameWorld.SetWorldDictKey(ChConfig.TYPE_WorldBossGeTuiTick, tick):
|
| | | # #间隔未到 |
| | | # return
|
| | | # if GameWorld.IsCrossServer():
|
| | | # return
|
| | | # curTime = int(time.time())
|
| | | # for bossInfo in PyGameData.g_sortBOSSRefreshList:
|
| | | # bossID, killedTime, refreshTime = bossInfo
|
| | | # isAlive = __GetIsAlive(bossID)
|
| | | # if isAlive:
|
| | | # #GameWorld.DebugLog(" bossID=%s,未被击杀!" % bossID)
|
| | | # continue
|
| | | # rebornSecond = max(0, refreshTime - (curTime - killedTime))
|
| | | # if not rebornSecond:
|
| | | # #不处理复活BOSS
|
| | | # continue
|
| | | # |
| | | # PlayerGeTui.GeTuiBoss(bossID, rebornSecond)
|
| | |
|
| | |
|
| | | def GetBossIsAliveOrCanReborn(bossID):
|