cehua-TT
2018-09-21 19d4fb0bf212b590392f197982848b0b0bd1ffae
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
¥[c@s6ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    e
dƒ\Z Z Z ZZZdZdZdZdZdZd„Zd    „Zd
„Zd „Zed „Zd „Zd„Zd„Zed„Zd„Z d„Z!d„Z"dd„Z#dS(iÿÿÿÿNisDogzfb_LastRefreshTime%ssNextNeedTime%st LastCheckTicksNPCRemainCnt_%stCollectLostHPTickcCstS(N(tTrue(t    curPlayertmapIDtlineIDttick((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnEnterFBEvent6scCstS(N(R(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    OnCanOpen=scCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnChangeMapAskEscCsdS(N((RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    DoEnterFBMscCsdS(N((RRtisEnter((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytDoFBHelp^scCsdS(N((Rt
actionTypet
actionInfoR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt
DoFBActioniscCs¡|jƒ}|sdS|jƒtjkr/dStjƒj|jƒƒ}|jƒ}|j    ƒ}tj
ƒ}|j |t ƒ}t jddiƒj|dƒ}||d|}    |    dkrÖ|j|t |ƒdS|    sàdS|j|t |ƒt jddiƒj|dƒ}
d\} } tttj|ƒ|
dƒ|    tj|ƒdƒ} | dkrgdStjd||
|    | fƒtj|| | | |ƒdS(    Nt DogzFBCollectiièiigY@s<OnCollecting npcID=%s, lostHPPer=%s,lostTime=%s,lostValue=%s(iN(t GetActionObjtGetGameObjTypeR    tgotNPCt    GameWorldt GetNPCManagert GetNPCByIndextGetIndextGetNPCIDtGetIDt    GetGameFBtGetPlayerGameFBDictByKeytMap_Dogzfb_CollectLostHPTickt IpyGameDataPYtGetFuncEvalCfgtgettSetPlayerGameFBDicttNonetmintinttGameObjtGetMaxHPtGetHPtDebugLogt SkillCommont SkillLostHP(RRttagObjtcurNPCtnpcIDtplayerIDtgameFBtcollectLostHPTicktlostCDtlostTimet    lostHPPert skillTypeIDt    buffOwnert    lostValue((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt OnCollectingns4    ! ! 7 cCst|ƒdS(N(tCheckRefreshBoss(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    OnProcess”s
c    Cstjƒ}|jtƒ}|p4|o4||dks;dS|jt|ƒtjddiƒ}ttjƒƒ}tj    ƒ}i}x||j
ƒD]n\}}    |    t }
|j t |
ƒ} | sÆq‘n|j t|
ƒ} | rõ|| | krõq‘n|    ||<q‘W|s dSi} tjƒ}xptd|jƒƒD]Y}|j|ƒ}|jƒ}|sbq5n|jƒ}| j|dƒ|jƒ| |<q5Wxv|j
ƒD]h\}}    |    t }
|rÅ|    tn|    t}|jt|
|ƒ|    t}t|tƒr|gn    t|ƒ}d}x$|D]}|| j|dƒ7}qWt||    t|ƒ}|dkrötj|ƒx…|D]z}|dkr‹Pn| j|dƒ}||kr¯qunt|||ƒ}||8}t j!||
|fg|||ƒquWnt"|
|    t#ƒqŸWt$ƒdS(NiètDogzFBRefreshCfgii(%RRtGetGameFBDictByKeytMap_Dogzfb_LastCheckTickt SetGameFBDictR R!R&ttimet GetGameWorldtitemst    Def_NPCIDtGetGameWorldDictByKeytMap_Dogzfb_NextNeedTimetMap_Dogzfb_LastRefreshTimeRtxrangetGetCustomNPCRefreshCounttGetCustomNPCRefreshAttGetCounttGetRefreshMarkR"tDef_FirstRefreshCnttDef_RefreshCnttSetGameWorldDictt
Def_MaxCntt
isinstancetlistR%tDef_TotalLimittrandomtshuffletNPCCustomRefresht SetNPCRefresht__UpdateBossTimetDef_TimeFormulatSyncNPCRefreshTime(RtisFirstR1t lastCheckTicktdogzRefreshCfgtcurTimet    gameWorldt refreshDicttmarkInfot refreshInfoR/t nextNeedTimetlastRefreshTimet
npcCntDicttgameNPCtit
npcRefreshtnpcCnttrmarkt
refreshCnttmaxCnttmarkListt curTotalCnttrMarktcurCnttneedRefreshCnt((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyR:™sj  
   $
 
$      
*cCsÃtjƒjƒtjkrdStjddƒ}t|ƒ|krGdStjƒ}|j    t
ƒ}|s¿tj ddiƒ}x/|j ƒD]!}|t }t||tƒqŠWt|tƒndS(NR<ii(RtGetMaptGetMapIDtChConfigtDef_FBMapID_DogzR t
GetFuncCfgtstrRR=R>R!tvaluesRCRWRXR:R(tkeyRtbossidR1R[R\RaR/((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnOnlineCntChangeÚs 
cCsBtjƒ}|jtjƒ}t|ƒ}|jt||ƒdS(N(RRARDt ShareDefinet%Def_Notify_WorldKey_BossOnlineHeroCnttevalRNRE(R/tformulat gameWorldMgrt    onlineCnttnextTime((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRWês
  cCsGtjƒ}|jt|ƒ}|jt|ƒ}td|||ƒS(Ni(RRARDRFREtmax(R]R/RRcRb((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytGetDogzNPCRefreshTimeòs icCs’ttjƒƒ}tjddƒ}i}x'|D]}t||ƒ}|||<q1Wt||gƒ}tjƒjdddd|t    |ƒƒdS(NR<iit DogzNPCTime(
R&R@R R!RƒRvRtGetPlayerManagertGameServer_QueryPlayerResulttlen(tplayeridR]t syncNPCIDListtsyncDictR/t refreshTimetmsgStr((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRYùs (($RR R    R{RUR+R'R@RSRstrangeRCRORXRMRLRRRFRER>tMap_Dogzfb_NPCRemainCntRRRR R tFalseRRR9R;R:RzRWRƒRY(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt<module>s8                                       &     A