hxp
2019-02-13 2120cc2ad13c74ed1c5b4f9432c83c9d37182a12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/python
# -*- coding: GBK -*-
#-------------------------------------------------------------------------------
#
##@package GM.Commands.Bossall
#
# @todo:¸´»îËùÓÐboss
# @author hxp
# @date 2018-06-19
# @version 1.0
#
# ÏêϸÃèÊö: ¸´»îËùÓÐboss
#
#-------------------------------------------------------------------------------
#"""Version = 2018-06-19 11:00"""
#-------------------------------------------------------------------------------
import PyGameData
import GameWorldBoss
import GameWorld
import time
 
## Ö´ÐÐÂß¼­
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param gmList []
#  @return None
def OnExec(curPlayer, gmList):
    bossIDList = []
    for i, bossInfo in enumerate(PyGameData.g_sortBOSSRefreshList):
        bossID, killedTime, refreshTime = bossInfo
        isAlive = GameWorldBoss.__GetIsAlive(bossID)
        if isAlive:
            continue
        refreshTime = 0
        killedTime = 0
        PyGameData.g_sortBOSSRefreshList[i] = [bossID, killedTime, refreshTime]
        bossIDList.append(bossID)
    curTime = int(time.time())
    PyGameData.g_sortBOSSRefreshList.sort(key=lambda asd:max(0, asd[2] - (curTime - asd[1])))
    GameWorld.DebugAnswer(curPlayer, "ÖØÉúboss:%s" % bossIDList)
    return