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
|^ic@s9ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„Zd„Zddd„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.pytGetTianziTodayInfo0s*   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.pytOnTurnFightRequestLs
 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.pytGetFBNPCInitAttrVs
 cCsY|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    jd||jƒ|jƒ|fƒtj||ƒ|jd|ƒ|jt|
ƒƒt S(NR.iis:Ìì×Ó¿¼ÑéÈ«²¿ÑªÌõ±»»÷ɱ! totalHPMax=%s,statDefValueTotal=%ss4¸üÐÂNPCѪÌõ: hpNum=%s,hp=%s/%s, statDefValueTotal=%sthpNum(R/RR0R'tGetStatDefValuetNonetGetHPNumtGetMaxHPtmaxR%tLogtSetMaxHPtFalsetSetHPR&tGetHPt    TurnSkilltSync_HPRefreshtSetDicttUpdInitBatAttrR1(RR2tgameObjtkillertuseSkillR!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 ItemControlertGivePlayerItemOrMailR>RStGetJsonItemListt Over_itemInfoR(RR2R(R)toverMsgRR!R6t
batFactionRXt historyHurtt historyHurtExthistoryHurtTotalt    todayHurtt todayHurtExRYtitemList((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(RrR!tsweepCntR4t    awardDictRIRR6RKtrandWeightItemListt randItemInfotitemIDt    itemCountRt((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyRf¿s.   
 
 
!+c
Cspt|ƒ\}}|jtjƒ}|jtjƒ}|tj|}    | sU|     rftjdƒdS||    fS(NsÌì×Ó¿¼Ñé½ñÈÕ»¹Ã»ÓÐÉ˺¦ÎÞ·¨É¨µ´!(R$R_RRRRbR%R&(
RR(RRztdataExt_R!RrRsRY((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=%sRVR.RWiRXRY( R%R&RfRiRjR>RgRkRlt Over_isSweept NotifyFBOverR'( RR(RRzR€taskRetR!RYRttisPasstoverDict((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 HistoryHurtRat 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 GetBillboardRRet 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  
%
 
 
       (RRgR%RiRRcRŒR“RRR§RRAR‰RR    R
R$R-R5R8RMR1RuRfR‚RˆRR(((sD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Tianzi.pyt<module>s6                                  
    '        2