CeHua_ZWJ
2018-11-22 f0a230af3a2f7e7a618de86fc9eedd3e01e43291
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
M‚Ò[c@s2ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZdZdZdZdZdZdZdZd    Zd
Zed ƒ\ZZZ d „Z!d „Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d „Z5d!„Z6d"„Z7d#„Z8d$„Z9d%„Z:d&„Z;dS('iÿÿÿÿNs FBPD_Score%st FBPD_KillCnttFBPD_LastCheckTicktFBPD_ContKillCntExsFBPlayerDict_TotalExp%ssFBPlayerDict_TotalExpPoint%st FBPD_EnemyIDtMap_ElderBattlefield_StartTicktMap_ElderBattlefield_TopPlayericCsutjƒjƒ}|tjkr%dStjd|ƒ|dkrqtjƒjt|ƒtjƒjt    dƒndS(Ns!    ÉϹÅÕ½³¡»î¶¯×´Ì¬±ä¸ü state=%sii(
t    GameWorldtGetMaptGetMapIDtChConfigtDef_FBMapID_ElderBattlefieldtDebugLogt GetGameWorldtSetGameWorldDictRR(tstatetticktmapID((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnElderBattlefieldStateChangeBs cCsetjƒjƒ}tjƒjƒd}tj||ƒ}|rax|D]}tj|ƒqGWndS(Ni(    RRRR t GetPropertyIDtFBCommontGetFBLineRefreshNPCtNPCCustomRefreshtSetNPCRefreshByID(RRtlineIDt refreshIDListt    refreshID((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnOpenFBWs cCstjƒjdƒdS(Ni(RR t SetPropertyID(R((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt    OnCloseFBfscCstjd||fƒtS(NsOnEnterFBEvent map %s - %s(RR tTrue(t    curPlayerRRR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnEnterFBEventqscCstjd|jƒƒtjS(NsOnChangeMapAsk  CopyMapID=%s(RR t GetCopyMapIDt IPY_GameWorldt    cmeAccept(taskR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnChangeMapAskzscCsc|jƒ}tjd|ƒtjƒ}|jƒ}tjƒjtƒ}tdt    j
t j ƒd||ƒ}|s‡t j|ƒdS|jtjd|tƒt    j|ƒsRt    j|ƒt    j|t j ƒt j|t jdƒtjƒjt|dƒtjƒjt|dƒtjƒjt|dƒtj|t j dt jƒnt||ƒdS(Ns DoEnterFB...iiè( t GetPlayerIDRR t    GetGameFBt    GetFBStepR tGetGameWorldDictByKeyRtmaxRtGetFBLineStepTimeR    R
t PlayerControlt PlayerLeaveFBt Sync_TimeTickR!t tttTowerTakeRtGetHadDelTickettSetHadDelTickettAddEnterFBCounttNomalDictSetPropertyt%Def_Player_Dict_ElderBattlefieldStageR tFBPlayerDict_ScoretFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointt EventReportt WriteEvent_FBt CME_Log_StarttDoFBHelp(RRtplayerIDtgameFBtfbStept    startTicktcloseFB_RemainTick((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt    DoEnterFB…s(   '   cCs tj|ƒS(N(trandomtchoice(RRtlineIdtipyEnterPosInfoR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnGetFBEnterPos¨scCsytjtjdƒ}tj|ƒ}t|ƒdkr<dn|d}tj|d|d|ƒ}|j    ƒ|j
ƒfS(Niiii( RtGetFBLineEnterPosInfoR    R
RARBtlentGameMaptGetEmptyPlaceInAreatGetPosXtGetPosY(RDtenterPostdisttposPoint((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt __GetRandPos¬s
"cCs7tjdƒ}x!|D]}tj|||ƒqWdS(NtElderBattlefieldBuff(t IpyGameDataPYtGetFuncEvalCfgt    BuffSkilltDelBuffBySkillID(RRt
buffIDListtbuffID((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytDoExitFB·s cCst|ƒdS(N(tOnElderBattlefieldFBResult(RR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytDoPlayerLeaveFBÁs
cCst|ƒdS(N(RX(R((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytDoPlayerChangeMapLogicÇs
cCs¦tjƒjƒ}|tkrFtjtjƒr¢tjt    |ƒq¢n\|t    kr¢tjtjƒs•t
ƒtjt |ƒtj ƒt j|ƒq¢t|ƒndS(N(RR&R't FB_Step_OpenRtGetFBFuncOpenStateR    R
t    SetFBSteptFB_Step_Fightingt GiveJoinPrizet FB_Step_OvertDoLogic_FBKickAllPlayertGameWorldProcesstCloseFBt__CheckRefreshBuffNPC(RR=((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt    OnProcessÏs  
 cCsrtjƒ}|jtƒ}|r5||dkr5dS|jt|ƒtjddƒ}tjddƒ}g}d}tjƒ}xvt    d|j
ƒƒD]_}|j |ƒ}    |    j ƒ}
|
|krÊq—n||    j ƒ7}|    j ƒs—|j|
ƒq—q—W||} | sdStj|ƒtjddƒ} x1||  D]%} tj| | dfgddƒq8Wtj|ƒdS(Ni'RPiiiii(RR&tGetGameFBDictByKeyRt SetGameFBDictRQRRt
GetFuncCfgt GetNPCManagertrangetGetCustomNPCRefreshCounttGetCustomNPCRefreshAttGetRefreshMarktGetCounttappendRAtshuffleRt SetNPCRefreshtProcessAllNPCRefresh(RR<t lastCheckTicktallRmarktmaxCntt    rmarkListtnpcCnttgameNPCtit
npcRefreshtrmarkt
needAddCnttnpcIDtrMark((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyRdßs6     
 # cCsêtjƒ}xQt|jƒƒD]=}|j|ƒ}|dks|jƒrRqnt|ƒqWtjƒj    t
ƒ}|ræt j dƒ}|rÍt jd|g|ƒt jddtj|ddgƒntjƒjt
dƒndS(NtElderBattlefieldTopAwardtElderBattlefieldTopMailitElderBattlefieldBest(RtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonetIsEmptyRXR R(RRQRRR+t SendMailByKeyt WorldNotifyt
PyGameDatatg_sgzztopPlayerNameR (tcopyMapPlayerManagerRyRt topPlayerIDt topAwardList((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyR_s 'c Cstjd|jƒƒd}tjtj|ƒ}|jtjdƒ}|j    |gƒ}t
j |t j t jgƒ}t
j||tƒ}| rž| rždSg}x*|D]"\}}    |j||    dgƒq«Wx0|jƒD]"\}}    |j||    dgƒqÞWt|ƒ}
tj|tj|
ƒ} | |
krStjd|jƒg|ƒnHxE|D]=\}}    } tj|||    | tjgddtigƒqZWitj|ƒtj6tj|jƒƒtj6} tj|tj|d| ƒtj |tjdƒdS(Ns    Íæ¼Ò´¦ÀíÉϹÅÕ½³¡½áËãÐÅÏ¢ %siitElderBattlefieldMailteventtElderBattlefield(!RR R%RtGetFBLineRewardR    R
tNomalDictGetPropertyR3tgett PlayerSuccesstGetCanGetAwardSuccByTypet ShareDefinetSuccType_ElderBattlefieldKillt SuccType_ElderBattlefieldConKillt GiveSuccAwardtFalseRotitemsRGt
ItemCommontGetItemPackSpaceR!trptItemR+Rˆt ItemControlertGivePlayerItemtGetJsonItemListt Over_itemInfotOver_succItemInfot NotifyFBOverR2(RRt fbRewardDicttcurStagetitemListt
succIDListt succAwardDicttrewardItemListtitemIDtitemCntt    needSpacet
emptySpacetisBindtoverDict((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyRXs0  22cCsè|jƒ}tjƒ}|jt|ƒ|}|jt||ƒ|jtƒ}| sr||jt|ƒkr°|jt|ƒ|jƒ}|t_    t
j dd|gƒn|jtƒ|krGtj ƒ}xst d|jƒƒD]Y}    |j|    ƒ}
|
dksç|
jƒ rqçn|
jƒ|kr3qçnt|
dƒqçWn|jtjdƒ} tjddƒ} | t| ƒkrä|| | kräd} t
j|ƒ}tjdƒ}x^| | D]R}||kr¿| j|ƒd}ttjd|||ƒƒ}| |7} q¿q¿Wtjd| || f|ƒt
j
|ƒj| ƒ|jt |ƒ}|jt!|ƒ}|tj"|}|| }|tj"}|tj"}|jt ||ƒ|jt!||ƒt
j#|tj|ƒn|S(    NitAncientBattlefield_9tElderBattlefieldCfgitElderBattlefieldExpisElderBattlefieldExp%ss&curStage=%s,updStage=%s,addTotalExp=%s($R%RR R(R4R RtGetNameRŠR‹R+R‰tGetPlayerManagerRjR„R…R†t    GetInitOKR:R“R    R3RQRRRGtGetPlayerReExptindextevaltFormulaControltGetCompileFormulaR tAddExpR5R6tDef_PerPointValueR2(RR<taddValueR;t    gameWorldtupdScoreRttopNamet playerManagerRytplayerR§tstageScoreListt addTotalExptreExptexpFormulaDicttscoretupdStagetaddExptexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt __AddElderBattlefieldPlayerScore=sT         "  
  c CsXtjƒ}|jƒ}|jt|ƒ}tjddƒ}t|jt    j
dƒdt |ƒƒ}|jt |ƒ}|jt |ƒ}i|tj6|tj6|tj6|tj6}    |jtƒ}
|jt|
ƒ} |
rêtjnd|    d<|
r| nd|    d<|
|    d<tjƒj|tƒ|    d    <tjd
|    |ƒtj||    ƒdS( NR³iiitRÂttopScoreRtenemyIDs DoFBHelp %s(RR R%R(R4RQRRtminR“R    R3RGR5R6Rt
Help_scoret    Help_steptHelp_expt Help_expPointRRŠR‹R&tGetPlayerGameFBDictByKeytFBPlayerDict_EnemyIDR t Notify_FBHelp( RRRÀR;RÉRÅR§RÌRÍthelpDictRRÔ((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyR:ws$  (
cCsßtjƒ}|jƒ}tjd|ƒ|j|tƒd}|j|t|ƒ|j|tƒd}|j|t|ƒtj    ddƒ}tj    ddƒ}tj    ddƒ}    ||kr&||    dkr&t
|||    t |ƒdƒ}
t j ||
|jƒ|gƒt j|d|gƒn|dkrKt j|ddgƒntj|tjdƒtj|tjd|gƒ|jƒ} |j| tƒ} | |krÏt j d    |jƒ|jƒ| gƒn|j| tdƒtj    d
dƒ} |j| t|ƒ| |j|tƒkr[t j|d ƒ|j|tdƒ| tj    d dƒ7} n| tjƒjtƒkr| tj    d dƒ7} nt||| ƒ}tjd ||| |f|ƒt||ƒt||ƒtS(NtDoFBOnKill_PlayeritElderBattlefieldSysiiitAncientBattlefield_10itAncientBattlefield_7R³tAncientBattlefield_8tElderBattlefieldPoints4»÷É±Íæ¼Ò: »÷ɱ=%s,Á¬É±=%s,tagPlayerID=%s,updScore=%s(RR&R%R RÛtFBPlayerDict_KillCnttSetPlayerGameFBDicttFBPlayerDict_ContKillCntExRQRhRÖRGR+tFBNotifyRµt
NotifyCodeR•tDoAddSuccessProgressR—R˜R™RÜR R(RRÒR:R(RtdefenderRR<R;tkillCntt contKillCntExt ckillSysListtbaseCnttperCnttsysIndext tagPlayerIDtdefContKillCntExtaddScoreRÁ((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyRߗsJ  !    (      cCsptjƒ}|jƒ}|jƒ}tjddƒ}|j|ƒ}|sOdSt|||ƒt||ƒdS(NR³i(    RR&R'tGetNPCIDRQRRR”RÒR:(RtcurNPCRR<R=tnpcidtkillNPCScoreDictRô((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytDoFB_Player_KillNPCÓs    c    Cs¨|jƒ}tjddƒ}||kr.dStjdƒ}x!|D]}tj|||ƒqDWtj|ƒ}tj    ƒj
|ƒ}t j |||t |ddƒdS(NRPii(RõRQRhRRRSRTRARBRt GetGameDatatGetSkillBySkillIDt
SkillShellt__DoLogic_AddBuffR›(    RRöRR÷t    buffNPCIDRURVt    addBuffIDtcurSkill((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnMoveTouchNPCâs   cCst||ƒ S(N(tCanAttackPlayer(Rt curTagPlayer((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytCheckPlayersRelation_IsFriendùscCs t||ƒS(N(R(RR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytDoCanAttackTeamerscCstjƒ}|jƒ}tS(N(RR&R'R(RRR<R=((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyR    s  cCstS(N(R(((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnPlayerRebornscCst|ƒdS(N(t__SetPlayerRandomPos(Rt rebornPlaceR((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytOnResetFBRebornPlacePoss
cCs#tƒ\}}|j||ƒdS(N(ROtResetPos(RtposXtposY((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyR!scCstjddƒS(NR³i(RQRh(((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pytGetFBLineMaxPlayerCount*s(<R    RRR+RQRbRR R!R—R•RHRSR»RŠRRüR7RAttimeR4RåRRçR5R6RÜRRRjR[R^R`RRRRR$R@RERORWRYRZReRdR_RXRÒR:RßRùRRRRRR    RR (((s|.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ElderBattlefield.pyt<module>sp                    
                              #             
                )        !    :         <