hxp
2025-08-12 597936df821ad2e12c53b5f25826faeb9849d3e4
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
74
75
76
77
½µšhc@s6ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zdd„ZdS(iÿÿÿÿNcCst|ƒdS(N(tSyncDropBootyInfo(t    curPlayer((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnFBPlayerOnLogin"s
cCst|ƒdS(N(tResetBootyDropToday(R((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnFBPlayerOnDay&s
cCsutƒ}x[|D]S}tj|tj|dƒ|jtj|ƒrtj|tj|dƒqqWt|ƒdS(Ni(tGetBootyItemIDListt PlayerControltNomalDictSetPropertytChConfigtDef_PDict_UnXiantaoCntBootytNomalDictGetPropertytDef_PDict_BootyDropTodayR(RtbootyItemIDListtitemID((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR*s     !
cCs]t|tjƒ}tj|tj||ƒtjd||f|jƒƒt    ||ƒdS(Ns/¸üнñÈÕµôÂäÕ½ÀûÆ·Êý: itemID=%s,updDropToday=%s(
tminRtDef_UpperLimit_DWordRRR t    GameWorldtDebugLogt GetPlayerIDR(RR t updDropToday((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytSetBootyDropToday3s
  cCsVtjƒ}|jƒ}|s"gS|j|dƒ}g|jƒD]}|d^qBS(Nii(t IpyGameDataPYtIPY_DatatGetMainChapterCounttGetMainChapterByIndextGetDailyBootyUpperList(t
ipyDataMgrt chapterCounttipyDatatbooty((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR:s   cCs&|tjkr"t|||ƒndS(N(RtDef_FBMapID_Maint __doKillAward(RtatkObjt killObjIDListtuseSkilltmapIDt
funcLineID((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnPlayerLineupAttackResultCscCs¥|stjdƒdS|jtjƒ}|r—tj|tjdƒtjddƒ}||}tjd||fƒtj|ƒj    |t
j ƒnt |ƒdS(NsûÓл÷ɱ²»ÐèÒª´¦Àí!itMainlineis(Ôö¼Ó¾­Ñé: totalExp=%s,unXiantaoCntExp=%s( RRR
RtDef_PDict_UnXiantaoCntExpRRRt
GetFuncCfgtAddExpt ShareDefinetDef_ViewExpType_KillNPCt __doMainDrop(RR R!tunXiantaoCntExptperExpttotalExp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRKs 
 
c    CsÛt|ƒ|jƒ}g}tj|ƒd}tjd|ƒ}|rV|jƒ}ntjd||f|ƒtj    ddiƒ}tj    ddiƒ}x:|D]2\}}|dkr¿q¡n|j
t j |ƒ}    |    |krtjd||    |f|ƒq¡n||ks¡||kr"q¡n||}
|j
t j |ƒ} | |
} | dkr^q¡n||} t| ttfƒ s¡t| ƒdkr–q¡n| d}| d}d}xEt| ƒD]7}||krØ|}ntj||ƒ}||7}q½Wt|||    ƒ}|dkrq¡ntjd|| | |f|ƒtj||td    |ƒ}|dkrjq¡n|jdƒtj||d
tjgƒs›q¡n| |
} tj|t j || ƒt|||    |ƒq¡WdS( Nit MainChapters"¿ÉµôÂäÕ½ÀûÆ·ÉÏÏÞ: chapterID=%s, %st MainBootyDropiis6Õ½ÀûÆ·ÒÑ´ï½ñÈÕµôÂäÉÏÏÞ! itemID=%s,todyDropCnt=%s >= %ssBµôÂäÕ½ÀûÆ·! itemID=%s,unXiantaoCntBooty=%s,´ÎÊý=%s,dropCntTotal=%sRt packIndexList( t __doDropEquipRRtGetMainLevelNowInfoRtGetIpyGameDataRRRtGetFuncEvalCfgR
RR R    t
isinstancetlistttupletlentrangetrandomtrandintRt ItemControlertGetOutPutItemObjtFalsetNonet    SetIsBindtDoLogic_PutItemInPackt IPY_GameWorldt rptIdentifyRR(RtplayerIDtDailyBootyUpperListt    chapterIDtchapterIpyDatatbootyDropNeedDicttbootyDropCntDictR t    dropUppert todyDropCntt dropOneNeedtunXiantaoCntBootyt dropBootyCntt dropCntRangetdropMintdropMaxt dropCntTotalt_tdropCnttcurItem((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR,\sb
 
 
 
(
 
         
c    Cs‹|jtjƒ}tjddƒ}||}|dkrXtjd|||fƒdStj|t    j
|ƒ}|s‡tjdƒdS|j ƒ}|jtj ƒ}tj d|ƒ}|sÁdS|jƒ}tjd||||f|ƒd}d}    g}
xFt|dƒD]5\} } | s'qn|    | 7}    |
j|    | gƒqW|    |krttjd    d
|    ||fƒn|
s~dStjd |
|    f|ƒxìt|ƒD]Þ} tj|
ƒ}|sÆq¥ntjdd |d tjddƒ}|söq¥ntj|ƒ}tj|dtd|ƒ}|dkr2q¥n|jdƒtj||dt    j
gƒscq¥n||8}tj |tj|ƒq¥WdS(Nt MainEquipDropiisCÖ÷ÏßÔݲ»ÄܵôÂä! unXiantaoCntEquip=%s,dropOneNeed=%s,dropEquipCnt=%ssµôÂä¼ø¶¨±³°üûÓпռä!tTreeLVsRÖ÷ÏßµôÂä×°±¸: unXiantaoCntEquip=%s,dropEquipCnt=%s,treeLV=%s,equipColorRateList=%si't GameWarnings&CutTreeTotalRateError:%s!=%s,treeLV=%ss!    colorRateList=%s,totalRate=%stcolort    placeListtfindTypeRR2(!R
RtDef_PDict_UnXiantaoCntEquipRR(RRt
ItemCommontGetItemPackSpaceRDRERtDef_PDict_TreeLVR5tGetEquipColorRateListt    enumeratetappendt SendGameErrorR;tGetResultByRandomListt    NPCCommont__GetEquipIDListtDef_MainEquipPlacesR<tchoiceR>R?R@RARBRCRR(RtunXiantaoCntEquipRNt dropEquipCntRFttreeLVRtequipColorRateListtmaxRatet    totalRatet colorRateListt
equipColort    colorRateRUt    itemColort equipIDListt randEquipIDRW((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR3™s^
     
  $  
c    Csÿ|jtjƒ|}tj|tj|ƒtj|d|ƒtj|ƒd}tj    d|ƒ}|rñ|j
ƒ}xw|D]l\}}|dkrœq~n|jtj |ƒ|}tj|tj ||ƒtj|d||fƒq~Wnt |ƒdS(Nsδ½áËã×°±¸Õ½´¸Êý: %siR0sδ½áËãÕ½ÀûÆ·(%s)Õ½´¸Êý: %s( R
RR^RRRt DebugAnswerR4RR5RR    R,(    Rt    unXiantaoRkRHRIRGR tupperCntRO((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytGMTestKillDropÔs  !
cCs˜tjƒj|ƒ}|j}|j}|j}|dkrOt|||ƒn)|dkrkt||ƒn t||ƒt    j
|t j t j|ƒdS(Nii(RtGetPlayerManagertGetPlayerByIndext    IndexListtOPTypetOPValuet__doEquipMainEquipt__doDecomposeMainEquipt__doPickupMainItemR_tSyncMakeItemAnswerR*tDef_mitMainDropItemOPRtDef_ComposeState_Sucess(tindext
clientDatattickRt itemIndexListtopTypetopValue((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnMainDropItemOPñs               cCs
|jƒ}tjd||f|ƒ|jƒjtjƒ}g}xœ|D]”}|dksK||jƒkruqKn|j|ƒ}t    j
|ƒs­tjd||ƒqKnt    j |ƒsÖtjd||ƒqKn|j ƒ}|j ƒ}    |    d}
tjd|||    |
f|ƒ|jƒjtjƒ} |
dksN|
| jƒkrqtjd||    |
f|ƒqKn| j|
ƒ} t    j
| ƒ} |jƒjdƒt    j||| tjƒsÃqKn|rK| rK|j|ƒqKqKW|rùt||ƒntj|ƒdS(Ns1´©´÷Ö÷Ïß×°±¸: itemIndexList=%s,isAutoDecompose=%sisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%sis;    itemIndex=%s,itemID=%s,equipPlace=%s,equipPlaceIndex=%ssKÖ÷Ïß×°±¸¶ÔӦװ±¸Î»ÖÃË÷ÒýÒì³£: itemIndex=%s,equipPlace=%s,equipPlaceIndex=%s(RRRtGetItemManagertGetPackRDREtGetCounttGetAtR_tCheckItemCanUsetGetIsMainEquipt GetItemTypeIDt GetEquipPlacetrptEquiptErrLogtGetItemRBtDoLogicSwitchItemRdRtChEquiptRefreshRoleEquipAttr(RR‰tisAutoDecomposeRFt IdentifyPacktdecomposeIndexListt    itemIndextcurEquipR t
equipPlacetequipPlaceIndext    equipPackt    destEquipt    canDecomp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR€sF    
          c     CsÀ|jƒ}tjd||ƒ|jƒjtjƒ}tjddƒ}|sTdSd}g}x3|D]+}|dksg||j    ƒkr‘qgn|j
|ƒ}t j |ƒsÉtjd||ƒqgnt j |ƒsòtjd||ƒqgn|jƒ}    tjd|    ƒ}
|
sdS|
jƒ} | s0dS| } || 7}tjd||    | | |f|ƒt j|||j    ƒttjƒ|j|ƒqgW|s dStj|||d    d
tƒdS( Ns·Ö½âÖ÷Ïß×°±¸: itemIndexList=%sRXiisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%st
EquipColors?    itemIndex=%s,itemColor=%s,moneyBase=%s,decomposeMoney=%s,%stDecomposeMainEquipt    isSysHint(RRRRRŽRDRERR(RRR_R‘R’t GetItemColorR5t GetMoneyBasetDelItemtTrueRtItemDel_EquipDecomposeRdRt    GiveMoneyR@( RR‰RFRœt    moneyTypet
moneyTotalRRžRŸRtt colorIpyDatat    moneyBasetdecomposeMoney((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR/sF    
    "c
CsH|jƒ}tjd||ƒ|jƒjtjƒ}tj|ƒ}xú|D]ò}|dksN||j    ƒkrxqNn|j
|ƒ}t j |ƒs°tjd||ƒqNnt j |ƒrÙtjd||ƒqNn|jƒ}|jƒ}tj|ƒ}    tjd|||    f|ƒ|jtj|ƒs6dS|jƒqNWdS(Ns$ʰȡÖ÷ÏßµôÂäÕ½ÀûÆ·! itemIndexList=%sisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ssÖ÷Ïß×°±¸²»¿Éʰȡ: itemIndex=%ss1Ö÷ÏßÎïÆ·Ê°È¡: itemIndex=%s,itemID=%s,itemCount=%s(RRRRRŽRDRER>tPlayerItemControlerRRR_R‘R’R“R—t GetItemCountt    PutInItemtrptItemtWipe(
RR‰RFRœt itemControlRžRWR titemt    itemCount((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR‚_s,    icCs½|stƒ}n    |g}tjƒ}|jtjƒ}g|_xR|D]J}|jtjƒ}||_|j    t
j |ƒ|_ |jj |ƒqIWt|jƒ|_tj||ƒdS(N(RtObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCDropBootyInfot DropBootyListttagSCDropBootytItemIDR
RR t TodayDropCntRdR:tCountt NetPackCommont SendFakePack(RR tsyncItemIDListtpoolMgrt
clientPackt    dropBooty((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR|s               (RRR*RRR¾R>RDRÅR_RgR™R»R<RRRRRR%RR,R3RzRŒR€RR‚R(((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyt<module>s8                                                      =    ;            .    0