CeHua_ZWJ
2018-08-30 68dd29f253672a95ba21e5b5a0c5740d2866e8d9
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
â[‡[c@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e dƒ\ZZZdZdZdZdZdZd    Zd
Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+dS(sVersion = 2018-04-16 17:20iÿÿÿÿNitFamilyPartyFB_FamilyIDtMap_FamilyPartyFB_StartTicksLastEnterFbDay_%ssXMYH_TotalExp%ssXMYH_TotalExpPoint%ssXMYH_TotalPoint%ssXMYH_HasCollect%scCstj|tjdƒdS(Ni(t PlayerControltNomalDictSetPropertytChConfigt$Def_Player_Dict_FamilyPartyAnswerCnt(t    curPlayer((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFBPlayerOnDay0scCs=tjƒ}|jtdƒ|jƒ|jtjdƒdS(Ni(t    GameWorldt    GetGameFBt SetGameFBDicttMap_FamilyPartyFB_FamilyIDtClearAllPlayerGameFBDictRtMap_FBDict_NotifyStart(tticktgameFB((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnOpenFB8s
 
cCstjƒdS(N(tFBCommontDoLogic_FBKickAllPlayer(R((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnCloseFBDs
cCs t||ƒS(N(t __CheckEnter(RtmapIDtlineIDR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnEnterFBEventPscCs'|jƒdkr#tjdƒtStS(Nis Ã»ÓÐÕ½ÃË£¬²»ÄܽøÈëÕ½ÃËboss¸±±¾£¡(t GetFamilyIDRtDebugLogtFalsetTrue(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRYs cCs|S(N((RRtlineIdtipyEnterPosInfoR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnGetFBEnterPosjscCsZtjd|jƒƒ|jƒ}tjd|ƒ|dkrGtjSt|ƒ}tjS(NsOnChangeMapAsk  CopyMapID=%ssOnChangeMapAsk playerIDStr=%stt0(ss0(RRt GetCopyMapIDtGetMsgt IPY_GameWorldt    cmeCustomtintt    cmeAccept(taskRt playerIDStrtplayerID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnChangeMapAskqs   cCsátjƒjƒ}|jƒ}t||ƒs>tj|ƒdStjƒ}tjƒ}t|ƒ}|sytj|ƒdS|j    t
j d|t ƒtj d|ƒ|jtƒsË|jt|jƒƒntjƒjtjƒ}|jt|ƒ|dkrÐ|jt||dƒ|jt|dƒ|jt|dƒ|jt|dƒ|jt|dƒtj|ƒtj|tjƒt j!|tj"ƒt#j$|tjdtj%ƒt&j'|tj(dƒnt)||ƒdS(NiscloseFB_RemainTick=%si(*Rt GetGameWorldtGetMapIDt GetPlayerIDRRt PlayerLeaveFBR    t__GetRemainTickt Sync_TimeTickR#t tttTowerTakeRRtGetGameFBDictByKeyR R
RtGetGameWorldDictByKeyt ShareDefinetDef_Notify_WorldKey_ServerDaytGameFBDict_LastEnterFbDaytSetGameWorldDicttFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointtFBPlayerDict_TotalPointtFBPlayerDict_HasCollectRtClearAreaRewardRecordtAddEnterFBCountRtDef_FBMapID_FamilyPartyt PlayerFamilytAddFamilyActivitytFamilyActive_Partyt EventReportt WriteEvent_FBt CME_Log_StarttPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FamilyPartytDoFBHelp(RRRR)Rt    gameWorldtcloseFB_RemainTickt openServerDay((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    DoEnterFBs:        cCsStjƒjƒ}tjƒjtƒ}tdtj|ƒdd||ƒ}|S(Niiè(    RtGetMapR,R+R3RtmaxRtGetFBLineStepTime(RRt    startTickRJ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR/°s(c    Cs©tjƒ}|jƒ}|tkrLtjtjƒr¥tjt    |ƒq¥nY|t    kr¥tjtjƒs·t
ƒtj |t dƒgt _tjt|ƒtjƒtj|ƒq¥tjd|ƒtj |t dƒtjƒjƒ}|jtjƒ}tj|ƒd}|t|ƒkr¥||}tdt|ƒdƒ}||ddkr¢|jtƒ}tj|d|gƒtjƒjtj|dƒq¢q¥ndS(NitFamilyPartyAreaAwardi'iiètParty_OverTime( RR    t    GetFBStept FB_Step_OpenRtGetFBFuncOpenStateRR>t    SetFBSteptFB_Step_Fightingt GiveJoinPrizetNotifyCopyMapPlayerFBHelpRHt
PyGameDatatg_familyPartyInfot FB_Step_OverRtGameWorldProcesstCloseFBtDoLogicAreaRewardRMR,R2R ROtlenRNR/R Rt FamilyNotifyR
(    RRtfbStepRt notifyIndextnotifySecondListt notifySecondt remaindTicktfamilyID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnProcess»s4        
 
&cCs¥tjddƒ\}}tj||ttjtƒtj|ƒj|ƒ|j    t
j ƒ}tj |t
j |dƒt jƒjƒt
jkr¡t|dƒndS(Nt PartyRewardiii(t IpyGameDataPYtGetFuncEvalCfgR?tAddPlayerFamilyActiveValueRR4tDef_AddFAVReason_FamilyPartyRtAddExptNomalDictGetPropertyRRRRRMR,R>RH(RtaddPointtaddExpt curAnswerCnt((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytFamilyPartyAnswerRightáscCs_tjƒjƒ}|tjkr%dStjd|ƒ|dkr[tjƒjt|ƒndS(Ns!    ÏÉÃËÑç»á»î¶¯×´Ì¬±ä¸ü state=%si(    RRMR,RR>RR+R7R(tstateRR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFamilyPartyStateChangeös cCsŒtjdƒ}|sdStjƒ}x`t|jƒƒD]L}|j|ƒ}|dks8|jƒrkq8nt    j
||t t j ƒq8WdS(NRi(Rjt
GetFuncCfgRtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonetIsEmptyR?RlRR4Rm(t    joinAwardtcopyMapPlayerManagertiR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRXs cCsd|jƒS(Ns%s(R-(RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetPlayerResetWorldPosFBMsgscCs|jƒ}tj|ƒdS(N(R-RR.(RRt curPlayerID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnLeaveFamily!s  cCstS(N(R(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnPlayerReborn-scCstjƒ}|jƒ}tj||ƒ}|jtjƒ}tj    ddƒ\}}|j
t |ƒ}|j
t |ƒ}    ||    tj |||}|tj }|tj }    |j
t|ƒ}
|
tjdƒ7}
|
||7}
|j
t|ƒ} |j
tj|ƒ} | tjddƒkr,dnd} i|tj6|    tj6|
tj6| d6| d6}tjr÷g}xNttjddƒD]6\}}|ji|d    6|dd
6|dd 6ƒqŠW||d <itjdd
6tjdd 6|d <ntjd||ƒtj||ƒdS(NRiiRQiiit
hasCollectt    isFullExptranktnametcnttfamilyPartyRanktfamilyPartyTops DoFBHelp %s(RR+R-RtGetFBAreaRewardExpRoRRRjRkR3R8R9tDef_PerPointValueR:RvR;tMap_Player_AreaReward_GetCnttHelp_expt Help_expPointt
Help_scoreRZR[t    enumeratetappendRt Notify_FBHelp(RRRIR)ttotalExpRrRpRqtexptexpPointt
totalPointR„tgetCnttisFullthelpDicttrankListRtinfo((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRH5s4    $2    #.
)cCs=tjƒjt|jƒƒ}|r9tj|dƒdStS(NtParty_HadCollected(RR+R3R;tGetIDRt
NotifyCodeR(RtcurNPCRR„((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCanCollect[s
cCstjddƒdS(NtFamilyPartyDeskiiè(RjRv(RR ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetFBPrepareTimegscCs¼|jƒ}tjƒ}|jt|dƒtjd|ƒtjdƒ}tj    |d|gƒt
j ||t t jƒ|jt|ƒ}||}|jt||ƒt|dƒdS(Nis    Ñç»á²É¼¯³É¹¦£¡R¢tParty_CollectSuccessi(RžRR+R7R;RRjRvRRŸR?RlRR4RmR3R:RH(RRR)RIRpR—tupdPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCollectOKos  
 (,t__doc__R4RRR#RRR?RjR]RERBRZtrangeRTRWR\R RR6R8R9R:R;RRRRRRR*RLR/RhRsRuRXR€R‚RƒRHR¡R£R¦(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt<module>sP                                                  #         &                             &