cehua_hzl
2018-08-24 665841283fff2465f886b3dba5b8480b73daa63f
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
œØ9[c@sÿddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZedƒ\ZZZZedƒ\ZZZZedƒ\ZZZZZZdZdZdZ dZ!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:dS(!iÿÿÿÿNiitFBPlayerDict_TotalPointtFBPlayerDict_CostTimetFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointcCstjtjƒjƒƒS(N(tFBCommontGetFBLineRefreshNPCt    GameWorldtGetMaptGetMapID(((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytGetIceLodeNPCCfgLscCs%tjddiƒ}|j|dƒS(sͨ¹ýNPCID»ñÈ¡¶ÔÓ¦µÄ»ý·ÖtIceLodeNeedPointii(t IpyGameDataPYtGetFuncEvalCfgtget(tnpcidt npcPointDict((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytGetPointByNPCIDOscCsdS(N((t    curPlayer((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt IceLodeOnDayYscCstS(N(tTrue(RtmapIDtlineIDttick((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnEnterFBEventdscCs|S(N((RRtlineIdtipyEnterPosInfoR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnGetFBEnterPospscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnChangeMapAskxsc
Cs |jƒ}tjd|ƒtjƒjƒ}tjƒ}tj|ƒ}|sñtj    j
|dƒtjdƒtj ||ƒ}|d}|s¢t j |ƒdStj|ƒtj|tjƒtjt|ƒtj|tjdtjƒn|jƒ}|tkrtjƒjƒ}tj|ƒtd|tjƒjƒ}    |jtjdt|    dƒt ƒ|jtj!dt|    dƒt ƒnn|t"krûtjƒjƒ}tj|ƒt#d|tjƒjƒ}    |jtj$dt|    dƒt ƒnt%||ƒdS(Ns DoEnterFB...is DoEnterFB ¿Û³ýÈ볡ȯ£¬ÖØÖÃÐÅÏ¢£¡iè(&t GetPlayerIDRtDebugLogt GetGameWorldRt    GetGameFBRtGetHadDelTickett
PyGameDatatg_fbPickUpItemDicttpoptDelFBEnterTickett PlayerControlt PlayerLeaveFBtSetHadDelTickettAddEnterFBCounttChConfigtDef_FBMapID_IceLodet    SetFBSteptFB_Step_Preparet EventReportt WriteEvent_FBt CME_Log_Startt    GetFBStepRtGetFBLineStepTimetDef_PrepareTimet GetFBStepTickt Sync_TimeTickRt tttAddUpTimetmaxRt tttWaitStarttFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp(
RRtplayerIDRtgameFBt hadDelTickett    delResulttisOKtfbStept notify_tick((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt    DoEnterFB€s:   
    +"% +% cCsdS(N((RR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytDoExitFB¦scCsdS(N((RR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytDoPlayerLeaveFB®sc    CsB|jƒ}|tjkrdS|jƒ}tj|ƒ}tj|ƒ}|tjkrë|rutj|j    |ƒqûxƒtj|D]a}|d|dkrƒ|j
dƒ|j
dƒkrƒ|j
ddƒ|j
ddƒ|d<qƒqƒWn|gtj|<t j ƒj ƒdk}|r>t jƒjƒtkr>ttƒndS(NtItemIDtIsBindtCounti(tGetTypeR,tDef_ItemType_MoneytGetIDt
ItemCommontCheckItemIsEquipt GetJsonItemR$R%tappendR RtGetMapItemManagertGetMapItemCountR"R3tFB_Step_PickItemt__DoIceLodeOverR(    RtcurItemRt mapItemTypeR?tisEquiptjsonItemtitemInfotisItemAllPickUp((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt OnPickUpItem²s"  20 cCsVtjƒ}|jtƒ}i|tj6}tjdt|ƒƒtj||ƒdS(Ns DoFBHelp %s(    RR"tGetGameFBDictByKeyRRt
Help_scoreR tstrt Notify_FBHelp(RRR@t
totalPointthelpDict((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyR>Ðs  cCsztjƒjƒ}|tkr+t|ƒnK|tkrDt|ƒn2|tkr]t|ƒn|t    krvt
|ƒndS(N( RR"R3R/t__DoLogic_FB_PrepareR;t__DoLogic_FB_FightingRUt__DoLogic_FB_PickItemt FB_Step_Overt__DoLogic_FB_Over(RRD((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt    OnProcessás        cCsÚtjƒjƒ}tj|ƒ}|tjƒjƒ|tdkrIdStƒ}xI|D]A}|t    }|t
}|t }t j |t|g||ƒqYWt j|ƒtjt|ƒtjtj|tdƒdS(Niè(RRRRR4R"R6R5R    tDL_NPCIDtDL_ScreenMaxNPCtDL_TotalNPCCnttNPCCustomRefresht SetNPCRefreshtDef_RefreshMarktProcessAllNPCRefreshR.R;tSync_Player_TimeTickRR=R<(RRt stepTimeCfgtnpcCfgtnpcInfoRtmaxCntt totalMaxCnt((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyRdös$     
 
 
! cCsQtjƒjƒ}|tjƒjƒtj|ƒtdkrCdStt    ƒdS(Niè(
RRRR"R6RR4R<RVtFalse(RR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyRes
-
cCsdtjƒjƒ}|tjƒjƒtj|ƒtdkrCdStj    |ƒtj
t |ƒdS(Niè( RRRR"R6RR4t Def_PickTimetGameWorldProcesstCloseFBR.t FB_Step_Close(RR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyRfs - cCsdtjƒjƒ}|tjƒjƒtj|ƒtdkrCdStj    |ƒtj
t |ƒdS(Niè( RRRR"R6RR4t Def_LeaveTimeRyRzR.R{(RR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyRh,s - c CsË|tjkrdS|jƒ}tjƒ}|j|tƒ}|j|tƒ}|tj    |}||}|tj    }    |tj    }
|j
|t|    ƒ|j
|t|
ƒtj d|||f|ƒdS(Ns/OnGetExp() totalExp=%s,addExp=%s,updTotalExp=%s( t ShareDefinetDef_ViewExpType_KillNPCRNRR"tGetPlayerGameFBDictByKeyRRR,tDef_PerPointValuetSetPlayerGameFBDictR ( RtaddExpt expViewTypeR?R@texptexpPointttotalExpt updTotalExptupdExpt updExpPoint((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnGetExp=s  
      cCs&tjƒ}|jƒtkr"tStS(N(RR"R3R;RwR(tattackertdefenderR@((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytCheckCanAttackTagObjInFBWs c Cs9tjƒ}|jƒ}t|ƒ}|s.dS|jtƒ}tjdƒ}t|||ƒ}|j    t|ƒ||kr(|tjƒj
ƒ}    |j    t |    ƒt j t|ƒtjƒjƒ}
|jtjdt j|
ƒtdtƒt jƒtƒ} x%| D]} tj| t|ƒqWnt||ƒdS(NR
iiè(RR"tGetNPCIDRR^RR t
GetFuncCfgtmint SetGameFBDictR6RRR.RURRR7R,t tttPickupItemR4RxRt
ClearFBNPCR    RmtCloseNPCRefreshRoR>( RtcurNPCRR@RtaddPointRbtmaxPointtupdPointtcostTimeRRsRt((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytDoFB_Player_KillNPCbs*    *
      cCstS(N(R(((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnPlayerRebornscCstjƒ}|jƒtkr"dStjƒjƒ}d}tjƒ}|jƒdkrj|j    dƒ}n|st
j |ƒdS|j ƒ}t j}tj|t jdt|gƒ}|rù| rùtj|t jddt|gƒtj||ƒn|j|tƒ}|j|tƒ}    |    t j|}
|jtƒ} | s\|tjƒjƒ} ntjj|gƒ} t|it |ƒtj!6|
tj"6| tj#6| tj$6ƒtj%t|ƒtj&t'j(tj)|ƒt*dƒtj+ƒt,ƒ} x"| D]}t-j.|t/|ƒqúWdS(Niiiè(0RR"R3RgR!tGetTicktNonetGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndexRyRzRR,R-tGetDictValueByBitt"Def_Player_Dict_PlayerFBStar_MapIdRwtSetDictValueByBitRtSync_FBPlayerFBInfoDataRRRR€R^RR6R$R%R t__SendIceLodeOverInfotintt Over_isPasstOver_expt Over_costTimet Over_itemInfoR.RqRt tttLeaveMapR4R|R“R    RmR”Ro(tisPassR@RRt playerManagerR?RthasPassR„R…R†R™t jsonItemListRsRt((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyRV…s@        ! ";$
     cCsDtj|tj<tjdt|ƒ|jƒƒtj||ƒdS(Ns!__SendIceLodeOverInfo overDict=%s(    R,R-RtOver_dataMapIDRR R`RtNotify_FB_Over(RtoverDict((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyR¥µs cCsdS(N((Rt
actionTypet
actionInfoR((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt
DoFBActionÃscCs[|jƒ}tj|tjdt|gƒ}|dkrWtjdd|f|ƒtStS(Nis9IceLode µ±Ç°ËùÊôÏß·δ¹ý¹Ø¹ý£¬²»¿Éɨµ´£¡lineID=%s,star=%s(RRR¡R,R¢RwR R(RRRtsweepCnttisFinishtdataExR?tstar((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnPlayerFBSweepAskÈs  ! cCsi}tjdƒ}x(|jƒD]\}}    |    |||<q"Wtj|tjƒ}
tj||||
ƒ\} } } t    j
d|| | | fƒidt j 6| t j 6dt j6| t j6}t||ƒx0t|ƒD]"}tj|tjdtjƒqÛWtS(Nt IceLodeSweeps;ɨµ´½±Àø: ´ÎÊý=%s,totalExp=%s,totalMoney=%s,jsonItemList=%sii(R R titemsR(tGetLimitExpRateR,tExpRateLimitType_Sweept    NPCCommontGiveKillNPCDropPrizeRR RR§R¨t Over_isSweepRªR¥txrangeR0R1R-R2R(RRRR¶R·R¸t npcCountDictticeLodeSweepDicttnpcIDtcounttexp_rateR¯R†t
totalMoneyR²t_((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pytOnPlayerFBSweepResultÒs!.  (;RRRRmRyR(R}R R$R,R¿ROR0trandomtmathtrangeR5R<RxR|RoRjRlRkt FB_Step_OpenR/R;RURgR{RRRRR    RRRRRRFRGRHR]R>RiRdReRfRhRŠRRšR›RVR¥RµRºRÊ(((ss.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_IceLode.pyt<module>s\                            
                      &                                                          0