xdh
2018-08-24 c3f7fe300fb299f1b68c394278b626e5d0675106
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/À[c@s)dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZedƒ\ZZZZdZdZdZedƒ\ZZZZZd„Zd    „Z d
„Z!d „Z"d „Z#d „Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+e,d„Z-e,d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4id„Z5d„Z6d„Z7d „Z8d!„Z9d"„Z:d#„Z;d$„Z<dS(%sVersion = 2017-10-10 14:30iÿÿÿÿNit DuJieFB_StartDuJieFB_RealmLVtDuJieFB_LeaderPlayerIDicCstjƒ}tjtj|ƒS(N(tFBCommontGetFBPropertyMarktGetFBLineStepTimetChConfigtDef_FBMapID_DuJie(tlineID((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytGetRealmFBTimeCfg;s cCsItjƒjtƒ}tj|ƒ}|s?tjd|ƒdS|jƒS(NsûÓиþ³½çµÈ¼¶Êý¾Ý! Lv=%s(t    GameWorldt    GetGameFBtGetGameFBDictByKeyRtPlayerPrestigeSystGetRealmIpyDatatErrLogt    GetBossID(trealmLVt realmIpyData((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytGetDuJieBossID?s cCsdS(N((ttick((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFBInitKscCs@tjƒ}|jtdƒ|jtdƒ|jtdƒdS(Ni(R
R t SetGameFBDictRRR(RtgameFB((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnOpenFBSs
 cCstjƒdS(N(RtDoLogic_FBKickAllPlayer(R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    OnCloseFB_s
cCsA|jƒtjƒjtƒkr=tttjƒjƒƒndS(N(    tGetIDR
R R Rt__DoDoJieFBOvertFalset GetGameWorldtGetTick(t    curPlayer((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt DoPlayerDeadis!cCst|||ƒS(N(t __CheckEnter(R tmapIDRR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnEnterFBEventtscCs÷|dks!|jƒtjkrÃ|jƒ}tj|ƒ}|sWtjd|ƒtS|j    ƒ}|s‡tj
d||j ƒƒtSt j |tj|tƒsÃtj
d||j ƒƒtSntj|tjƒsótj
d|jƒƒtStS(NisûÓиþ³½çµÈ¼¶Êý¾Ý! Lv=%ss!¾³½çÒÑÊÇ×î´óµÈ¼¶£¬²»ÄÜÉý¼¶! Lv=%ss/¾³½çÐÞÁ¶µã²»×㣬ÎÞ·¨¿ªÆô¶É½Ù£¡needRealmPoint=%ss)¾ôλ¾³½ç¹¦ÄÜ먦Æô, ÎÞ·¨¿ªÆô¶É½Ù!curLV=%s(t    GetTeamLVt IPY_GameWorldt    tmlLeadertGetOfficialRankR RR
RRt GetNeedPointtDebugLogt GetPlayerIDt PlayerControlt    HaveMoneyt ShareDefinetTYPE_Price_RealmPointt GameFuncCommt GetFuncCanUsetGameFuncID_OfficialtGetLVtTrue(R R#Rt
curRealmLVRtneedRealmPoint((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyR"}s"!  cCs|S(N((R R#tlineIdtipyEnterPosInfoR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetFBEnterPos›scCstjS(N(R&t    cmeAccept(taskR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnChangeMapAsk¥sc
Csýtjƒ}|jƒ}|tkr5tj|ƒdS|jtjƒ}t    j
ƒsst    j |ƒt    j t |ƒntƒ}|jtƒsx,|tD] }tj|tj|dƒq–Wtjdƒ|dksè|jƒtjkrt|ƒ|jƒtkrt|ƒqqn|dko5|jƒtjk}t    j||ƒ}tj|tj|tj|ƒ|jƒ}|t krŸt ||t!d||ƒnM|tkrìt"|t#d||j$ƒdƒ}    |j%tj&d|    t'ƒnt(||ƒdS(Nis Íæ¼Ò½øÈ븱±¾iiè()R
R t    GetFBSteptFB_Step_LeaveTimeR,t PlayerLeaveFBtNomalDictGetPropertyRtDef_Player_Dict_ReqFBFuncLineRtGetHadSetFBPropertyMarktSetFBPropertyMarkt    SetFBSteptFB_Step_MapPrepareR    R RtDef_HelpAddAttrIDtNomalDictSetPropertytDef_PDict_RealmFBAttrAddR*R%R&R't__SetFBLeaderPlayertFB_Step_Fightingt__OnDuJieFBStartt GetFBJoinTypet EventReportt WriteEvent_FBRt CME_Log_Startt__EnterFBInPreparetDef_Time_MapPreparetmaxtDef_Time_Fightt GetFBStepTickt Sync_TimeTickt tttTowerTakeR4tDoFBHelp(
R RRtfbStepRt
DuJieFBCfgtattrIDt isHelpFighttjoinTypet
notifyTick((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    DoEnterFB®s:           !
!   % cCsctjƒ}|jt|jƒƒ|jt|jƒƒtj|ƒt    j
|ƒt |t ƒdS(N( R
R RRR+RR(R tSyncRealmFBStateRtUpdateFBEnterTicktOnGetMemberForHelpDujieR(R R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRIÜs    cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    R
R R=REt__DoLogic_MapPrepareRJt__DoLogic_MapFightingR>t__DoLogic_MapLeave(RRX((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt    OnProcessìs      cCsudStjƒ}|jtƒ}|dkr/|Sttj||jƒdƒƒ}tƒ}|t    }d}d}x<t
|dƒD]+\}    }
||
kr|    }|
|}qqW||krÇ| rÇ|S|j t|ƒtj d||||fƒtj ƒ} xnt| jƒƒD]Z} | j| ƒ} | s4qnt| |ƒ|dkr| jtjd|dtƒqqW|S(Nig@@iisB__UpdDuJieFBStar useSecond=%s,curStar=%s,updStar=%s, diffSecond=%siè(R
R R RtinttmathtceilRTR    t Def_StarTimet    enumerateRR*tGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndexRWRUR&t tttFlagTakeR4(RtisForceRtcurStart    useSecondRYt starTimeListt
diffSecondtupdStartstartstarTimet playerManagertindexR ((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt__UpdDuJieFBStarùs8  #    
        $cCs\t|||jƒdƒ}|jtjd|tƒ|rX|jtjd|tƒndS(Ni(RRRTRUR&t tttWaitStartR4t tttAddUpTime(R tdownTimeRRt    notifyEffR]((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRPs
cCsOtƒ}|tjƒjƒ|tdkr1dStjt|ƒt|ƒdS(Niè(    R    R
R RTRQRRDRJRK(Rt    invadeCfg((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRb)s     $
cCsLtƒ}|tjƒjƒ|tdkr>tt|ƒdSt|ƒdS(Niè(R    R
R RTRSRRRz(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRc2s     $ 
cCs5tƒ}|tjƒjƒ|tdkr1dSdS(Niè(R    R
R RTtDef_Time_Leave(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRd;s    $c
Cs:tjƒjtƒs¢t}tjƒ}x^t|jƒƒD]J}|j|ƒ}|s[q:n|j    ƒt
j kr:t |ƒt }Pq:q:W|s¢tjdƒdSntƒ}tƒ}|s¾dStjƒjƒ}tjƒ}tj||ƒ}    tj|    |gƒtjt
j|tdƒtj|tƒt|ƒdS(Ns+    ×¼±¸µ¹¼ÆÊ±Òѹý£¬¶Ó³¤ÈÔδ½øÈ븱±¾£¡£¡£¡ iè(R
R R RRRkRlRmRnR%R&R'RIR4tLogR    RtGetMaptGetMapIDRRtGetFBLineRefreshNPCtNPCCustomRefresht SetNPCRefreshtSync_Player_TimeTickRVRStNotifyCopyMapPlayerFBHelpRWRz(
Rt
findLeaderRxRyR RYtbossIDR#RtrefreshBossMark((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRKCs4 
          
c
CsÍtjƒ}|jƒtkr"dStjdƒtƒ}||jƒ}tjt    |ƒ|j
t ƒ}tj ƒ}|j |ƒ}|s‘t}nt||gƒ}tjƒjdddd|t|ƒƒ|j
tƒ}    |j
tƒ}
tj|
ƒ} tjƒ} |td} i|tj6|    tj6|tj6}xt|jƒƒD]|}|j|ƒ}|dksI|j ƒr|qIn| dko—|j!ƒ|k}tj"||ƒ}t#j$|t%j&| t%j'||ƒ|j(t)j*d| t+ƒtj,|t%j&| ||ƒ|rI|rI|j!ƒ|kratj-||
|    ƒtj.|t%j/t%j&dƒtj0|ƒn6t1||| |    ƒt2j3|ƒtj4|t%j&dƒ| rÅ| j5ƒrÅt6j7|t8j9dƒqÅqIqIWdS(Ns´¦Àí¶É½Ù¸±±¾½áÊøÂß¼­it DuJieFBOverièi(:R
R R=RJR*R    RTRRDR>R RRktFindPlayerByIDRtstrtGetPlayerManagertGameServer_QueryPlayerResulttlenRRR RRR€t Over_costTimet
Over_gradet Over_leaderIDRlRmRntNonetIsEmptyR+RLRMRNRRt CME_Log_EndRUR&t tttLeaveMapR4t NotifyFBOvertDologicDujieFBPasstSetFBPDictValuetDef_PDict_LastEnterFBTicktSyncFBEnterTickt__GiveTeamAwardt
EventShelltEventRespons_DujieFBHelpPasstAddFBHelpPointt GetIsBigRealmt PlayerSuccesstDoAddSuccessProgressR.tSuccType_DujieFBHelpPass(tisPassRRRtcostTimetleaderPlayerIDtcopyMapPlayerManagert leaderPlayertmsgStrRqRRRt    leaveTicktoverDicttiR R[R\((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRbsP           ( $"   c Cs|s
dS|jƒ}|s dS|j|gƒ}t|ƒ}tj|tj|ƒ}t||kƒ}|r¹tj    d|j
ƒg||j ƒgƒt j dt|ƒ|j
ƒƒnHxE|D]=\}    }
} tj||    |
| tjgddtigƒqÀWdS(Nt RealmFBTeams'±³°ü¿Õ¼ä²»¹»£¬·¢ËÍÓʼþ: mailItemList=%steventtDojie(t GetTeamAwardtgetR‘t
ItemCommontGetItemPackSpaceR&trptItemRfR,t SendMailByKeyR+t GetPlayerNameR
R*RŽt ItemControlertGivePlayerItemR( R RªRRqt teamAwardDictt prizeItemListt    needSpacet
emptySpacet
isSendMailtitemIDtitemCnttisBind((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRžs   (#cCs<tjƒ}|jtƒ}||tj<tj||ƒdS(N(R
R R RRt Help_leaderIDt Notify_FBHelp(R RthelpDictRR¨((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRW·s
  cCs=|jƒ}|tƒkrdStjdƒtt|ƒdS(Ns¶É½ÙÒѱ»»÷ɱ£¡(tGetNPCIDRR
R*RR4(R tcurNPCRRŠ((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytDoFB_Player_KillNPCÆs    cCs&tjƒ}|jƒtkr"tStS(N(R
R R=RJRR4(tattackertdefenderR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytCheckCanAttackTagObjInFBÖs cCs‚|jƒtjƒjtƒkr%dS||jtjƒtj    ddƒkr^tj
dƒdS|j tj|ƒt |t ƒdS(NtRealmFBHelpAttris µã»÷¹ÄÎè¼ä¸ô(R+R
R R Rt GetTickByTypeRtTYPE_Player_Tick_DuJieInspiret IpyGameDataPYt
GetFuncCfgR*t SetTickByTypeRaR4(R t
actionTypet
actionInfoR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt
DoFBActionâs!(  cCsµtjƒjtƒ}tj|ƒ}|s.dS|jƒrKtjdƒdStjdƒ|jt    j
t j ƒ}t ||gƒ}tjƒj|jƒddd|t|ƒƒdS(Ns´ó¾³½ç¶É½Ù£¬²»ÄÜÇëÇóÊØ»¤£¡sÏòÃËÓÑѰÇó¶É½ÙÊØ»¤£¡itGetMemberForHelpDujie(R
R R RR RR¢R*R@RRHR.tDef_Effect_BaseAtkAddPerRŽRRRR‘(R t    isInspireRRtatkAddR«((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyRaðs   .c Cs/tjdƒ}i}d}xw|D]o\}}|jt|ƒiƒ}x4|jƒD]&\}}    |j|dƒ|    ||<qSW|d||f7}q"WxP|jƒD]B\}}    t|ƒtƒtkr¢tj    |t
j ||    ƒq¢q¢Wtj|ƒj ƒ|r|d }ni|d6}
t |d|
ƒdS(NRÌtis%s|%s,iÿÿÿÿthelpInfo(RÏtGetFuncEvalCfgR³RŽtitemsRfR    RFR,RGRRHtRefreshPlayerAttrByBuffRW( R RÚtrealmFBHelpAttrDictt totalAttrDictt
fbhelpInfothelpTypetnametattrDictRZt    attrValueRÅ((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnGetDuJieHelpInfos"!  cCsÇtj|jƒƒtjkr"dStjƒjtƒ}|j    ƒ|krMdSt
ƒ}|s`dStj d|ƒx>t
ƒt D]/}|j tj|ƒ}tj|||ƒqWtj d|ƒdS(Ns»¤·¨ÊôÐÔ¼ÆËã allAttrList=%ss»¤·¨ÊôÐÔ¼ÆËã½á¹û allAttrList=%s(RtGetRecordMapIDRƒRRR
R R RRR    R*RFR@RHR,tCalcAttrDict_Type(R t allAttrListR¨tfbcfgRZRä((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytCalcDujieFBAttrAdds    cCstS(N(R4(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pytOnPlayerReborn5s(=t__doc__RRR&R,R
R…RÏR R0R´R.R¹R£RŸRMRgttimetranget FB_Step_OpenRERJR>RRRRQRSR€RiRFR    RRRRR!R$R"R9R<R^RIReRRzRPRbRcRdRKRRžRWRÈRËRÔRaRåRêRë(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_DuJie.pyt<module>sf                                           
                     
            .         &
                            ;