cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
´:\c@sZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZd„Zd„Zedƒ\ZZZd„Zd„Zd„Zd„Zdd    „Zd
„Zd „Zd „Zd „Zd„Zd„Z d„Z!dS(iÿÿÿÿNcCsAtjƒj|ƒ}|j}|j}tj||||ƒdS(N(t    GameWorldtGetPlayerManagertGetPlayerByIndext
ActionTypet
ActionInfotFBLogict
DoFBAction(t playerIndext
clientDatattickt    curPlayert
actionTypet
actionInfo((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyt OnDoFBAction2s
        c Cs[tjƒj|ƒ}|j}tjd|ƒ|s9dStj||ƒ}|dkrltjd|ƒdStjddƒ}||krŽdS||}t    j
|t j |ƒ}|sºdS|}    i|d6|    d6}
x6|D].\} } t    j || | tj|
ƒsÛdSqÛWtjd||    |f|jƒƒtj|tj|dƒtj|ƒdS(    NsOnClearFBCD mapID=%sis&    CDʱ¼äÒѹý£¬²»ÐèÒªÇå³ý£¬ cdTick=%st    FBEnterCDitMapIDtCDSeconds1   mapID=%s Çå³ý¸±±¾CD second=%s,costMoneyList=%s(RRRRtDebugLogtFBCommont GetFBEnterCDt IpyGameDataPYtGetFuncEvalCfgt PlayerControlt HaveMoneyExt ShareDefinetTYPE_Price_Gold_Paper_MoneytPayMoneytChConfigtDef_Cost_ClearFBCDt GetPlayerIDtSetFBPDictValuetDef_PDict_LastEnterFBTicktSyncFBEnterTick( RRR    R
tmapIDt enterCDTicktclearEnterCDDictt    costMoneyt costMoneyListtsecondtinfoDictt    moneyTypetmoneyCnt((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyt OnClearFBCD>s4      
     icCs=t||ƒ}|stS|d}|jtj|ƒ|kS(Ni(tGetPubCDFBSweepCfgtFalsetNomalDictGetPropertyRtDef_PDict_PubCDFBS_MapID(R
R!tsweepCfgtgroupNum((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytIsCurPubCDFBSweepingis
 
cCsStjdƒ}x=|jƒD]/\}}|d}||krDqn||fSWdS(Nt PubCDFBSweepi(t ReadChConfigtGetEvalChConfigtitems(R
R!tPubCDFBSweepDictR0t    sweepInfot
mapIDGroup((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyR+qs
  c
Cs6|jtj|ƒ}|dkrFtjd||f|jƒƒdStj|||||ƒsedStt    j    ƒƒ}    t
j |tj||ƒt
j |tj ||ƒt
j |tj ||ƒt
j |tj||ƒt
j |tj||    ƒtjd||||||    f|jƒƒt||ƒdS(Nis7¹«¹²CD¸±±¾É¨µ´ÖÐ, ÎÞ·¨É¨µ´!groupNum=%s,curSweepMapID=%ssM¹«¹²CD¸±±¾¿ªÊ¼É¨µ´ mapID=%s,lineID=%s,cnt=%s,dataEx=%s,groupNum=%s,curTime=%s(R-RR.RRRRtOnStartPubCDFBSweeptintttimeRtNomalDictSetPropertytDef_PDict_PubCDFBS_LineIDtDef_PDict_PubCDFBS_CnttDef_PDict_PubCDFBS_DataExtDef_PDict_PubCDFBS_TimetSync_PubFBSweepData(
R
R!tlineIDtcnttisFinishtdataExR0R7t curSweepMapIDtcurTime((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyt__DoStartPubCDFBSweep}s"         # cCs±|jƒ}|jtj|ƒ}|dks:||krXtjd||f|ƒdS|jtj|ƒ}|jtj|ƒ}|jtj|ƒ}    |jtj    |ƒ}
|t
} |t } | |    } t t j ƒƒ}td||ƒ}td| |ƒ}|dkr<|dkr<tjd||f|ƒdSi |d6|d6|    d6| d6|d    6|d
6dd 6|d 6|d 6|
d6|tj6}|dkrët| ƒ}|dkrë||d <tj|tj|tj|ƒsèdSqëntjdt|ƒ|ƒtj||||    |
ƒtj|tj|dƒtj|tj|dƒtj|tj|dƒtj|tj    |dƒtj|tj|dƒt||ƒdS(NisJδɨµ´ »ò ²»Êǵ±Ç°ÕýÔÚɨµ´µÄ¹«¹²CD¸±±¾, ÎÞ·¨Íê³É!curSweepMapID=%s,mapID=%sis*ɨµ´Ê±¼äδµ½£¬ÎÞ·¨Íê³É£¬Ê£Óà%sÃë, mapID=%sRGtstartSweepTimetsweepCntt needTotalTimetpassTimet remainSecondtcostGoldR!RBREis¹«¹²CD¸±±¾É¨µ´Íê³É: %s(RR-RR.RRR@R=R>R?tPCDFB_NeedTimetPCDFB_FinishTimeGoldR:R;tmaxtDef_Cost_Reason_SonKeytevalRRt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_FinishFBSweeptstrRtOnGivePubCDFBSweepPrizeR<RA(R
R!RDR0R7tplayerIDRFt    sweepTimeRBRJREt sweepNeedTimetfinishCostGoldFormatRKRGRLR&t addDataDictRN((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyt__DoFinishPubCDFB•sL     
 
 
)   
 
 cCs2tjdƒ}|jƒ}|dkr0|}n||kr@dS|g}tjƒ}|jƒg|_x¡|D]™}tjƒ}|jƒ||_|j    t
j |ƒ|_ |j    t
j |ƒ|_|j    t
j|ƒ|_|j    t
j|ƒ|_|jj|ƒqoWt|jƒ|_tj||ƒdS(NR2iÿÿÿÿ(R3R4tkeystChPyNetSendPackttagMCPubFBSweepDatatCleart SweepDatListttagMCPubFBSweeptPubNumR-RR.tFBMapIDR=tLineIDR@t    SweepTimeR>tSweepCnttappendtlentCntt NetPackCommont SendFakePack(R
R0R6tallGroupNumListt groupNumListt pubSweepDatatgNumR7((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyRAÊs,            
      
    c Cstjƒj|ƒ}tj|tj|ƒsGtjd|jƒƒdS|j}|j    }|j
}d}|j }|j }    |    r²t j|tjƒs²tjd|jƒƒdSn|dkrÂdStj|ƒ}
tjtjƒjƒƒtj|ƒkr%|
r%|
jƒr%tjd|ƒdSntj||ƒ} | sXtjd||fƒdStj||||
| |ƒtjkrƒdSg} g} d}|jƒjtjƒ}| rÖ| jƒ}|r|jƒ|krtjd|||jƒ|f|jƒƒdS| j ƒ}|rÖ|     rÖ| j!ƒ}||}t"j#|||ƒ\}} }}|sÓt"j$|tj%ƒ}|r||}t&j'|tj(|ƒ} n| sÐtjd||||f|jƒƒdSqÓqÖnt)j*||||||ƒsødS| r#|r#t"j+||| |t,d    ƒn| r†i|d
6|d 6|d 6}x?| D]4\}}t&j-|||tj.|ƒsKt,|fSqKWntj/||||ƒ|
rÄ|
jƒrÄtj0|||ƒnt1j2d ||ƒ}|röt3j4|||ƒdSt)j5||||||ƒdS(NsÍæ¼Ò¸±±¾É¨µ´ÇëÇóCDÖÐ...isÍæ¼ÒûÓÐСÖúÊÖ¹¦ÄÜȨÏÞ£¡is(Íæ¼ÒÔÚɨµ´Ä¿±êµØÍ¼ÖУ¬ÎÞ·¨É¨µ´£¡mapID=%ss/ÕÒ²»µ½¸Ã¸±±¾Ïß·£¬ÎÞ·¨É¨µ´£¡mapID=%s, lineID=%ssHÍæ¼Ò¸±±¾É¨µ´,µÈ¼¶²»×㣡mapID=%s, lineID=%s, playerLV=%s, sweepLVLimit=%ssCɨµ´ÏûºÄµÀ¾ß²»×ã, mapID=%s,lineID=%s,sweepItemID=%s,sweepCostCnt=%stFBSweepCostItemRRgt
SweepCountt FBHelpBattle(6RRRtCheckPlayerTickRtTYPE_Player_Tick_BeginFBWipeOutRRRRgRltDataExtIsLittleHelpert GameFuncCommt GetFuncCanUseRtGameFuncID_LittleHelperRt GetFBIpyDatatGetRecordMapIDtGetMaptGetMapIDt GetDayTimestGetFBLineIpyDatatCheckCanEnterFBCommtEntFBAskRet_OKtGetItemManagertGetPackRTtrptItemtGetSweepLVLimittGetLVtGetSweepItemIDtGetSweepCostCntt
ItemCommontGetItem_FromPack_ByID_ExExtGetShopItemPriceRURRRRtOnPlayerFBSweepAskt
ReduceItemR,RtDef_Cost_FBSweeptDelFBEnterTickettAddEnterFBCountRtGetIpyGameDataRut(SendGameServer_SweepCallHelpBattlePlayertOnPlayerFBSweepResult(RRR    R
R!RBRCRDREtisLittleHelpert    fbIpyDatat fbLineIpyDataR%tsweepCostindexListt sweepCostCnttitemPackt sweepLVLimitt sweepItemIDt sweepItemCnttisEnoughthasBindtlackCntt    itemPriceR$R'R(tmoneyNumt helpIpyData((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytOnPlayerFBWipeOutósŠ                     *'     #   
!
      cCsdS(N((RRR    ((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytOnPlayerBuyFBEnergyoscCsTtjtj}||jtjƒ|kr0dS|jtj|ƒtj|ƒdS(N(RtTYPE_Player_Tick_TimetTYPE_Player_Tick_FBTimeProcesst GetTickByTypet SetTickByTypeRtRegainFBCntProcess(R
R    t checkInterval((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytDoPlayerFBTimeProcessus  cCsJtjƒj|ƒ}|j}|j}|j}tj||||ƒdS(N(RRRRRgtPercentRtOnGetMultiFBPrize(RRR    R
R!RBt    prizeExLV((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytOnPlayerGetMultiFBPrize‹s             cCstjƒj|ƒ}dS(N(RRR(RRR    R
((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pytOnPlayerResetFBJoinCntšsc    Csytjƒj|ƒ}|j}|j}|j}|j}||g}tj||||ƒtj    d|||fƒdS(Ns4    ¿Í»§¶Ë¸±±¾·¢ËͽáÊømapID=%s,lineID=%s,dataList=%s(
RRRRRgtData1tData2Rt OnClientEndFBR(    RRR    R
R!RBtdata1tdata2tdataList((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyR¶¨s                 cCs)tjƒj|ƒ}tj||ƒdS(N(RRRRtOnClientStartFB(RRR    R
((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyRººs("R3RTRRRRRR`RmRŒRRRzRuR;tmathR R*trangetPCDFB_MapIDListRORPR1R+RHR^RAR¦R§R®R²R³R¶Rº(((shE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFB.pyt<module>s<                         '                 5 )    |