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
uâ>fc@s„ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZiad„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zid „Z d„Z!d„Z"d„Z#dS(iÿÿÿÿNcCstjd|ƒS(Nt    RuneTower(t IpyGameDataPYtGetIpyGameData(tlevel((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytGetTowerIpyData+scCst|ƒdS(N(tSyncTrialLevelInfo(t    curPlayer((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnFBPlayerLogin.s
cCs*tj|tjt|ƒƒt|ƒdS(N(t PlayerControltNomalDictSetPropertytChConfigt(Def_Player_Dict_TrialTower_LastDayPassLVt__GetTrialLevelCurPassLVR(R((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnFBPlayerOnDay2s
cCsNtjƒ}|jƒt|ƒ|_|jtjƒ|_t    j
||ƒdS(N( tChPyNetSendPackttagMCTrialTowerInfotClearR tPassLVtNomalDictGetPropertyR
R tYesterDayPassLVt NetPackCommont SendFakePack(RtttInfo((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyR;s  
cCs|jtjƒS(N(RR
t!Def_Player_Dict_TrialTower_PassLV(R((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyR DscCs}tj|tj|ƒtj|ƒtj|tj    d|gƒt
j |ƒt j |tj|ttƒtjd|ƒdS(Nis ¸üзûÓ¡ËþÒÑͨ¹ØÊý %s(RR    R
Rt
PlayerRunetDoUnlockRuneHolet PlayerSuccesstDoAddSuccessProgresst ShareDefinetSuccType_PassRuneTowertPlayerBillboardtUpdateRuneTowerBillboardtPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_TowertFalsetTruet    GameWorldtDebugLog(Rtpasslv((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytSetTrialLevelCurPassLVHs  c    Cs¸|jƒ}t|ƒ}|s6tjd||ƒtS|t|ƒkr`tjd||ƒtS|jƒ}||ks‡|tj    kr´tjd|||||f|jƒƒtSt
S(Ns·ûÓ¡Ëþ¹Ø¿¨²»´æÔÚ: funcLineID=%ss)·ûÓ¡Ëþ±¾¹ØÒѹý¹Ø, ÎÞ·¨ÌôÕ½! funcLineID=%ssNÄ¿±êbossID´íÎó£¬ÎÞ·¨ÌôÕ½! mapID=%s,funcLineID=%s,bossID=%s,tagType=%s,tagID=%s( t GetPlayerIDRR%tErrLogR#R R&tGetNPCIDR
tTurnBattle_TagType_NPCR$(    RtmapIDt
funcLineIDttagTypettagIDt    valueListtplayerIDtipyDatatbossID((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnTurnFightRequestRs        cCsŠt}g}i}    |}
t|
ƒ} | s.dStj|||ƒ|d} | sUdStjddƒ} |
d| krœtj|tj    dtj
ddƒn| j ƒrtj ƒ}|j |jƒdƒjƒ}|
|krådnd}tjd||jƒ|
dgƒnt||
ƒt||
ƒ}t||
t|ƒt|ƒtj|tjƒtj|||ƒ|    j|ƒ|||    fS(Nit TowerRuneTypeiiditRuneTowerInfo_1tGeRen_liubo_471172(R#RtFBCommontOnFBJoinRt
GetFuncCfgt EventReportt WriteEvent_FBR
tDef_FBMapID_TrialTowert CME_Log_Endt GetIsNotifytIPY_DatatGetRuneTowerByIndextGetRuneTowerCounttGetIDRt WorldNotifyt GetPlayerNameR(t__GiveFBPassPrizet__SendTrialTowerOverInfoR$RtPlayerActivitytAddDailyActionFinishCntRtDailyActionID_TowertOnFBPasstupdate(RR-R.R/R0R1tfightRettneedSendGameServert awardItemListt
overInfoExtfbLevelR3tisWintfloorCntRAtmaxLeveltsysMarkt    prizeDict((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnTurnFightOveris6 
%  & 
 c Csøt|ƒ}|siS|jƒ}tj|tj|ƒ|jƒ}tj|tj|ƒtj    dƒ}||krÆg}xø||D]9\}}x*t
|ƒD]}    |j |ddgƒqŸWq†Wn°t ||ƒ}|j ƒ}
xA|
D]9\}}x*t
|ƒD]}    |j |ddgƒqWqèW|jƒ} xB| jƒD]4\}} tj| ƒr>|j |ddgƒq>q>Wxr|D]j\}}} tjƒj|ƒ}|s­q}n|jƒtjkr}tjdd|jƒ||gƒq}q}Wt|ƒ}tj|tj|ƒ}t||kƒ}|rftjd|jƒg|ƒtjdt |ƒ|jƒƒnHxE|D]=\}}} t!j"|||dtjgddt#igƒqmWi|tj6|tj6}it$j%|ƒt$j&6t$j'|ƒt$j(6}|S(    Nt PreFourAwardiitRuneTowerInfo_2t
TowerPrizes'±³°ü¿Õ¼ä²»¹»£¬·¢ËÍÓʼþ: mailItemList=%steventR()Rt GetRunePointRt    GiveMoneyRtTYPE_Price_RunetGetYsogtTYPE_Price_YsogRtGetFuncEvalCfgtxrangetappendt __GetEndAwardtGetFixEndAwardt GetGoodDroptitemsR%t    CanHappent GetGameDatatGetItemByTypeIDt GetItemColortDef_Item_Color_OrangeREtGetNametlent
ItemCommontGetItemPackSpacetrptRunetintt SendMailByKeyR)R&tstrt ItemControlertGivePlayerItemR#R9tGetJsonMoneyListt
Over_moneytGetJsonItemListt Over_itemInfo(RRRR3taddJHtRuneMagicEssencetspecialAwardDictt prizeItemListtitemIDtitemCntt_t FixEndAwardt goodDropDicttratetisBindtitemDatat    needSpacet
emptySpacet
isSendMailt    moneyDictRW((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyRGšsP    !  ) #,c CsAtjtjddiƒ|gƒ}tj|ƒ}|s=gSt|ƒ}|sSdSt|ƒg}tjtjddiƒ|iƒ}x™t|ƒD]‹}tj    |ƒ}|t
kr¹Pntj ||ƒ}    tj|    ƒ}
|
dkrêPnt
|j |
ƒ} | s    q”n|j| ddgƒq”Wtjd|||fƒ|S(NtRuneAwardCntRateitRuneAwardColors5    Ëæ»ú¸øÎïÆ·Êý: %s, giveItemList=%s,runeTypeList=%s(R%tGetDictValueByRangeKeyRRbtGetResultByRandomListtGetRuneTypeByTowerLVtInitRuneTypeColorInfoRctrandomtchoicetg_runeTypeDicttGetDictValueByKeytNonetgetRdR&( RRRtgiveItemCountRateListt giveItemCountt runeTypeListt giveItemListtruneColorRateDictR‚t giveRuneTypetruneColorRateListt    giveColort
giveItemID((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyReÒs0$ 
$  c    CsÇtsÃtjƒ}x®t|jƒƒD]—}|j|ƒ}|jƒ}tjƒj    |ƒ}|sgq%n|j
ƒ}|j dƒ}|j ƒ}|tkr«|t||<q%i||6t|<q%WndS(Ni( R”RRARct GetRuneCounttGetRuneByIndexRDR%RjRkRltGetEffectByIndext GetEffectID(    Rt
ipyDataMgrtiR3R€R‡t    itemColortcurEfft curRuneType((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyR‘òs     cCsdtj|tj<||tj<t|ƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒdS(Ns$__SendTrialTowerOverInfo overDict=%s( R
R>R9tOver_dataMapIDt
Over_wheelRst Over_isPassR%R&RuR)tNotify_FB_Over(RRRtisPasstoverDict((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyRHs   cCs)tjdƒ}|jt|dƒgƒS(NR6id(RRbR—Ru(ttowerLVttowerRuneTypeDict((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyRsc Cs!|jtjƒ}|s)tjdƒtStj|tj    ƒ\}}||kratjdƒdS|ryt
j ddƒnd}    |    r÷t j |tj|    ƒ}
|
s§dSxM|
D]B\} } t j|| | tjƒs®tjd|    |fƒdSq®Wntj|tj    ƒstjdƒtStS(Ns    Î´Í¨¹ØÒ»²ã£¬²»ÄÜɨµ´s    É¨µ´´ÎÊý²»×㣡tRuneTowerSweepBuyiis.·ûÓ¡Ëþɨµ´ÏÉÓñ²»×ã!costGold=%s£¬curDayTimes=%s(RR
R R%R&R#RItGetDailyActionFinishCntRtDailyActionID_TowerSDRR;Rt HaveMoneyExtTYPE_Price_Gold_Paper_MoneytPayMoneytDef_Cost_FBSweepRJR$( RR-tlineIDtsweepCnttisFinishtdataExtyesterDayPassLVt curDayTimest dayTimesLimitt    needMoneyt costMoneyListt    moneyTypetmoneyNum((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnPlayerFBSweepAsks*     c( Cs8|jtjƒ}t|ƒg}i}i}    i}
d} d} tjƒ} x›t| jƒƒD]‡}| j|ƒ}|j    ƒ}|d}||kršPn|    j
|dƒ|j ƒ|    |<| |j ƒ7} |
j
|dƒ|j ƒ|
|<| |j ƒ7} t jtjddiƒ|gƒ}t j|ƒ}|s9q_nt|ƒ}|sQq_nt jtjddiƒ|iƒ}xÛt|ƒD]Í}tj|ƒ}|tkr§Pnt j||ƒ}t j|ƒ}|dkrØPnt|j
|ƒ}|s÷q‚n||kr(||j
|dƒd|||<nid|6||<|j|ddgƒq‚W|jƒ}x„|jƒD]v\}}t j|ƒrl|j|ddgƒ||krÎ||j
|dƒd|||<qâid|6||<qlqlWq_Wi}x«|jƒD]\}}tj|jƒƒ} | ||<xo|jƒD]a}t jƒj|ƒ}!|!s\q5n|!j ƒt!j"kr5t#j$dd|j%ƒ||gƒq5q5WqýW| r½t#j&|t!j'| ƒn| rÜt#j&|t!j(| ƒnt)|ƒ}"t*j+|t!j,|"ƒ}#t-|"|#kƒ}$|$rWt#j.d|j/ƒg|ƒt j0d    t1|ƒ|j/ƒƒnHxE|D]=\}}%}&t2j3|||%dt!j,gd
d t4igƒq^Widtj56tj6tj76|d 6|    d 6|
d6}'t j0d|'ƒtj8||'ƒt9j:|t!j;dƒt<j=|tj>dƒt?j@|tjAdƒtBS(NiidRŒiRitRuneTowerInfo_3tRunePackUnEnoughs'±³°ü¿Õ¼ä²»¹»£¬·¢ËÍÓʼþ: mailItemList=%sR\t RuneTowerSDt SDTowerItemt SDTowerPointt SDTowerYsogs    overDict=%s(CRR
R R‘RRARcRCRBRDR—tGetSweepRunePointt GetSweepYsogR%RŽRbRRR’R“R”R•R–RdtGetSweepGoodDropRhRiR9RztkeysRjRkRlRRmRRERnR^R_RaRoRpRqRrRsRtR)R&RuRvRwR#t Over_isSweepR>RªR­RRtSuccType_TowerSDtPlayerBossReborntAddBossRebornActionCnttDef_BRAct_TowerSweeptPlayerActLogintAddLoginAwardActionCnttDef_LoginAct_TowerSweepR$((RR-R¹RºR»R¼tpassLVR›t floorItemDicttgiveRunePointDicttgiveRuneYsogDictt giveRunePointt giveRuneYsogR¥R¦R3R°tfloorR˜R™RšRœR‚RRžRŸR R„R€R…t jsonItemDicttitemDictt jsonitemListR‡RˆR‰RŠRR†R¯((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pytOnPlayerFBSweepResult1s 
 
   $ $   %  %
- #($R9R%RRRvRRRRRpR
RRIRR RÔR<RÑR’tmathR”RRR RR R(R5RXRGReR‘RHRRÄRá(((s†E:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_TrialTower.pyt<module>sF                                                    
        1    8