cehua_lyf
2019-01-30 c7402adca55bbc5a4289b6b8b3f5379814b4c565
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
¬Q\c@s¿ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZdZdZdZdZdZdZdZd    Zd
Zd Zd Zd Zedƒ\Z Z!Z"Z#edƒ\Z$Z%Z&Z'Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7e8dd„Z:dd„Z;d „Z<d!„Z=d"„Z>d#„Z?d$„Z@d%„ZAd&„ZBeCd'„ZDd(„ZEid)„ZFd*„ZGd+„ZHd,„ZId-„ZJd.„ZKd/„ZLd0„ZMd1„ZNd2„ZOd3„ZPdS(4iÿÿÿÿNit FBDict_Levelt FBDict_FBStartFBDict_isFirstStFBDict_StartTickt FBDict_SpeedtFBDict_RemainHPtFBDict_IsReduceingtFBDict_BossTotalHPtFBDict_LastHurtTicktFBDict_HasGiveAwardtFBDict_HasPassicCstjtjƒS(N(tFBCommontGetFBLineStepTimetChConfigtDef_FBMapID_ZhuXianTower(((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt__GetZhuXianCfgIscCstjd|ƒS(Nt ZhuXianTower(t IpyGameDataPYtGetIpyGameData(tlevel((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytGetTowerIpyDataLscCst|ƒdS(N(tSyncZhuXianLevelInfo(t    curPlayer((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytOnFBPlayerOnLoginPs
cCsNtjƒ}|jƒt|ƒ|_|jtjƒ|_t    j
||ƒdS(N( tChPyNetSendPackttagMCZhuXianTowerInfotCleart__GetZhuXianTowerCurPassLVtFloortNomalDictGetPropertyR t%Def_Player_Dict_ZhuXianTowerLastFloort    LastFloort NetPackCommont SendFakePack(RtttInfo((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRWs  
cCs|jtjƒS(N(RR t"Def_Player_Dict_ZhuXianTowerPassLV(R((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRascCs+tj|tj|ƒtjd|ƒdS(Ns ¸üÐÂÖïÏÉËþÒÑͨ¹ØÊý %s(t PlayerControltNomalDictSetPropertyR R#t    GameWorldtDebugLog(Rtpasslv((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytSetZhuXianTowerCurPassLVfscCstS(N(tTrue(RtmapIDtlineIdttick((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytOnEnterFBEventuscCs”t|ƒ}tjƒ}|j|jƒdƒjƒ}||krŒ|jtjtj    ƒ}|t
j |tj    ƒkrˆt j dƒdS|S|dS(Nis½øÈë´ÎÊý²»×㣡£¡i(RRtIPY_DatatGetZhuXianTowerByIndextGetZhuXianTowerCounttGetIDRR tDef_Player_Dict_EnterFbCntDayRR tGetEnterFBMaxCntR&tLog(RtcurFloortipyMgrtmaxFloortenterCnt((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt__CheckCanChallengezs    cCsltjƒ}|jƒ}|jtƒ}|jtƒ}|tkrh|tksU| rhtj    |ƒqhndS(N(
R&t    GetGameFBt    GetFBSteptGetGameFBDictByKeyRR
tFB_State_FreeTimet Def_MaxStarR tUpdateFBEnterTick(RtgameFBtfbSteptcurStarthasPass((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytDoPlayerChangeMapLogicˆs   cCs|S(N((RR+R,tipyEnterPosInfoR-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytOnGetFBEnterPos™scCstjS(N(t IPY_GameWorldt    cmeAccept(taskR-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytOnChangeMapAsk¡scCs÷tj|tjdtjƒtjƒ}|jƒ}tƒ}|t    kr|t
d|tjƒj ƒ}|j t jdt|dƒtƒnc|tkró|td|tjƒj ƒ}|j t jdt|dƒtƒt|t|ƒndS(Niiè(t EventReportt WriteEvent_FBR Rt CME_Log_StartR&R;R<RtFB_State_FightPreparetDef_PrepareTimet GetFBStepTickt Sync_TimeTickRHt tttWaitStarttmaxR*tFB_State_Fightingt Def_FightTimet tttTowerTaket__UpdZhuXianTowerFBStar(RR-RARBt
ZhuXianCfgt notify_tick((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt    DoEnterFB©s       "% ""cCsdS(N((R-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt    OnCloseFB¾scCsutjƒ}|jƒ}|tkrq|jtƒ}|jtƒ}|ra|tkrat|ƒnt    j
|ƒndS(N( R&R;R<R>R=RR
R?t__GiveFBPassPrizetGameWorldProcesstCloseFB(RR-RARBRCRD((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytDoExitFBÇs    cCstjƒ}|jƒ}|tkr1t|ƒnh|tkrqt|ƒt|ƒt|ƒt    j
|t dƒn(|t krŠt |ƒn|tkr™ndS(Niˆ(R&R;R<ROt__DoLogic_FightPrepareRUt__DoLogic_Fightingt __CheckBossHPRXR tNotifyCopyMapPlayerFBHelptDoFBHelpR>t__DoLogic_FreeTimetFB_State_Close(R-RARB((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt    OnProcessÙs     
 
 
   cCsçtjƒ}|jƒ}|tkr(dS|jtƒ}|dkrG|Stjƒjƒ}tt    j
||j ƒdƒƒ}t j |ƒ}|t}    d}
d} x<t|    dƒD]+\} } || kr±| } | |}
q±q±W|| kr÷| r÷|S|jt| ƒtjd||| |
fƒ|rft||ƒ| dkrã|jtjd|
dtƒqãn}tjƒ}xnt|jƒƒD]Z}|j|ƒ}|s¦q…nt||ƒ| dkr…|jtjd|
dtƒq…q…W| S(Nig@@iis=__UpdFBStar useSecond=%s,curStar=%s,updStar=%s, diffSecond=%siè(R&R;R<RUR=RtGetMaptGetMapIDtinttmathtceilRQR R t Def_StarTimet    enumeratet SetGameFBDictR'ReRRRHt tttFlagTakeR*tGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndex(R-tisEnterRRARBRCR+t    useSecondt chaosDemonCfgt starTimeListt
diffSecondtupdStartstartstarTimet playerManagertindex((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRXísF    #
       #   $cCs[tjƒ}|dkr*|jtƒ}nt|ƒ}|sQtjd|ƒdS|jƒS(Niÿÿÿÿs;__GetZhuXianBossID() can not find %s in tagZhuXianTower.txti(R&R;R=RRtErrLogtGetNPCID(tfbLevelRAtipyData((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt__GetZhuXianBossIDs   cCs¥tjƒ}tƒ}||jƒ|tdkr7dStƒ}|sTtjƒdStjt    j
|t dƒt j tjtjdƒ|gƒtjt|ƒdS(Nièi(R&R;RRQRPR„R tDoLogic_FBKickAllPlayertSync_Player_TimeTickRHRWRVtNPCCustomRefresht SetNPCRefreshtGetFBLineRefreshNPCR Rt    SetFBStepRU(R-RARYtbossID((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRa*s         
"c
Cs|jƒtjkrDtjd|jƒƒtj|tj    |ƒn|j
|j ƒƒt j ƒtjƒ}|jt|ƒ|jƒ}t|ƒ}|jƒ}ttjdƒƒ}|jt|dƒ|jtdƒ|jt|dƒ|jtdƒ|jtdƒ|jtdƒ|jtdƒ|jtdƒ|jtdƒt ƒt!d}t j"tj#|ƒt j"tj$|ƒt j%t&|ƒ|j'tj(ƒ}    ||    krÖt)j*|tj(|ƒt+|ƒnt,||ƒtjd||f|jƒƒdS(Ns ¸´»îÍæ¼Ò...tZhuXianTowerBossTimeièis$StartFBLevel, fbLevel=%s£¬totalHP=%s(-tGetPlayerActionRHtpaDieR&R't GetPlayerIDtChPlayertPlayerRebornByTypeR trebornType_CitytSetHPtGetMaxHPR t
ClearFBNPCR;RpRt GetFightPowerRt GetNeedPowertevalRtGetFuncCompileCfgRRRRRR    RRR
RRPR†t tttAddUpTimeRSRŠRORRR$R%RRe(
RR‚R-RAt playerPowerRƒt    needPowerttotalHPt prepareTickt    lastFloor((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt StartFBLevel>s>
        cCsêtjƒ}||jƒtƒtdkry|jtƒ}|ru||dkrut|ƒtjƒjtdƒndS|jt    ƒ}tj
ƒ}xEt |j ƒƒD]1}|j |ƒ}|sÈq§nt||tƒq§Wt|ƒdS(NièiÐi(R&R;RQRRVR=Rt StopReduceHPRpRRrRsRtRut__SendZhuXianTowerOverInfotFalset__SetFBToFreeTime(R-RAt lastHurtTickR‚R~RR((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRbhs  !
 
cCs2tjtjtƒtdƒtjt|ƒdS(Niè(R R†RHt tttLeaveMapRt Def_ExitTimeRŠR>(R-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyR¤ƒscCs/|tjƒjƒtƒtdkr+dSdS(Niè(R&R;RQRR§(R-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRfs'c Cs”tjƒ}|jtƒ}t|ƒ}|s1dStjƒ}|sTtj|ƒdS|tjƒj    ƒ}|jt
ƒ}d}|t |ƒkrÔ|t krÔt ||ƒtj|tj|d|dƒd}n|jt|ƒ|jƒ}|r!|r!tjdd|jƒ||gƒnt|tƒ}    i|tj6tj|    ƒtj6|tj6}
t|||    rrtnt|
ƒt |ƒt!|ƒdS(Nii'ièitKillGodTowerInfo_1("R&R;R=RRR tGetCurSingleFBPlayerR^R_RQRRR?R)tPlayerBillboardtUpdatePlayerBillboardt ShareDefinetDef_BT_ZhuXianTowerRpRtGetUnLockEquipPlaceR$t WorldNotifyt GetPlayerNameR]R£t Over_costTimetGetJsonItemListt Over_itemInfot
Over_gradeR¢R*RR¤( R-RAR‚RƒRtcostTimeRCtisFirstStunLockEquipPlacet prizeItemListt    prizeDict((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytDoZhuXianTowerOver•s6     !      %  
 
cCsdS(N((RtcurNPCR-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytDoFB_Player_KillNPCÉsc    Cs$tjƒ}|jtƒ}t|ƒ}|s1gS|jtƒ}|rU|jƒ}n'|jtƒ}|jƒj    |gƒ}|s†gS|s|S|jt
ƒr¹tj d|j ƒƒdS|jt ƒ}|sÒdStj||ddtigƒ|stj|tjdƒn|jt
dƒdS(Ns±¾²ã½±ÀøÒѸø£¬²»ÄÜÖØ¸´¸ø£¡£¡tKillGodTowerRewardRi(R&R;R=RRRt GetFirstAwardRt GetGradeAwardtgetR    R5R2R
t ItemControlertGivePlayerItemOrMailR£R tAddEnterFBCountR RRp(    RtisGiveRAtpreFloorRƒt isFirstPassR¸RCRD((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyR]Ïs2  c Cs÷tjƒ}|jtƒ}|jtƒ}|jtƒ}t|ƒ}tƒ}|rb|d|nd}|r…td|d|ƒnd}    |jt    ƒ}
i|
t
j 6|t
j 6|d6|    d6|d6} tj d| |jƒƒt
j|| ƒdS(Ni'ii@Bt hpReduceSpeedt remainHPPert isReduceings DoFBHelp: %s(R&R;R=RRRtGetBossRemainHPt__GetBossTotalHPtminRR t
Help_wheelt
Help_gradeR'Rt Notify_FBHelp( RR-RAR|tcurSpeedRÉtremainHPRRÇRÈR‚t
fbHelpDict((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyReøs      #/cCs€tj|tj<||tj<t|ƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒtj ƒj tt|ƒƒdS(Ns&__SendZhuXianTowerOverInfo overDict=%s(R RR tOver_dataMapIDt
Over_wheelRkt Over_isPassR&R'tstrRtNotify_FB_OverR;RpR
(RR‚tisPasstoverDict((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyR¢
s  cCs&tjƒ}|jƒtkr"tStS(N(R&R;R<RUR£R*(tattackertdefenderRA((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytCheckCanAttackTagObjInFBs cCsKtjƒ}|jtƒ}t||tƒtjƒjƒ}t|ƒdS(N(    R&R;R=RR¢R£t GetGameWorldtGetTickR¤(RRAR‚R-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt DoPlayerDead%s  
cCstS(N(R*(((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytOnPlayerReborn2scCs§tjƒ}|jƒ}|dkrz|ttgkrGtjdƒdSt|ƒ}|sgtjƒdSt    |||ƒn)|dkr£|t
kr–dSt |ƒndS(Nis×¼±¸»òÕ½¶·ÖÐ, ÎÞ·¨±ä¸ü¹Ø¿¨!i( R&R;R<RORUR'R:R R…R R>R](Rt
actionTypet
actionInfoR-RARBtnewFloor((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt
DoFBAction<s      
   cCsqtjƒ}|jƒ}|tkrmt|ƒdkrmtjƒtj|tdƒtj    dƒt
|ƒndS(Nis½áÊø ÉèÖÃBOSSËÀÍö ( R&R;R<RURÊR R•RdReR'Rº(R-RARB((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRcSs  
  cCsftjƒ}|jtƒsdSt|ƒ}|s5dS|jtdƒ|jt|ƒtjdƒdS(Nis    ÔÝÍ£BOSSѪÁ¿¼õÉÙ(R&R;R=RRÊRpRR'(R-RARÑ((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyR¡bs   cCsŽtjƒ}|jtƒrdS|jtdƒ|jtƒ}|sZ|jttƒƒn|jt|ƒtjdƒt    j
|t dƒdS(Nis    ¿ªÊ¼BOSSµôѪi( R&R;R=RRpRRRËR'R RdRe(R-RAt    startTick((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt StartReduceHPps  cCstjƒjtƒS(N(R&R;R=R(((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRˀscCstjƒ}|jtƒ}|jtƒ}|jtƒ}|jtƒsL|S|sd|}tƒ}n%tdt    |||d|ƒƒ}|S(Nig@@(
R&R;R=RRRRRËRTRk(R-RARåt    lastSpeedRÑ((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyRʃs  %cCs6tjƒjƒ}tjƒjt|ƒt|ƒdS(N(R&RÝRÞR;RpRRæ(RR»thurtHPR-((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pytDoFB_Player_HurtNPC˜s
(QR R&RHR$R‡RRÁR R¬Rt
ItemCommonR Rt PlayerSuccessR^RªRLtrandomRlR?RRRRRRRRRR    R
trangeRPRVR§Rnt FB_State_OpenRORUR>RgRRRRRR)R.R:RERGRKR[R\R`RhR£tNoneRXR„RaR RbR¤RfRºR¼R*R]ReR¢RÜRßRàRäRcR¡RæRËRÊRé(((sx.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ZhuXianTower.pyt<module>sŠ                                       
                                                .         *        
        4     )