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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
ð¸ic@s‡ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Z d„Z!dd„Z"d„Z#dS(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.pyR0s     !
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.pytSetBootyDropToday9s
  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 killObjListtuseSkilltmapIDt
funcLineID((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnPlayerLineupAttackResultIsc Cs|s
dS|jtjƒ}|rótj|tjdƒtjddƒ}||}tj|ƒ\}}t    t
||dƒ|ƒ}||}    t j d|    |||||fƒtj|ƒj |    tjƒ}
|ró|
rótj||ƒqónt||ƒdS(NitMainlineigY@sRÔö¼Ó¾­Ñé: totalExp=%s,unXiantaoCntExp=%s,baseExp=%s,mjEx=%s,mjExPer=%s,exRemain=%s(R
RtDef_PDict_UnXiantaoCntExpRRRt
GetFuncCfgt
PlayerLLMJtGetAddExpPerInfoRtintRRtAddExpt ShareDefinetDef_ViewExpType_KillNPCtAddExpExt __doMainDrop( RR R!tunXiantaoCntExptperExptbaseExptmjExPertexRemaintmjExttotalExpt finalAddExp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRQs"
 
      c Cst||ƒdkrdS|jƒ}g}tj|ƒd}tjd|ƒ}|re|jƒ}ntjd||f|ƒt    j
|t j ƒ}tj ddiƒ}tj ddiƒ}x>|D]6\}    }
|dkrñtjd|ƒPn|
dkrqÅn|jtj|    ƒ} | |
krHtjd    |    | |
f|ƒqÅn|    |ksÅ|    |krfqÅn||    } |jtj|    ƒ} | | }|dkr¢qÅntjƒj|    ƒ}|sÃqÅn|jƒtjkry|jdƒ}|jƒ}|jdƒ}|tjkry|tjkrytj|tjƒ}tj|ƒ}||krvtjd
|    ||f|ƒqÅqvqyn||    }t|t t!fƒ sÅt"|ƒdkr±qÅn|d}|d}d}xEt#|ƒD]7}||kró|}nt$j%||ƒ}||7}qØWt&||
| ƒ}|dkr8qÅntjd |    | |||f|ƒt'j(|    |t)d |ƒ}|dkrˆqÅn|j+dƒt'j,||d t j gƒs¹qÅn| | } tj-|tj|    | ƒt.||    | |ƒ|d8}qÅWdS(Niÿÿÿÿit MainChapters"¿ÉµôÂäÕ½ÀûÆ·ÉÏÏÞ: chapterID=%s, %st MainBootyDropiis µôÂä±³°üÒÑÂú!s6Õ½ÀûÆ·ÒÑ´ï½ñÈÕµôÂäÉÏÏÞ! itemID=%s,todyDropCnt=%s >= %ss/ÌôսȯÒÑ´ï´æ´¢ÉÏÏÞ! itemID=%s,curMoney=%s >= %ssPµôÂäÕ½ÀûÆ·! itemID=%s,unXiantaoCntBooty=%s,´ÎÊý=%s,dropCntTotal=%s,spaceCount=%sRt packIndexList(/t __doDropEquipRRtGetMainLevelNowInfoRtGetIpyGameDataRRRt
ItemCommontGetItemPackSpacet IPY_GameWorldt rptIdentifytGetFuncEvalCfgR
RR R    t GetGameDatatGetItemByTypeIDtGetTypetDef_ItemType_AutoUseMoneytGetEffectByIndext GetEffectIDtGetEffectValuetDef_Effect_ItemGiveMoneyR-tTYPE_Price_ArenaTickettGetMoneyt PlayerArenatGetArenaTicketStoreMaxt
isinstancetlistttupletlentrangetrandomtrandintRt ItemControlertGetOutPutItemObjtFalsetNonet    SetIsBindtDoLogic_PutItemInPackRR(RR!tplayerIDtDailyBootyUpperListt    chapterIDtchapterIpyDatat
spaceCounttbootyDropNeedDicttbootyDropCntDictR t    dropUppert todyDropCntt dropOneNeedtunXiantaoCntBootyt dropBootyCnttitemDatatcurEffteffIDt    moneyTypetcurMoneytstoreMaxt dropCntRangetdropMintdropMaxt dropCntTotalt_tdropCnttcurItem((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR0hsŠ    
 
 
(
 
            
c"
CsÖ|jƒ}tj|ƒ}tjddƒ}t|jƒdƒ}d}i}x±|D]©}|jƒ}    |jƒ}
|
sqUnt    j
|
ƒ} | sšqUn| j ƒ} | |kr¸qUnt j || ƒ} | s×qUn| |9} || | g||    <|| 7}qUW|dkr,t jd||f|ƒdStj|tj|ƒ}|s^t jd|ƒdS|jtjƒ}tjd|ƒ}|sŒdSt jd||||f|ƒtjd    diƒ}|rÓt|ƒnd}xö|jƒD]è\}    }|\}} } t|d
| ƒr-t|d
| ƒƒ}n |jƒ}t jd |    | | ||f|ƒ|shqænd}g}xFt|dƒD]5\}}|sœq„n||7}|j||gƒq„W|sÇdSt jd ||f|ƒxêt| ƒD]Ü}|dkrPnd}|jtj ƒd}||krÝ||}|d}t!|ƒdkr\|dnd}t!|ƒd kr~|d nd}i}|dkrª||dt"j#<n|rÀ||t"j$<nt jd|||fƒnZt j |ƒ}|søqînt    j%dd|dtj&ddƒ} | s(qînt'j(| ƒ}t)j*|dt+d|d|ƒ}!|!dkrjqîn|!j,dƒt)j-||!dtjgƒs›qîn|d8}||krîtj.|tj |ƒqîqîWqæWdS(Nt MainEquipDropiis4Ö÷ÏßÔݲ»ÄܵôÂä! unXiantaoCntEquip=%s,dropEquipCnt=%ss µôÂä±³°üÒÑÂú!iÿÿÿÿtTreeLVsNÖ÷ÏßµôÂä×°±¸: unXiantaoCntEquip=%s,dropEquipCnt=%s,treeLV=%s,objDropCntDict=%stMainDropAppointsGetEquipColorRateList%ss?tagID=%s,bossType=%s,dropCnt=%s,treeLV=%s,equipColorRateList=%ss!    colorRateList=%s,totalRate=%sis%ss)¶¨ÖƵôÂäµÚ%s´Î: equipID=%s,setAttrDict=%stcolort    placeListtfindTypeRt setAttrDictR;(/RRtGetUnXiantaoCntEquipRR(tmaxt GetFightPointtGetIDtGetNPCIDt    NPCCommont GetNPCDataPyt GetBossTypeRtGetResultByRandomListRR?R@RARBR
RtDef_PDict_TreeLVR>RCtitemsthasattrtgetattrtGetEquipColorRateListt    enumeratetappendRTRZtDef_PDict_AppointDropEquipCntRSR-tDef_IudetItemLVtDef_CItemKey_AppointIDt__GetEquipIDListtDef_MainEquipPlacesRUtchoiceRWRXRYR[R\R("RR!R]tunXiantaoCntEquiptbossTypeDropInfot
fightPointt dropEquipCnttobjDropCntDictttagObjttagIDtnpcIDtnpcDatatbossTypeRtttreeLVRtdropAppointEquipDicttappointDropCntMaxtdropInfotequipColorRateListt    totalRatet colorRateListt
equipColort    colorRateRsR|tappointDropEquipCntt appointInfot randEquipIDtequipLVt    appointIDt    itemColort equipIDListRu((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyR<¾s´      
          
 
 
"" $!  
 !cCsÂtj|ƒ}|j}|jƒs8tj|dƒdSd}tjƒ}d}|j    t
j ƒ}|j dƒ}x6|j jƒD]%}    |j|    ƒ}|jƒrPqqW|sÄtj|dƒdStjƒ}
d|
_tj||
ƒg} |j    t
jƒ} | j dƒ}xX|j jƒD]G}    |j|    ƒ} | jƒr | j| ƒtj|| ||ƒq q W|jt
jƒ|}tj|t
j|ƒtj|d|ƒtj|dtj||ƒƒtj|ƒd}tj d|ƒ}|r||j!ƒ}xw|D]l\}}|dkr'q    n|jt
j"|ƒ|}tj|t
j"||ƒtj|d||fƒq    Wnt#||| ||j$|j%ƒ|j&ƒd|
_tj||
ƒdS(    Ns ·ÇÖ÷ÏßÕ½¶·ÖÐ!isÖ÷ÕóÈÝûÓдæ»îÎ佫!isδ½áËã¾­ÑéÕ½´¸Êý: %ssδ½áËã×°±¸Õ½´¸Êý: %sR9sδ½áËãÕ½ÀûÆ·(%s)Õ½´¸Êý: %s('t
TurnAttacktGetMainFightMgrt    turnFightt    isInFightRt DebugAnswerRZt    BattleObjt GetBatObjMgrt getBatFactionRt Def_FactionAt getBatlineupt posObjIDDicttvaluest    getBatObjtIsAlivetChPyNetSendPackttagSCTurnFightReportSigntSignt NetPackCommont SendFakePackt Def_FactionBRŒt SetObjKilledR
R'RRtAddUnXiantaoCntEquipR=RR>RR    R%R#R$tcheckOverByKilled(Rt
useXiantaot mainFightMgrR¯R"t    batObjMgrR t batFactionAt    batLineuptobjIDt
clientPackR!t batFactionBR˜R1R_R`R^R tupperCntRg((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyt
GMTestKill-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.pytOnMainDropItemOPts               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|ƒtj|tjƒdS(Ns1´©´÷Ö÷Ïß×°±¸: itemIndexList=%s,isAutoDecompose=%sisÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖ÷Ïß×°±¸: itemIndex=%sis;    itemIndex=%s,itemID=%s,equipPlace=%s,equipPlaceIndex=%ssKÖ÷Ïß×°±¸¶ÔӦװ±¸Î»ÖÃË÷ÒýÒì³£: itemIndex=%s,equipPlace=%s,equipPlaceIndex=%s(RRRtGetItemManagertGetPackRARBtGetCounttGetAtR?tCheckItemCanUsetGetIsMainEquipt GetItemTypeIDt GetEquipPlacetrptEquiptErrLogtGetItemR[tDoLogicSwitchItemRŒRÔtChEquiptRefreshRoleEquipAttrt
PlayerTaskt UpdTaskValueRtTaskType_EquipColor(RRÜtisAutoDecomposeR]t IdentifyPacktdecomposeIndexListt    itemIndextcurEquipR t
equipPlacetequipPlaceIndext    equipPackt    destEquipt    canDecomp((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRӄsH    
          c Cs2|jƒ}tjd||ƒtjddƒ\}}| sF| rJdSi}|jƒjtjƒ}x]t    |j
ƒƒD]I}|j |ƒ}t j |ƒs¥q{nt j|ƒsºq{n|||<q{W|sÒdSt|ƒ}    tj|ƒ}
|    dkr    |
t|    ƒn|
} td|| ƒ} tj|ƒ\} }t| | dƒ}tjd|
|    | |jƒf|ƒtjd|| | ||f|ƒd}d}d}g}xÜ|D]Ô}||krËq³n||}|| 7}|dkrt||ƒ}||8}||7}||7}ntjd    ||| | |||f|ƒt j|||j
ƒttjƒ|j|ƒ|d7}|
| 8}
q³W|s•dStt|ƒƒ}tj||
ƒ}
tjd
|||
f|ƒtj |||d d t!ƒtj"||ƒt#j$|tj%|ƒt&j'|tj(|ƒdS( Ns·Ö½âÖ÷Ïß×°±¸: itemIndexList=%sRviigY@sEunXiantaoCntEquip=%s,equipCnt=%s,perEquipXiantao=%s,equipIndexList=%ss=moneyBase=%s,decomposeMoney=%s,mjExPer=%s,exRemain=%s,mjEx=%sis\    itemIndex=%s,moneyBase=%s,perEquipXiantao=%s,decomposeMoney=%s,mjEx=%s,exRemain=%s,×Ü:%ss/moneyTotal=%s,mjExTotal=%s,unXiantaoCntEquip=%stDecomposeMainEquipt    isSysHint()RRRRRCRàRáRARBRTRâRãR?RäRåRSRR}tfloatR~R)tGetAddDecomposePerR+tkeysRtDelItemtTrueRtItemDel_EquipDecomposeRŒtroundtSetUnXiantaoCntEquipt    GiveMoneyRYtAddExpDecomposeRît AddTaskValuetTaskType_EquipDecomposetPlayerActivitytAddDailyTaskValuetDailyTask_EquipDecompose(RRÜR]Rlt    moneyBaset    equipDictRòRÙRõtequipCntR“tperEquipXiantaotdecomposeMoneyR4R5R6t
moneyTotalt    mjExTotalt decomposeCntRóRô((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRÔ´sn  "    #  
 
 
 
      " 
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áRARBRWtPlayerItemControlerRâRãR?RäRåRæRêt GetItemCountt    PutInItemtrptItemtWipe(
RRÜR]Ròt itemControlRôRuR 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
GetPoolMgrtacquireR»ttagSCDropBootyInfot DropBootyListttagSCDropBootytItemIDR
RR t TodayDropCntRŒRStCountR¾R¿(RR tsyncItemIDListtpoolMgrRÊt    dropBooty((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyRs               cCsÆ|s
dS|j}|jƒ}tj|ƒ}tj|ƒ\}}    }
|sžtd|
dƒ} tj|||    | ƒ} tj    d||    |
| | f|ƒdS|j
ƒrËtj    d||    |
f|ƒdS|
|j kr.t |j |
dƒ} tj|||    | ƒ} tj    d||    |
| | f|ƒntj    d||    |
f|ƒtj |ƒ} tj||    |
ƒ}|| kr¨tj    d|| f|ƒtj||ƒntj    d|| f|ƒdS(NisRÖ÷ÏßС¹ÖÕ½¶·Ê§°Ü£¬½µÒ»²¨! chapterID=%s,levelNum=%s,wave=%s,nextWave=%s,nowValue=%ss>Ö÷ÏßС¹ÖÕ½¶·Ê¤Àû£¬ÓÐÏÂһС¶Ó! chapterID=%s,levelNum=%s,wave=%ssTÖ÷ÏßС¹Ö²¨Õ½¶·Ê¤Àû£¬ÏÂÒ»²¨! chapterID=%s,levelNum=%s,wave=%s,nextWave=%s,nowValue=%ssDÖ÷ÏßС¹Ö²¨Õ½¶·Ê¤Àû£¬×îºóÒ»²¨Ñ­»·Ë¢! chapterID=%s,levelNum=%s,wave=%ss1¸üе±Ç°¹ý¹Ø½ø¶È! curPassValue=%s,hisPassValue=%ss>䳬¹ýµ±Ç°¹ý¹Ø½ø¶È£¬²»¸üÐÂ! curPassValue=%s <= hisPassValue=%s(tisWinRR­R®RR=R~tSetMainLevelNowInfoRRthaveNextLineuptwaveMaxRtGetMainLevelPassValuetComMainLevelValuetSetMainLevelPassValue(RR¯R#R$toverMsgR(R]RÅR_tlevelNumtwavetnextWavetnowValuet hisPassValuet curPassValue((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pytOnTurnFightOver&s8               ($RRR­R-RRR    R»RWRAR¾RNR)R?RîR‚R²RìRRURRRRRR%RR0R<RÍRßRÓRÔRÕRR6(((s„D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MainLevel.pyt<module>sF                                                            V    o    G        0    D