hxp
2025-12-10 8fb2ab381f0d78962cfe1069ea37e6980a5f2de2
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
Ëé8ic@síddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZdZdZd„Zd„Zd„Zd„Zd„Zd    „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+d„Z,d „Z-de/d!„Z0id"„Z1d#„Z2dS($iÿÿÿÿNiicCs
|jƒS(N(t    GetValue1(trecData((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecUpdScore&scCs |j|ƒS(N(t    SetValue1(Rtscore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecUpdScore'scCs
|jƒS(N(t    GetValue2(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecAtkType(scCs |j|ƒS(N(t    SetValue2(RtatkType((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecAtkType)scCs
|jƒS(N(t    GetValue3(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecTagPlayerID*scCs |j|ƒS(N(t    SetValue3(Rt tagPlayerID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecTagPlayerID+scCs
|jƒS(N(t    GetValue4(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecIsWin,scCs|j|rdndƒS(Nii(t    SetValue4(RtisWin((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecIsWin-scCs
|jƒS(N(t    GetValue5(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt
GetRecFace.scCs |j|ƒS(N(t    SetValue5(Rtface((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt
SetRecFace/scCs
|jƒS(N(t    GetValue6(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecFacePic0scCs |j|ƒS(N(t    SetValue6(RtfacePic((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecFacePic1scCs
|jƒS(N(t    GetValue7(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GetRecRealmLV2scCs |j|ƒS(N(t    SetValue7(RtrealmLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt SetRecRealmLV3scCs
|jƒS(N(t    GetValue8(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetRecLV4scCs |j|ƒS(N(t    SetValue8(RttagLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytSetRecLV5scCs tƒdS(N(t DoArenaReset(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnWeek8scCstdƒdS(NtDay(t__DoGiveBillboardAward(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnDay<s
cCsGtjdƒit_tdƒtjƒjtj    ƒtjdƒt
S(s Èü¼¾ÖØÖÃ
    s*=============== ÖØÖþº¼¼³¡ ===============tWeeks*==========================================( t    GameWorldtLogt
PyGameDatatg_arenaPlayerMatchDictR,t    DBDataMgrtGetBillboardMgrtRemoveBillboardt ShareDefinet Def_BT_ArenatTrue(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR)@s      
 cCstjd|ƒtjƒ}|jtjƒ}|s9dS|dkr]tjddiƒ}n(|dkrtjddiƒ}ndS|j    ƒg|j
ƒD]}t |ƒ^qœ}|j ƒtjd|ƒ|d}i}|j ƒ|jƒ}}    tjd    ||    fƒxßt|ƒD]Ñ}
|j|
ƒ} | s=qn|
d} | |kr‰|j|ƒd} | t|ƒkr|Pn|| }n| jƒ}|tjkrªqn| |g||<| g}|t|ƒ}tjd
||||ƒqWtjd |ƒdS( Ns=== ¾º¼¼³¡½áËãÅÅÐн±Àø! === %sR+tArenaBillboradAwardiR.is    ½±ÀøÃû´ÎÁбí: %sis6    °ñµ¥Êý¾ÝÊý! billboardCount=%s,billboardMaxCount=%ssArenaBillboardAward%ss    ½±ÀøÍæ¼ÒÃû´ÎÐÅÏ¢: %s(R/R0R3R4t GetBillboardR6R7t IpyGameDataPYtGetFuncEvalCfgt SortDelayDotkeystinttsorttGetCountt GetMaxCounttxrangetAttindextlentGetIDtRealPlayerIDStarttstrt
PlayerMailt SendMailByKey(t    awardTypet billboardMgrt    billBoardtbillboradAwardDicttorderStrt    orderListt
awardOrdertorderPlayerIDDicttbillboardCounttbillboardMaxCountREt billBoardDatatordertnextOrderIndextplayerIDt    paramListt    awardList((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR,RsJ   
%
 
 
       cCs1tj|tjƒsdSt|ƒt|ƒdS(N(t GameFuncCommt GetFuncCanUseR6tGameFuncID_Arenat__loginUpdPlayerScoretSync_ArenaInfo(t    curPlayer((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnLogin†s
 
 
cCsð|jƒ}tjƒ}|jtj|ƒ}|jƒs=dS|j|jƒdƒ}|jƒ}t    j
|ƒs’t    j dt    j |ƒ|ƒdSt |ƒ}|jtjƒ}tj|tj|ƒt    j d||t    j |ƒf|ƒdS(Nis.Íæ¼ÒÉÏÏßÑÝÎ䳡¼Ç¼»ý·Ö·Ç±¾Öܲ»¸üÐÂ! recTime=%ss:Íæ¼ÒÉÏÏ߸üÐÂÑÝÎ䳡»ý·Ö: befScore=%s,updScore=%s,recTime=%s(t GetPlayerIDR3t GetGameRecMgrtGetRecTypeIDMgrR6tDef_GameRecType_ArenaRecordRARDtGetTimeR/tCheckTimeIsSameWeekR0tChangeTimeNumToStrRtNomalDictGetPropertytChConfigtDef_PDict_ArenaScoret PlayerControltNomalDictSetProperty(RaRYtrecMgrtrecIDMgrt finalRecDatatrecTimetupdScoretbefScore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR_s     &cCs'tj|tjƒsdSt|ƒdS(N(R\R]R6R^R`(Ra((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnDayExžs
cCs'tj|tjƒsdSt|ƒdS(N(R\R]R6R^t__DoArenaSeasonReset(Ra((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytOnWeekEx¤s
cCs9tjddƒ}tj|tj|dƒt|ƒdS(NtArenaSetit    ArenaOpen(R;t
GetFuncCfgRmt    GiveMoneyR6tTYPE_Price_ArenaTicketRv(RatstoreMax((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt DoArenaOpenªs
cCsGtjddƒ}tjd|ƒtj|tj|ƒt|ƒdS(NRxis¾º¼¼³¡Èü¼¾ÖØÖã¡initScore=%s(    R;RzR/tDebugLogRmRnRkRlR`(Rat    initScore((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyRv°s
 
cCs)tjddƒ}|tj|ƒ7}|S(NRxi(R;RztPlayerGoldInvesttGetArenaTicketMax(RaR}((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pytGetArenaTicketStoreMax¸scCs/tjƒj|ƒ}|j}t||ƒdS(N(R/tGetPlayerManagertGetPlayerByIndext    IsRefreshtDoArenaMatchRefresh(REt
clientDatattickRat    isRefresh((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt OnArenaMatchÈs     cCst}t|||ƒdS(N(R8R‡(Rat gmMatchIDListRŠ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt GMArenaMatchÎsc3Cs'    |jƒ}|jtjƒ}tjddƒ}t|ƒ}tjd||||f|ƒtjd||f|ƒ|t    j
kr•gt    j
|<nt    j
|}t|ƒ|krÁ|| }n| rût|ƒ|krûtjd|ƒt ||ƒdS|rU| rU| rUtjddƒ\}    }
|     sN|
sNt j ||    |
dƒ rUdSng}g} i} tjddƒ} t j|ƒ}tjƒ}|r¨|d    d    nd    }t|ƒ}tjd
||| |f|ƒ|| }||krEtjdd ƒ}tjd |||f|ƒd    }x`|ddd …D]K}|\}}tjd|||f|ƒ||krzq9ng}x¡t||ƒD]}||\}}|t|ƒdd}||krñtjd|||||f|ƒPn|d}||kr qn|j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,Æ¥Åä»úÆ÷ÈËÕ½Á¦ÏµÊý=%s,»úÆ÷ÈË×ÜÊý=%sis)È«²¿Æ¥Åä»úÆ÷ÈË: %s, reFightPower=%s <= %siÿÿÿÿs:    ´¦ÀíÆ¥Åä»úÆ÷ÈËÕ½Á¦¶Î: fpPerA=%s,fpPerB=%s,loopIndex=%sidsd        ±ÈµÍ°Ù·Ö±È»¹Ð¡µÄÕ½Á¦Ìø³ö£¬½øÈëÏÂÒ»¶ÎÆ¥ÅäÂß¼­: %s,robotID=%s,robotFightPower=%s,fpPer=%s < %ss%        ¸ÃÕ½Á¦·¶Î§¶ÎûÓзûºÏµÄ»úÆ÷ÈË!s1        Æ¥Åä»úÆ÷ÈË: robotID=%s,robotFightPower=%ssB    ¿ÉÆ¥ÅäµÄ»úÆ÷ÈË»¹²»¹»£¬´ÓÊ£ÏÂδ±éÀúµÄ»úÆ÷ÈËÄÚÆ¥Åä: loopIndex=%ssÆ¥ÅäÕæÈË: reFightPower=%s > %sisA    maxOrder=%s,playerOrder=%s,matchPlayerCnt=%s,leastRobotCnt=%ss.    fromLowerCnt=%s,matchPerRank=%s,toOrder=%ssE    ÎÞÕ½¶·»º´æµÄÍæ¼Ò²»Æ¥Åä: tagID=%s,order=%s,fromOrder=%s,toOrder=%ss7    Æ¥ÅäÍæ¼Ò: fromOrder=%s,toOrder=%s,matchOrderList=%ss2    Æ¥Åä°ñµ¥½á¹û: matchIDList=%s,matchOrderList=%ss²»ÄÜÆ¥Åä×Ô¼º!%ssûÓÐÕ½¶·»º´æÄ¿±ê²»Æ¥Åä!%ssÖ¸¶¨Æ¥ÅäID(%s)s     Ö¸¶¨Æ¥Åä½á¹û: matchIDList=%ss    ×îÖÕ»¹Ðè»úÆ÷ÈËÊý=%streverses     ×îÖÕÆ¥Åä½á¹û: matchIDList=%s()RcRjRkRlR;R<RFR/RR1R2t__SyncMatchListRmtPayMoneyRzt GetFightPowertPlayerViewCachetGetRobotFightPowerSortListtrangetfloattappendtrandomtshuffleR@R3R4R:R6R7RAt IndexOfByIDtmaxtremoveRDRGtFindBattleViewCachetNonet
GetGMLevelt DebugAnswertrandintR8(3RaRŠRŒtisSysRYt playerScoretmatchScoreListtneedMatchCountt matchIDListt    costMoneyt
moneyValuetmatchOrderListt viewCacheDicttrobotFPCoefficienttplayerFightPowertrobotFPSortListtrobotFightPowerMaxt robotCntTotalt reFightPowertmatchRobotFPPerListt    loopIndext
fpPerRangetfpPerAtfpPerBt robotFPIDListt
robotIndextrobotFightPowertrobotIDtfpPert randIndexListtmatchIndexListRMRNtmaxOrdert playerOrdert leastRobotCnttmatchPlayerCntt fromLowerCntt matchPerRankttoOrdert_t    fromOrderRQRWtbillDatattagIDt    viewCachet
matchOrdert    gmMatchIDt needRobotCnttdoCnt((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR‡Ôs6      '      
        
 
  '  
         
 
 
!
     cCsKtjƒ}|jtjƒ}g|_xû|D]ó}||krM||}ntj|ƒ}|shq.n|jtjƒ}||_    |r|j
ƒ|_ |j ƒ|_ |jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_n d||_ |jj|ƒq.Wt|jƒ|_tj||ƒdS(Nsp%s(tObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCArenaMatchListt    MatchListR•RŸttagSCArenaMatchInfotPlayerIDt GetPlayerNamet
PlayerNamet
GetRealmLVtRealmLVtGetLVtLVtGetFacetFacet
GetFacePictFacePicR”t
FightPowertGetFightPowerExt FightPowerExt
GetTitleIDtTitleIDR™RFt
MatchCountt NetPackCommont SendFakePack(RaR¨R¬tobjPoolt
clientPacktmatchIDRÊt    matchInfo((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR’”s2             cCsVtjƒjtjƒ}|jtjƒ|_|jtj    ƒ|_
t j ||ƒdS(N( RÏRÐRÑRÒttagSCArenaPlayerInfoRjRkRltScoretDef_PDict_ArenaWinCnttWinCntRçRè(RaRê((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyR`²s
(3R3RJR6R\RmR;RÒRR•RçR1R/RkRÏRštRecAtkType_AtktRecAtkType_DefRRRR
R RRRRRRRR R#R%R(R*R-R)R,RbR_RuRwR~RvRƒR‹RR tFalseR‡R’R`(((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerArena.pyt<module>s`                                                                                               4                                    À