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
&ìöhc@s'ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd d „Zd „Zd„Zddd„Zd„ZdS(iÿÿÿÿNcCs tƒdS(N(t__DoGiveTianziDayAward(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnDay scCs:tj|tjdƒtj|tjdƒt|ƒdS(Ni(t PlayerControltNomalDictSetPropertytChConfigtDef_PDict_TianziTodayHurttDef_PDict_TianziTodayHurtExtSyncTianziInfo(t    curPlayer((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBPlayerOnDay%s
cCst|ƒdS(N(R(R((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBPlayerOnLogin+s
c    Csøg}xRtdƒD]D}tjdtj|ƒ}|rG|j|ƒq|dkrPqqW|sedStjƒjt    j
ƒ}||t |ƒ}|j ƒ}d}xH|j ƒD]:}tjd|ƒ}|sÔq°n|jƒ}|r°Pq°q°W||fS(Ni
tFBLineit    NPCLineup(ii(tranget IpyGameDataPYtGetIpyGameDataNotLogRtDef_FBMapID_Tianzitappendt    DBDataMgrtGetEventTrigMgrtGetValuet ShareDefinet Def_ServerDaytlent    GetLineIDtGetLineupIDListtGetIpyGameDatat    GetBossID(    RtlineListtlineIDtipyDatat    ServerDayt todayIpyDatatbossIDtlineupIDt lineupIpyData((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytGetTianziTodayInfo/s*   cCsIt|ƒ\}}||kr?tjd||||fƒdSt|fS(Ns6·Ç½ñÈÕÌì×Ó¿¼Ñé! mapID=%s,funcLineID=%s != %s,bossID=%s(R$t    GameWorldtDebugLogtTrue(RtmapIDt
funcLineIDttagTypettagIDt    valueListRR!((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightRequestKs
 cCs6|jƒ}tjd|ƒ}|s(iSt|dƒS(NtTianzii(tGetNPCIDRtGetIpyGameDataListt__getBossAttrDict(Rt    turnFighttnpcObjR!t ipyDataList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytGetFBNPCInitAttrUs
 c Cs]|jƒ}tjd|ƒ}|s(tS|jƒ}d}d}d}    xF|D]>}
|
jƒ}|
jƒ} |
}    || 7}||krMPqMqMW|    s™tStd||ƒ} | dkrÓt    j
d||fƒtS|j |    jƒtƒ|j | tƒt    j d||jƒ|jƒ|fƒ|jd|ƒ|ji|d6ƒ|jt|    ƒƒtS(NR.iis:Ìì×Ó¿¼ÑéÈ«²¿ÑªÌõ±»»÷ɱ! totalHPMax=%s,statDefValueTotal=%ss4¸üÐÂNPCѪÌõ: hpNum=%s,hp=%s/%s, statDefValueTotal=%sthpNum(R/RR0R'tGetStatDefValuetNonetGetHPNumtGetMaxHPtmaxR%tLogtSetMaxHPtSetHPR&tGetHPtSetDicttsyncHelptUpdInitBatAttrR1tFalse( RR2tgameObjtkillerR!R4tstatDefValueTotalR6t
totalHPMaxt
ipyDataNowRtmaxHPthp((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnFBNPCKilledBefore]s8     
  )cCsMi|jƒtj6|jƒtj6|jƒtj6}|j|jƒƒ|S(N(    tGetAtkRt
AttrID_AtktGetDeft
AttrID_DefR:t AttrID_MaxHPtupdatetGetOtherAttrDict(RtattrDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyR1ƒs
cCsŠ|s
dSt|ƒ\}}||krItjd||||fƒdS|jdƒ}|jtjƒ}|jƒ}    |jtj    |ƒ}
|jtj
|ƒ} | tj |
} |jtj ƒ} |jtj ƒ}|tj | }tjd||||    || fƒ|    | kr|    } | tj }
| tj } tj|tj    ||
ƒtj|tj
|| ƒtjd| ƒn|    |kr|    }|tj } |tj }tj|tj | ƒtj|tj |ƒtjd|ƒtj|tj|| ƒnt| |ƒ}tj||ƒtj||ddtigdtƒ|jitj|ƒtj6|    d    6|d
6ƒt|||ƒdS( Ns<½áËãʱ·Ç½ñÈÕÌì×Ó¿¼Ñé! mapID=%s,funcLineID=%s != %s,bossID=%sR6s]Ìì×Ó¿¼Ñé½áËã: lineID=%s,bossID=%s,hpNum=%s,totalHurt=%s,todayHurtTotal=%s,historyHurtTotal=%ss¸üÐÂÀúÊ·×î¸ßÉ˺¦: %ss¸üнñÈÕ×î¸ßÉ˺¦: %steventR.t isNotifyAwardt    totalHurtttodayHurtTotal(R$R%tErrLogt GetDictByKeyt getBatFactionRt Def_FactionAt getTotalHurttNomalDictGetPropertytDef_PDict_TianziHisHurttDef_PDict_TianziHisHurtExtDef_PerPointValueRRR&RRtPlayerBillboardtUpdatePlayerBillboardRt Def_BT_Tianzit__getTianziAwardListtFBCommontAddEnterFBCountt ItemControlertGivePlayerItemOrMailRCRQtGetJsonItemListt Over_itemInfoR(RR2R(R)toverMsgRR!R6t
batFactionRVt historyHurtt historyHurtExthistoryHurtTotalt    todayHurtt todayHurtExRWtitemList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnTurnFightOver‹sL            %.icCsKtjd||fƒtjd|ƒ}|s3gSi}d}xÉ|D]Á}|jƒ}|jƒ}||7}||kr~Pn|jƒ}    tj|    ƒ}
|
sFt|
ƒdkr¸qFn|
d} |
d} |j    | dƒ| ||| <tjd|| | |fƒqFWg|j
ƒD]\} } | | g^q} tjd| ƒ| S(Ns(Ìì×Ó¿¼Ñé½áËã½±Àø: hurtValue=%s,bossID=%sR.iiis#ѪÌõ±àºÅ: %s,itemID=%s,itemID=%s,%ss ×îÖÕ½±Àø: %s( R%R&RR0R9R:tGetRandWeightItemListtGetResultByWeightListRtgettitems(RpR!tsweepCntR4t    awardDictRGRR6RItrandWeightItemListt randItemInfotitemIDt    itemCountRr((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRd½s.   
 
 
!+c
Cspt|ƒ\}}|jtjƒ}|jtjƒ}|tj|}    | sU|     rftjdƒdS||    fS(NsÌì×Ó¿¼Ñé½ñÈÕ»¹Ã»ÓÐÉ˺¦ÎÞ·¨É¨µ´!(R$R]RRRR`R%R&(
RR(RRxtdataExt_R!RpRqRW((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnPlayerFBSweepAskØs c Cs·|\}}tjd|||||fƒt|||ƒ}tj||ddtigdtƒd}    itj|ƒtj6dtj    6|d6|d6}
tj
||||    |
ƒt S(NsHÌì×Ó¿¼Ñéɨµ´: mapID=%s,lineID=%s,sweepCnt=%s,todayHurtTotal=%s,bossID=%sRTR.RUiRVRW( R%R&RdRgRhRCReRiRjt Over_isSweept NotifyFBOverR'( RR(RRxR~taskRetR!RWRrtisPasstoverDict((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pytOnPlayerFBSweepResultæs     % cCs²|dkr!t|ƒ\}}ntjƒjtjƒ}||_|jt    j
|ƒ|_ |jt    j |ƒ|_ |jt    jƒ|_|jt    jƒ|_tj||ƒdS(N(R8R$tObjPoolt
GetPoolMgrtacquiretChPyNetSendPackttagSCTianziKYInfotLineIDR]RR^t HistoryHurtR_t HistoryHurtExRt    TodayHurtRt TodayHurtExt NetPackCommont SendFakePack(RRR!t
clientPack((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRõs     cCsÇtjdƒtjƒ}|jtjƒ}|s5dS|jƒtj    ddiƒ}g|j
ƒD]}t |ƒ^qa}|j ƒtjd|ƒ|d}i}|j ƒ|jƒ}}tjd||fƒxÛt|ƒD]Í}    |j|    ƒ}
|
sqán|    d} | |krN|j|ƒd} | t|ƒkrAPn|| }n|
jƒ} | tjkroqán| |g|| <| g}|t|ƒ}tjd| ||ƒqáWtjd|ƒdS(    Ns=== Ìì×Ó¿¼Ñé½áËãÅÅÐн±Àø! ===tTianziBillboradAwardis    ½±ÀøÃû´ÎÁбí: %sis6    °ñµ¥Êý¾ÝÊý! billboardCount=%s,billboardMaxCount=%stTianziBillboardAwards    ½±ÀøÍæ¼ÒÃû´ÎÐÅÏ¢: %s(R%R<RtGetBillboardMgrt GetBillboardRRct SortDelayDoRtGetFuncEvalCfgtkeystinttsorttGetCountt GetMaxCounttxrangetAttindexRtGetIDtRealPlayerIDStarttstrt
PlayerMailt SendMailByKey(t billboardMgrt    billBoardtbillboradAwardDicttorderStrt    orderListt
awardOrdertorderPlayerIDDicttbillboardCounttbillboardMaxCountR¡t billBoardDatatordertnextOrderIndextplayerIDt    paramListt    awardList((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRsB  
%
 
 
       (RReR%RgRRaRŠR‘RRR¥RR‡RR    R
R$R-R5RKR1RsRdR€R†R8RR(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyt<module>s4                                 
        &        2