cehua_ZWJ
2018-12-19 fd70db66395bfa77c8b2c97eee4eca4d4a7a150d
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
:Û\c @sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e dƒ\ ZZZZZZZZZZZZe dƒ\ZZZZZdZdZ dZ!dZ"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„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7d„Z8d„Z9d„Z:d „Z;d!„Z<d"„Z=d#„Z>d$„Z?d%„Z@d&„ZAd'„ZBd(„ZCdS()iÿÿÿÿNi itFBPlayerDict_GuardNPCIDsFBPlayerDict_GuardNPCCnt%stFBPlayerDict_CurWheeltFBPlayerDict_NPCIndextFBPlayerDict_LastWheelEndTimetFBPlayerDict_LastNPCRTimetFBPlayerDict_HasRefreshBosstFBPlayerDict_AutoBosstFBPlayerDict_NPCRemainCntcCstjtjdƒS(Ni(tFBCommontGetFBLineStepTimetChConfigtDef_FBMapID_GatherSoul(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytGetGatherSoulFBCfgHscCstjtjƒS(N(RtGetFBLineRefreshNPCR
R (((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytGetGatherSoulNPCCfgLscCstS(N(tTrue(t    curPlayertmapIDtlineIDttick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytOnEnterFBEventVscCs|S(N((RRtlineIdtipyEnterPosInfoR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytOnGetFBEnterPosascCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytOnChangeMapAskiscCs8tƒ}tj|t|tdfgd|tƒdS(Ni(R tNPCCustomRefresht SetNPCRefresht Def_BuildMarktDef_BuildNPCIDt Def_BuildCnt(RtgatherSoulFBCfg((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytOnOpenFBqs    +cCs tƒdS(N(t__DoGatherSoulOver(R((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt    OnCloseFB{sc
Csltj|tjdƒ|jƒ}|jƒ}tjƒjƒ}t    j
|ƒ}tj ƒ}|j tj ƒ}tjd||f|ƒt    j|ƒ}|sÖt    j|ƒt    j|ƒtj|tjdtjƒn|jƒ}|tkrt    jt|ƒn|tkrWtƒtd|tjƒjƒ}    |jtj dt!|    dƒt"ƒndSt#||ƒdS(Nis!DoEnterFB...lineID=%s,playerLV=%siiè($t PlayerControltSetSightR
tDef_PlayerSight_Defaultt GetPlayerIDtGetLVt    GameWorldtGetMaptGetMapIDRtGetRecordMapIDt    GetGameFBtNomalDictGetPropertytDef_Player_Dict_ReqFBFuncLinetDebugLogtGetHadDelTickettSetHadDelTickettSetFBPropertyMarkt EventReportt WriteEvent_FBR t CME_Log_Startt    GetFBSteptFB_Step_Preparet    SetFBStept FB_Step_OverR t Def_FightTimet GetGameWorldt GetOpenFBTickt Sync_TimeTickRt tttTowerTaketmaxRtDoFBHelp(
RRtplayerIDtplayerLVRtgameFBRt hadDelTickettfbStept notify_tick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt    DoEnterFBƒs,        %% cCsEtj|tjƒtjƒjƒ}|tkrAtj    |ƒndS(N(
R%R&R
R'R*R.R8R;tGameWorldProcesstCloseFB(RRRG((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytDoExitFB£s
 cCstƒtj|ƒdS(N(R#RJRK(RR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytDoPlayerLeaveFB¯s cCs‹tjƒ}|jƒ}|tkr(dS|jtƒ}ttƒƒ}|tkrXdnt    |d|ƒ}t
ƒ}i}x)|t D]}|jt |ƒ||<q…W|jt ƒ}    |jtƒ}
tjj|jƒiƒ} i} x-| D]%\} }tj|ƒ| t| ƒ<qìWi|tj6|tj6tj|ƒtj6|
tj6|    tj6| tj6}tjdt|ƒƒtj||ƒdS(Niis DoFBHelp %s(R*R.R8tFB_Step_FightingtGetGameFBDictByKeyRtlenRR9tminR t Def_GuardInfotFBPlayerDict_GuardNPCCntRRt
PyGameDatatg_gathersoulfbAwardDicttgettGetIDRtGetJsonItemListtstrt
Help_wheelt    Help_steptGetJsonNPCKillListtHelp_npct Help_isAutotHelp_gsItemInfoR1t Notify_FBHelp(RRRERGtcurWheeltmaxWheelR!t    guardDicttnpcidthasRefreshBosst
isAutoBosstitemDictt helpItemInfotwheeltitemListthelpDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyRB¹s4   %     
 
 
 cCsHtjƒjƒ}|tkr+t|ƒn|tkrDt|ƒndS(N(R*R.R8RNt__DoLogic_FB_FightingR;t__DoLogic_FB_Over(RRG((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt    OnProcessÝs     c Csˆtjƒ}tƒ}|jtƒ}|rB|||tkrBdS|jtƒ}|ro|||tkrodS|jtƒ}|jt    ƒ}t
ƒ}|t |ƒkr¬dS||}|t |ƒkrÌdStj d|d|dfƒ||}    t |    ƒ|dt |ƒkr>|dt |ƒkr>tj dƒq>n|jt    |dƒ|jt|ƒtjƒ}
|
r„t|
|ƒndS(Ns    ¿ªÊ¼Ë¢µÚ%s²¨µÚ%sÖ»¹Ö£¡is    È«²¿Ð¡¹ÖË¢Í꣡(R*R.R RORtDef_WheelRefreshCDRtDef_NPCRefreshCDRRRRPR1t __RefreshNPCt SetGameFBDictRtGetCurSingleFBPlayerRB( RRER!tlastWheelEndTimet lastNPCRTimeRat curNPCIndext npcRereshListtnpcListt refreshNPCidR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt__CheckNPCRefreshês8         
 
 
 cCsetjƒ}|jtƒ}|d}tƒ}|t}tj||g|dƒ|jt|ƒdS(Ni(    R*R.RORR tDef_NPCRefreshMarkRRRr(RyREt curRemainCntt    curMaxCntR!t refreshMark((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyRqs 
    
cCsPt|ƒt|ƒtƒ}|tjƒjƒ|tdkrEdStƒdS(Niè(Rzt__CheckAutoRefreshGoldBossRR*R=R>R<R#(RtfbCfg((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyRl%s
 
    $cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
RR*R.t GetFBStepTickt Def_LeaveTimeRJRKRR:t FB_Step_Close(RR€((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyRm6s     $ c
Cs¦tƒ}tƒtg}x|D]}||7}q W|jƒ|krJdStjƒ}|jtƒ}td|dƒ}|j    t|ƒ|jt
ƒ}|jt ƒ}|dkr¢|t ||ƒkr¢|j    t
|dƒ|j    t dƒtjƒ}    |    rt|    tjƒjƒƒn|dt |ƒkr:tƒq¢|j    t dƒ|j    ttjƒjƒƒ|j    tdƒ|    r¢|    jtjdtƒttƒq¢ndS(Nii(RR t
Def_BossIDtGetNPCIDR*R.RORRARrRRRPRRRsRBR=tGetTickR#RRR?RttttLeaveFamilyWarRoR(
tcurNPCRwt    npcidlisttnlistRER|t newRemainCntRaRvR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt DoFB_NPCDeadCs4      " 
&cCs€tjƒ}|jtƒ}tƒ}|t}||kr>tS|jt|ƒ}|||kr|tjd||fƒtSt    S(Ns2    ¸ÃÊØÎÀÒÑÂú£¬²»¿ÉÔÙ½¨Ôì guardNPCID=%s,curCnt=%s(
R*R.RORR RRtFalseRStLogR(RRˆRREt
guardNPCIDR!tguardMaxCntDicttcurCnt((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt OnCanCollectms     
 cCs tƒtS(N(R t Def_BuildTime(RRˆ((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytGetFBPrepareTime€sc    Cs|jƒ}|sdS|jƒtjkr/dStjƒj|jƒƒ}|sTdStƒ}|j    ƒ|t
krwdStj ƒ}|j t ƒ}|s²tjd|jƒƒdStj||ƒtj|t|dfgddƒt|}|j||j |ƒdƒdS(Ns²É¼¯Ç°Î´Ö¸¶¨Òª½¨ÔìNPCIDi(t GetActionObjtGetGameObjTypeRtgotNPCR*t GetNPCManagert GetNPCByIndextGetIndexR R…RR.RORtErrLogRWtChNPCt OnCollectEndRRRRSRr(    RtnpcIDRttagObjRˆR!RERtkey((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt OnCollectOK‰s*      #
c Csðtjƒ}tƒ}|jƒ}|dkrT||tkrAdS|jt|ƒn‹|dkr–|tkrpdStj    t
|ƒtj |t j ƒnI|dkrß|t
kr²dS|dkr^|jtƒrátj|dƒdS|t}tj|tj|ƒ}|s dSx-|D]%\}    }
tj||    |
t jƒqWt|tƒ|jtdƒqß|dkr|jtƒrŠtjdƒdS|jtdƒqß|dkrß|jtƒsÉtjdƒdS|jtdƒqßnt||ƒdS(NiiitJHCallForBoss1sÒѾ­ÊÇ×Ô¶¯ÕÙ»½BOSS״̬£¡s"²»ÊÇ×Ô¶¯ÕÙ»½BOSS״̬£¬²»ÐèҪȡÏû£¡(R*R.R R8RRRrRR9RR:RNtAddEnterFBCountR
R RORR%t
NotifyCodetDef_BossCostMoneyt HaveMoneyExt ShareDefinetTYPE_Price_Gold_Paper_MoneytPayMoneytDef_Cost_FBGatherSoulBossRqR„RR1RB( Rt
actionTypet
actionInfoRRER!RGt    costMoneyt costMoneyListt    moneyTypetmoneyCnt((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt
DoFBAction©sN            
     c    Cs:tjƒ}|jtƒsdStjƒ}|sE|jtdƒdS|jƒ}|tkrq|jtdƒdS|jt    ƒr„dSt
ƒ}|t }t j |tj|tƒ}|sÛt j|dƒ|jtdƒnNx-|D]%\}}t j|||tjƒqâWt|tƒ|jt    dƒt||ƒdS(NitJHCallForBoss2i(R*R.RORRRsRrR8RNRR R¥R%R¦R§R¨RR¤R©R
RªRqR„RB(    RRERRGR!R­R®R¯R°((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyR×s2        
 cCstS(N(R(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytOnPlayerRebornüscCsdS(N((R((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt DoPlayerDeadscCs&tjƒ}|jƒtkr"tStS(N(R*R.R8RNRR(tattackertdefenderRE((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytCheckCanAttackTagObjInFBs cCs¾tjƒ}|jtƒd}|jtjƒ}|tjkrPitj|<n|tj|krwgtj||<ntj||j|||gƒt    j
ƒ}|rºt |dƒndS(Nii( R*R.RORR
tDef_FB_SingleFBPlayerIDRTRUtappendRRsRB(titemIDtitemCnttisBindRERatownerIDR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pytKillGatherSoulNPCDropAwards ! c Cstjƒ}|jƒtkr"dStjƒjƒ}tjt|ƒ|jt    j
ƒ}t j j |iƒ}g}x|jƒD]}||7}q~Wtjd||ƒtjƒ}|sßtjd|g|ƒtj|ƒdSt|ƒ}tj|tj|ƒ}t||kƒ}    |    rZtjd|jƒg|ƒtjdt|ƒ|jƒƒnHxE|D]=\}
} } tj||
| | tjgddt igƒqaWt!ƒ} |tjƒj"ƒ}tj#|ƒ}t$|idtj%6|tj&6|tj'6ƒtj(t)j*| t+dƒdS(Ns   ¸±±¾½áÊø´¦Àí  itemDict=%st
JHBagFull2s'±³°ü¿Õ¼ä²»¹»£¬·¢ËÍÓʼþ: mailItemList=%steventt GatherSoulFBiiè(,R*R.R8R;R=R†RR:ROR
R¸RTRUtpoptvaluesRŽRsR%t SendMailByKeyRJRKRPt
ItemCommontGetItemPackSpaceR§t rptGatherSoultintR(R1RYt ItemControlertGivePlayerItemRR R>RXt__SendOverInfot Over_isPasst Over_costTimet Over_itemInfotSync_Player_TimeTickRt tttLeaveMapR‚(RERR½Rgt totalItemListRjRt    needSpacet
emptySpacet
isSendMailRºR»R¼R€tcostTimetitemInfo((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyR#$s>    #    +cCsDtj|tj<tjdt|ƒ|jƒƒtj||ƒdS(Ns__SendOverInfo overDict=%s(    R
R RtOver_dataMapIDR*R1RYR(tNotify_FB_Over(RtoverDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyRËOs (DRR*RÅRRJRTRR
R§R5R%RÉRœtrangeR<R‚RR RR“RRR„R¥R{RpRot FB_Step_OpenR9RNR;RƒRRSRRRRRRRR RRRRR"R$RIRLRMRBRnRzRqRlRmRŒR’R”R¡R±RR³R´R·R¾R#RË(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_GatherSoul.pyt<module>sf             0            
                 
                  
    $         -                 *                     .    %                            +