hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
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
zõHec@säddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZdZiad„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Z d„Z!d„Z"d„Z#d„Z$d„Z%e&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/dS(iÿÿÿÿNsXMYH_TagPlayerID%scCsêtjd|jƒƒtj|tjdƒtj|tjdƒtj|tjdƒtj|tj    dƒtj|tj
dƒtj|tj dƒtj|tj dƒtj|tj dƒtj|tjdƒt|ƒdS(NsÖØÖÃÏÉÃËÑç»áÏà¹ØÊý¾Ý£¬º¬´«¹¦!i(t    GameWorldtDebugLogt GetPlayerIDt PlayerControltNomalDictSetPropertytChConfigt#Def_Player_Dict_FamilyPartyJoinSignt$Def_Player_Dict_FamilyPartyAnswerCntt'Def_Player_Dict_FamilyPartyCollectStatet#Def_Player_Dict_FamilyPartyTotalExpt(Def_Player_Dict_FamilyPartyTotalExpPointt%Def_Player_Dict_FamilyPartyTotalPointt!Def_Player_Dict_FamilySitExpRoundt!Def_Player_Dict_FamilySitTotalExpt&Def_Player_Dict_FamilySitTotalExpPointtSyncFamilySitInfo(t    curPlayer((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnDayFamilyPartyPlayer-s
cCst|ƒdS(N(R(R((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFBPlayerOnLogin<s
cCsdS(N((ttick((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnOpenFBDscCs&tjƒjƒ}tj|dƒdS(N(Rt GetGameWorldt    GetLineIDtg_familyMapPlayerIDDicttpoptNone(RtlineID((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnCloseFBLscCs t||ƒS(N(t __CheckEnter(RtmapIDRR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnEnterFBEventYscCs'|jƒdkr#tjdƒtStS(Nis Ã»ÓÐÕ½ÃË£¬²»ÄܽøÈëÕ½ÃËboss¸±±¾£¡(t GetFamilyIDRRtFalsetTrue(RR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRbs cCs|S(N((RRtlineIdtipyEnterPosInfoR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnGetFBEnterPossscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnChangeMapAsk{sc
Cs2tjƒjƒ}|jƒ}t||ƒs>tj|ƒdStjƒ}|jtj    tj
ƒ}|r‹t j tj
ƒ}t ||ƒntjƒjƒ}|tkr¶gt|<n|t|krÚt|j|ƒntjƒ}xEt|jƒƒD]1}    |j|    ƒ}|sqùnt||tƒqùWdS(N(RRtGetMapIDRRRt PlayerLeaveFBtGetGameWorldDictByKeyt ShareDefinet$Def_Notify_WorldKey_DailyActionStatetDailyActionID_FamilyPartytPlayerActivitytGetDailyActionRemainSecondst__DoEnterJoinFamilyPartyRRtappendtGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextDoFBHelpR!(
RRRtplayerIDt    gameWorldtpartyActionStatet remainSecondsRt playerManagertindex((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    DoEnterFB„s,      cCs
tjd||jƒƒ|r@|jtjd|dtƒn|jtj    ƒrVdSt
j |tj    dƒt j |tjƒtj|tjƒtj|tjdtjƒtj|tjdƒtj|tjdƒtj|tjdƒtj|tj dƒdS(Ns!Íæ¼Ò²Î¼ÓÏÉÃËÑç»á!remainSeconds=%siièi(!RRRt Sync_TimeTickR%t tttTowerTakeR!tNomalDictGetPropertyRRRRR/tAddDailyActionFinishCntR,R.t PlayerFamilytAddFamilyActivitytFamilyActive_Partyt EventReportt WriteEvent_FBtDef_FBMapID_FamilyPartyt CME_Log_StarttPlayerFairyCeremonytAddFCPartyActionCnttDef_PPAct_FamilyPartytPlayerNewFairyCeremonytPlayerFeastTraveltAddFeastTravelTaskValuetDef_FeastTravel_FamilyPartytPlayerActLogintAddLoginAwardActionCnttDef_LoginAct_FamilyParty(RR;((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR1¡s cCs)tjƒ}|jtjtjƒ}|S(N(RRR+R,R-R.(RR9R:((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnCanGetAreaExp¶s cCstjƒjƒ}|sdStjƒ}|jtjtjƒ}|jtjtjƒ}|rmt|ƒn|r‰t    j
|t dƒndS(Niˆ( RRt GetPropertyIDR+R,R-tDailyActionID_FamilySitR.tProcess_SitActiontFBCommontNotifyCopyMapPlayerFBHelpR7(RtfamilyIDR9tsitActionStateR:((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt    OnProcess¿s  cCs&d}tjddƒ\}}tjƒ}|j|ƒ}|||dkrQdS|j||ƒtjƒjtj    ƒ}tj
ƒ}|j ƒ}tjddƒ\}    }
|dkrÌt |
|d|    ƒnd} xMt |j ƒƒD]9} |j| ƒ} | sqån| jtjƒ}||kr|d7}tj| tj|ƒ| jƒ}tj| ƒ}ttjddƒƒ}tj| ƒj|tjd| ƒ}| jtjƒ}| jtjƒ}|tj||}tj| tj|tjƒtj| tj|tjƒnt| |ƒqåWdS(    NtSitActionProcessTickt    FamilySitiièiiit    expRateEx(t IpyGameDataPYtGetFuncEvalCfgRt    GetGameFBtGetGameFBDictByKeyt SetGameFBDictRR+R,t"Def_Notify_WorldKey_WorldAverageLvR3R5tminR4R6RARR RRtGetLVtGetPlayerReExptevaltGetFuncCompileCfgtAddExptDef_ViewExpType_SitR RtDef_PerPointValueR7(Rtkeytintervalt expRoundMaxtgameFBtlastTicktworldlvR<t playerCounttperPlayerExpRateAddt expRateAddMaxR_R=RtexpRoundtreLVtreExptgiveExpt finalAddExptexptexpPointt newTotalExp((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRWÑs>   ) 
 $ cCsÓ|d}tjddƒ}|\}}tjƒ}x t|jƒƒD]Œ}|j|ƒ}|shqGn|jƒ|jƒkr†qGn|jƒ|kr¡|}    n|}    dt    }
} t
j ||    |
| t j gƒqGW|jƒ|krídStjddƒ\} } tj|| ttjtƒtj|ƒj| tjƒtj|jƒd|jƒ|gƒ|jtjƒ}tj|tj|dƒtj|tjdƒtjƒj ƒtj!krÏt"|dƒndS(Nit PartyReward2it PartyRewardit Party_Answer(#R`RaRR3R4R5R6RRR t ItemControlertGivePlayerItemR%trptItemRCtAddPlayerFamilyActiveValueR!R,tDef_AddFAVReason_FamilyPartyRRktDef_ViewExpType_SysExt FamilyNotifytGetNameRARRRtPlayerTongTianLingtAddTongTianTaskValuet"TTLTaskType_FamilyPartyAnswerRighttGetMapR)RHR7(Rt
answerInfot rightPlayerIDtanswerRWItemRewardt rightItemIDt wrongItemIDR<R=tplayert
giveItemIDt    itemCountt isAuctionItemtaddPointtaddExpt curAnswerCnt((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytFamilyPartyAnswerRightþs6
       #%cCsÂtjƒjƒ}|tjkr%dStjd|ƒ|dkrµtjtj    ƒ}tj
ƒ}x[t |j ƒƒD];}|j |ƒ}| ss|jƒr¡qsnt||ƒqsWn    gt_dS(NsÏÉÃËÑç»á»î¶¯×´Ì¬±ä¸ü state=%si(RRR)RRHRR/R0R,R.tGetPlayerManagerR4R5R6tIsEmptyR1t
PyGameDatatg_familyPartyInfo(tstateRRR;R<tiR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnFamilyPartyStateChange&s      cCstj|ƒdS(N(RR*(RR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnLeaveFamily?s cCs¤tjƒ}|jtjtjƒ}|jƒ}|jtj    ƒ}t
j ddƒ\}}|jtj ƒ}    |jtj ƒ}
|
tj|    ||} | tj}    | tj}
|jtjƒ} | ||7} t|jtjƒpë| ƒ} i|    tj6|
tj6| tj6| d6}tjr¯g}xNttjddƒD]6\}}|ji|d6|dd6|dd6ƒqBW||d    <itjdd6tjdd6|d
<n|ràtjƒjƒ}tj|gƒ|d <n|jtjtjƒ}|r||jtjƒ}    |jtjƒ}
|jtj ƒ}tj!ƒj"ƒ}i|    tj6|
tj6|d 6|d 6}||d<ntj#d||ƒtj$||ƒdS(NR€it
hasCollectiitranktnametcnttfamilyPartyRanktfamilyPartyToptfamilyPartyPlayerRwRttsitInfos DoFBHelp %s(%RRR+R,R-R.RRARRR`RaR    R
RmR tintRRXtHelp_expt Help_expPointt
Help_scoreRRžt    enumerateR2RRtgetRVR RR R3R5Rt Notify_FBHelp(RRtisSyncPlayerIDR9R:R8R™R—R˜R|R}ttotalExpt
totalPointR£thelpDicttrankListR tinfoRR[RwRtRª((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyR7JsD    +    #.
)( cCs¹tjƒjtjtjƒ}|s9tj|dƒdS|jt    j
ƒ}|retj|dƒdSt t j ddƒƒ}tj|tj|ƒ}||krµtj|dƒdStS(NtParty_NotInPartyTimetParty_HadCollectedtFamilyPartyDeskitGeRen_chenxin_998371(RRR+R,R-R.Rt
NotifyCodeRARRtlenR`Rat
ItemCommontGetItemPackSpaceR%R„R!(RtcurNPCRR:R£t    needSpacet    packSpace((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCanCollect|s cCstjddƒdS(NRºiiè(R`t
GetFuncCfg(RRÀ((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytGetFBPrepareTime’sc Csþ|jƒ}tj|tjdƒtjd|ƒtjddƒ}x6|D].\}}}t    j
|||dt j gƒqKWtj dƒ}tj|d|gƒtj||ttjƒ|jtjƒ}    |    |}
tj|tj|
ƒt|dƒdS(Nis    Ñç»á²É¼¯³É¹¦£¡RºiitParty_CollectSuccess(tGetIDRRRRRRR`RaR‚RƒR%R„RÄR¼RCR…R!R,R†RAR R7( RtnpcIDRR8t    itemAwardtitemIDR•tisBindR—R´tupdPoint((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt OnCollectOK›s #
 cCsŠ|tjkrdS|jtjƒ}|jtjƒ}|tj||}tj|tj|tjƒtj|tj|tjƒdS(N(    R,R‡RARR    R
RmRR(RR˜t expViewTypeR|R}R~((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytOnGetExp´scCs¹t|ƒtjƒjƒ}|jƒ}|tj|gƒkrµt|j|ƒt|rµtjƒ}xHt    |j
ƒƒD]1}|j |ƒ}|s›qznt ||t ƒqzWqµndS(N(RRRRRÇRR°tremoveR3R4R5R6R7R!(RRRR8R<R=((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytDoExitFBÃs
 
 cCsdS(N((Rt
actionTypet
actionInfoR((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt
DoFBActionÙscCs“tjƒ}x€t|jƒƒD]l}|j|ƒ}|s@qn|jƒ|krXqntj|tj    |ƒtj
d|j ƒ|fƒqWdS(Ns:Ôö¼Ó±¾ÏÉÃ˳ÉÔ±´ðÌâ»îÔ¾Áî, playerID=%s,addFamilyActivity=%s( RR›R4R5R6RRt    GiveMoneyR,tTYPE_Price_FamilyActivityRR(RZtaddFamilyActivityR<R=R((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pytDoAddFamilyMemberFamilyActivityÜs !cCsitjƒ}|jƒ|jtjƒ|_|jtjƒ|_|jtj    ƒ|_
t j ||ƒdS(N( tChPyNetSendPackttagMCFamilySitInfotClearRARR tExpRoundR tExpRtExpPointt NetPackCommont SendFakePack(Rt
clientPack((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyRès 
(0R,RXRR%RRRCR`RNRJRMRQRFRR¾R‚R/RŠRÙRßtFBPlayerDict_TagPlayerIDRRRRRRRR$R(R>R1RTR\RWRšR¡R¢R R7RÃRÅRÍRÏRÑRÔRØR(((s‹E:\Git\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_FamilyParty.pyt<module>s\                                                                                     -    (         2