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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
É*¤hc@sîddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZdZdZdZedƒ\ZZZZZZ dfd„ƒYZ!dfd„ƒYZ"d    fd
„ƒYZ#d fd „ƒYZ$d „Z%dfd„ƒYZ&d„Z'd„Z(d„Z)d„Z*d„Z+dd„Z,d„Z-d„Z.d„Z/e0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d „Z7d!„Z8d"„Z9d#„Z:d$„Z;dd%„Z<de0d&„Z=d'„Z>ej?e@d(„ZAd)„ZBd*„ZCe@e@d+„ZDd,„ZEd-„ZFd.„ZGd/„ZHd0„ZIdS(1iÿÿÿÿNi'i
it    BatLineupcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs^||_||_||_d|_d|_d|_i|_i|_i|_t    |_
dS(Ni( t    turnFighttfactiontnumtownerIDt    shapeTypet
fightPowert posObjIDDicttlingshouObjIDDicttbeautyObjIDDicttActionNumStartt    actionNum(tselfRRR((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt__init__@s                                        cCs
|jjS(N(RtplayerID(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt getPlayerIDMscCs|j S(N(R(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytisEmptyOscCso|jƒ|jddƒ|_|jddƒ|_|jddƒ|_t||j|j||jƒƒdS(NtPlayerIDit    ShapeTypet
FightPower(    t clearLineuptgetRRRtSummonLineupObjsRRR(R t
lineupInfo((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt    setLineupQs 
"cCs©tjƒ}x$|jjƒD]}|j|ƒqWx$|jjƒD]}|j|ƒqCWx$|jjƒD]}|j|ƒqjWi|_i|_i|_d|_dS(Ni(t    BattleObjt GetBatObjMgrRtvaluest    delBatObjRR    R(R t    batObjMgrtobjID((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR[s                 (t__name__t
__module__R RRRR(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR=s
                 
t
BatFactioncBs&eZd„Zdd„Zd„ZRS(cCs||_||_i|_dS(N(RRt
lineupDict(R RR((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR ms            icCsNd}||jkr%|j|}n%t|j||jƒ}||j|<|S(N(tNoneR"RRR(R Rtlineup((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt getBatlineupss  cCs(x!|jjƒD]}|jƒqWdS(N(R"RR(R R$((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt clearLineups}s(RR R R%R&(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR!js    
t    TurnFightcBsÂeZdZddded„Zeid„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z e j d
„Zd „Zd „Zd „Zd„Zd„Zid„Zd„Zd„ZRS(sÙij³¡»ØºÏÕ½¶·£¬Ö§³Ö¶àV¶à£¬ËùÓÐÕ½¶·Í¨Óã¬Ö÷Ïß¡¢ÅÀËþ¡¢PVPµÈ
    ¿ÉÄÜΪϵͳºǫ́·¢ÆðµÄ£¬Ôò¹¥»÷·½¡¢·ÀÊØ·½ÕóÈÝÒÔÍæ¼ÒËù±£´æµÄÕóÈݾµÏñ½øÐÐÕ½¶·
    Èç¹ûÍæ¼Ò·¢ÆðµÄ£¬Ôò¹¥»÷·½Îª·¢Æð·½Íæ¼Ò£¬Ä¿±êΪ·ÀÊØ·½£¬Ö§³Ö¶àV¶à£¬Èç×é¶ÓPK
    ¶àV¶àµÄÇé¿öÒ²ÊÇij¸ö¶ÓÔ±¸÷×Ô·¢ÆðÕ½¶·£¬Ö»ÊÇÓõ½¶ÓÓѵľµÏñÕóÈÝÒ»ÆðÕ½¶·£¬¶ÓÓÑÎÞ¸ÐÖª
    
    ¶àV¶à¿ÉʹÓÃÁ½ÖÖģʽ£º
    1. ¶à¸öÕóÈÝÒ»Æð³ö³¡£¬ÔÚÒ»³¡Õ½¶·ÖÐÍê³É
    2. ÒÔµ¥ÕóÈÝ·½Ê½ÂÖÁ÷³ö³¡Õ½¶·£¬¸Ã·½Ê½Í¬Ñù¿ÉÒÔʹÓ÷½Ê½1µÄÂß¼­ÊµÏÖ£¬¹ÌÓÅÏÈʹÓ÷½Ê½1Õ½¶·Âß¼­£¬·½±ãÀ©Õ¹
    icCsâtjƒ|_||_|r3tjƒj|ƒnd|_||_||_    d|_
d|_ d|_ t |_d|_d|_d|_d|_||_i|_i|_g|_d|_d|_d|_d|_dS(Niÿÿÿÿiiit(t    GameWorldtGetGUIDtguidRtGetPlayerManagertFindPlayerByIDR#t    curPlayertmapIDt
funcLineIDtstatetturnNumtturnMaxtFalset
enterLogict    turnStarttturnEndt
winFactiont    batBuffert isNeedReporttmsgDictt factionDicttactionSortListt actionIndexttimelinet    startTimetcostTime(R R/R0RR:((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR Žs,    $                                                                        cCs>||_||_||_||_i|_|j|ƒdS(N(R/R0R3R:R;t    resetTurn(R R/R0R3R:R;((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytsetTurn¨s                     cCsbd|_t|_d|_d|_d|_d|_|jj|ƒt    j    ƒ|_
d|_ dS(NiiR(( R2R4R5R6R7R8R9R;tupdatettimeR@RA(R R;((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRB²s                            cCsb|j|ƒ}|jƒxB|jƒD]4\}}|s>q&n|j|ƒ}|j|ƒq&WdS(N(t getBatFactionR&titemsR%R(R RR"t
batFactionRRt    batLineup((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytsetFactionLineup¿s
c
Csg}x‰|jjƒD]x}|j}xf|jjƒD]U\}}|jrPdnd}|j}|d| }|j|||||gƒq5WqW|jdt    ƒd|_
g|_ x3|D]+\}    }    }    }}|j j||gƒq»Wt j d|ƒt j d|j ƒdS(Niii
treverses+ÕóÈÝÕ½Á¦ÅÅÐò[isPlayer, fp, sortV, f, n]: %ssÕóÈÝÐж¯Ë³Ðò[f, n]: %s(R<RRR"RGRRtappendtsorttTrueR>R=R)tDebugLog(
R tsortListRHRRRItisPlayerRt    sortValuet_((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytsortActionQueueËs         $        cCs|jS(N(R?(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt getTimelineàscCs3|td|_tjd|jƒt|ƒdS(sj»ØºÏÕ½¶·µÄʱ¼äÖá½Úµã £¬¼´µÚ¼¸»ØºÏ¿ªÊ¼£¬Ã¿¸ö»ØºÏÖ§³Ö9999¸öÐж¯½Úµã
        @param turnNum: µÚx»ØºÏ
        isʱ¼ä½Úµã¸üÐÂ: %sN(t TimelineSetR?R)ROtOnTimelineChange(R R2((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt setTimelineás
cCs1|jd7_tjd|jƒt|ƒdS(Nisʱ¼ä½Úµã¸üÐÂ: %s(R?R)RORW(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt addTimelineés
cCsEd}||jkr%|j|}nt||ƒ}||j|<|S(N(R#R<R!(R RRH((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRFðs  c    Cs|jr|jStjƒ}xî|jjƒD]Ý\}}t}xŠ|jjƒD]y}|s^Pnxf|jjƒD]U\}}|dkrŒqnn|j    |ƒ}|s§qnn|j
ƒdkrnt }PqnqnWqNW|r,|t j krét jnt j|_t|jƒ|jSq,WdS(Ni(R8RRR<RGRNR"RRt    getBatObjtGetHPR4tChConfigt Def_FactionBt Def_FactionAtDoTurnFightOverR+(    R RRRHt    allKilledRItposNumRtbatObj((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytcheckOverByKilledús,       $  cCs>|jtƒx!|jjƒD]}|jƒqWd|_dS(Niÿÿÿÿ(t    syncStatetFightState_OverR<RR&R1(R RH((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt    exitFights
     cCs$t|_|jdƒ|jƒdS(Ni(tFightState_StartR1RXtsyncInit(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt
startFight!s     
cCs |jdkS(Niÿÿÿÿ(R1(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt    isInFight(scCs©tj|jdtƒ}|jddƒ}tjƒ}|j|_|j    |_
|j |_ ||_ t|j ƒ|_g|_tjƒ}xù|jjƒD]è}|j|ƒ}tjƒ}||_g|_x|jjƒD]}|j|ƒ}tjƒ}    ||    _|j|    _|j|    _ g|    _!x|j"j#ƒD]þ\}
} |j$| ƒ} | s_q8ntj%ƒ} | j&ƒ| _'| j(ƒ| _)| j*ƒ| _+| j,ƒ| _-| j.ƒt/j0| _1| j.ƒt/j0| _2| j3ƒt/j0| _4| j3ƒt/j0| _5| j6ƒ| _7|
| _8| j9ƒ| _:|    j!j;| ƒq8Wt|    j!ƒ|    _<|jj;|    ƒqÝWt|jƒ|_=|jj;|ƒqšWt|jƒ|_>|j?|ƒdS(Nt ensure_asciis R((@tjsontdumpsR;R4treplacetChPyNetSendPackttagSCTurnFightInitR/tMapIDR0t
FuncLineIDR3tTurnMaxtMsgtlentLent FactionListRRR<tkeysRFttagSCTurnFightFactiontFactiont
LineupListR"R%ttagSCTurnFightLineuptNumRtOwnerIDRRtObjListRRGRZttagSCTurnFightObjtGetIDtObjIDtGetNPCIDtNPCIDt    GetHeroIDtHeroIDt    GetSkinIDtSkinIDR[R\tDef_PerPointValuetHPtHPExtGetMaxHPtMaxHPtMaxHPExtGetLVtLVtPosNumtGetXPtAngreXPRLtObjCntt    LineupCntt
FactionCntt
addBatPack(R tmsgt
clientPackRRRHt    tfFactionRRIttfLineupRaRRbttfObj((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRh*s\                                       cCsŸ||_tj|dtƒ}|jddƒ}tjƒ}|jƒ|j|_    |j
|_ ||_ |j |_||_t|jƒ|_|j|ƒdS(NRks R((R1RlRmR4RnRottagMCTurnFightStatetClearR/RqR0RrtStateR2tTurnNumRtRuRvR—(R R1R;R˜R™((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRd\s     
            cCs9tjƒ}|jƒ||_||_|j|ƒdS(N(RottagMCTurnFightObjActionRžR R‚R—(R R2RR™((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt syncObjActionks  
         cCs»t|dƒr.d|jj|jjf}nd|j|jf}tjd||j|jfƒ|jr…|j|j    ƒ7_n|j
r¤t j |j
|ƒnt jƒj|ƒdS(NtHeads%02x%02xs(»ØºÏÕ½¶·¹ý³Ì·â°ü: %s, isNeedReport=%s,%s(thasattrR£tCmdtSubCmdR)ROR:R+R9t    GetBufferR.t NetPackCommont SendFakePacktObjPoolt
GetPoolMgrtrelease(R R™theadStr((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR—ss         (RR t__doc__R4R RCRBRJRTRURXRYR\R^RFRcRfRiRjRhRdR¢R—(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR'ƒs$    
                          
                    2     t TurnFightMgrcBs2eZd„Zddd„Zd„Zd„ZRS(cCs i|_dS(N(t turnFightDict(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR ‡s    icCs)t|||tƒ}||j|j<|S(N(R'R4R°R+(R R/R0Rttf((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt addTurnFight‹scCs:|j|ƒ}|sdS|jƒ|jj|dƒdS(N(t getTurnFightRfR°tpopR#(R R+R((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt delTurnFights 
cCs;d}||jkr%|j|}ntr7tƒ}n|S(N(R#R°R4R'(R R+R±((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR³˜s  (RR R R²RµR³(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR¯„s        cCs1d}tjrtj}ntƒ}|t_|S(N(R#t
PyGameDatatg_turnFightMgrR¯(ttfMgr((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytGetTurnFightMgr s              t    MainFightcBseZd„Zd„ZRS(cCss||_d|_d|_d|_d|_d|_d|_t|_g|_    t
ƒj t j d|ƒ|_dS(Niii(Rt    chapterIDtlevelNumtwaveMaxtwavetteamNumtteamMaxR4tnextTeamtwaveLineupListR¹R²R\tDef_FBMapID_MainR(R R((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR ¬s                                    cCs|jjtjkS(N(RR/R\tDef_FBMapID_MainBoss(R ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt isLevelBoss¹s(RR R RÅ(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRº©s     cCstjƒj|ƒ}|jS(N(t PlayerOnlinet GetOnlineMgrtGetOnlinePlayert    mainFight(R.tolPlayer((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytGetMainFightMgr½scCs«tj|ƒ\}}}tj|ƒ\}}}||kr§tjd|ƒr§tjd||ƒr§tj|||dƒ}tjd||||f|jƒƒq§ndS(Nt MainChaptert    MainLevelis•µ±Ç°Ö÷Ï߹ؿ¨Õ½ÚÓë¹ý¹ØÕ½ڲ»Ò»ÖÂʱ£¬ÇÒ¹ý¹Ø½ø¶ÈÕ½ÚÒѾ­´æÔÚ£¬Ç¿ÖÆÐÞÕýµ±Ç°Ë¢¹Ö½ø¶ÈΪ¹ý¹ØÕ½ڽø¶È! passChapterID-LV=%s-%s,nowChapterID=%s,fixNowValue=%s(    t PlayerControltGetMainLevelPassInfotGetMainLevelNowInfot IpyGameDataPYtGetIpyGameDataNotLogtSetMainLevelNowInfoR)tLogt GetPlayerID(R.R»R¼RSt nowChapterIDt fixNowValue((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt OnPlayerLoginÂs '    #cCs
i}|S(N((RtlineupIDR((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytGetPlayerLineupInfoByCacheÌscCs“|jƒ}tj|ƒj|ƒ}i|d6|jd6|jd6}i}|jƒjtj    ƒ}x|j
j ƒD]}|j |ƒ}|j }    |j}
d} d} |
dkr
|
|jƒkr
|j|
ƒ} | r
| jƒ r
| jƒ} | jtjƒ} q
ng}||j7}i|    d6|jd6| d    6| d
6|jd6d „|jjƒDƒd 6|d 6|t|ƒ<qsW|ji|d6ƒ|S(NRRRR(iiR†RˆRtDatacSs1i|]'\}}|dkr|t|ƒ“qS(i(tstr(t.0tktv((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pys
<dictcomp>ðs    tAttrDictt SkillIDListtHero(RÕRÆRÈt    GetLineupRRtGetItemManagertGetPackt ShareDefinetrptHerotlineupHeroDictRxt GetLineupHerotheroIDt    itemIndextGetCounttGetAttIsEmptyt GetUserDatat GetUserAttrtDef_IudetHeroLVtheroSkillIDListtskinIDtheroBatAttrDictRGRÜRD(R.RÙRR$RtheroDicttcurPackRatheroRêRëtuserDatatheroLVtheroItemt skillIDlist((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytGetPlayerLineupInfoÑs8 !          
 
c    Cstjd|ƒ}|siSi}xÙtdd ƒD]È}t|d|ƒsOPnt|d|ƒƒ}|sqq2ntj|ƒ}|sŒq2ni|jƒtj    6|j
ƒtj 6|j ƒtj 6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|jƒtj6|j ƒtj!6|j"ƒtj#6|j$ƒtj%6|j&ƒtj'6|j(ƒtj)6}|j*|j+ƒƒg|j,ƒ}i|d6d„|j-ƒDƒd6|d6|t.|ƒ<q2Wi|d    6|d
6}|S( Nt    NPCLineupii
s GetPosNPCID%sR„cSs1i|]'\}}|dkr|t|ƒ“qS(i(RÜ(RÝRÞRß((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pys
<dictcomp>s    RàRát NPCLineupIDRâi (/RÑtGetIpyGameDatatrangeR¤tgetattrt    NPCCommont GetNPCDataPytGetAtkR\t
AttrID_AtktGetDeft
AttrID_DefRŒt AttrID_MaxHPtGetFinalDamPertAttrID_FinalDamPertGetFinalDamPerDeftAttrID_FinalDamPerDeft GetMissRatetAttrID_MissRatetGetMissRateDeftAttrID_MissRateDeftGetSuperHitRatetAttrID_SuperHitRatetGetSuperHitRateDeftAttrID_SuperHitRateDeft GetStunRatetAttrID_StunRatetGetStunRateDeftAttrID_StunRateDeft GetComboRatetAttrID_ComboRatetGetComboRateDeftAttrID_ComboRateDeft GetParryRatetAttrID_ParryRatetGetParryRateDeftAttrID_ParryRateDeft GetSuckHPPertAttrID_SuckHPPertGetSuckHPPerDeftAttrID_SuckHPPerDefRDtGetSpecAttrInfotGetSkillIDListRGRÜ(    RÙtipyDataRõRatnpcIDtnpcDatat batAttrDictt skillIDListR((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytGetNPCLineupInfo÷s83      #
icCsªtjd|||f|ƒ|rEtjƒj|ƒ}|sEdSn|jj}|jddƒ}|jdiƒ}tjƒ}    t    j
ddƒ}
t    j dd    ƒ} xþ|j ƒD]ð\} } t | ƒ}d\}}}d}d}g}i}|| jd
gƒ7}|j| jd iƒƒd }|r­| jd dƒ}| jddƒ}| jddƒ}| jddƒ}t    jd|ƒ}|s’q²n|jƒ}|jƒ}nQ| jddƒ}tj|ƒ}|sÚq²n|jƒ}|jƒ}|jƒ}|    jƒ}|sPn|jƒ}|j|ƒ|j|ƒ|j|ƒ|j||ƒ|j|ƒ|j|ƒ|r‡|j|ƒn|r£|j|||ƒn|t j!kr×t"| ƒdkrÎ| dnd}n4|t j#kr t"| ƒdkr| dnd}n|r!|j$|ƒn|j%ƒ}|j&ƒx|D]}|j'|ƒq>W||j(|<tjd|t)|ƒ|fƒ|j*d„|j ƒDƒ|
ƒq²WdS(sÛÕÙ»½ÕóÈÝÕ½¶·ÊµÀý
    @param faction: ËùÊôÕóÓª£¬Ä¿Ç°Ö§³ÖÁ½¸öÕóÓª£¬1»ò2
    @param num: Õ½¶·ÕóÈÝÔÚ¸ÃÕóÓªÉϵıàºÅ£¬1V1ʱĬÈÏ1£¬¶à¶Ô¶àʱ1~n
    @param lineupInfo: ÕóÈÝÐÅÏ¢
    @param playerID: ·¢ÆðµÄÍæ¼ÒID£¬ÏµÍ³³¡´ÎΪ0
    s0SummonLineupObjs faction:%s,num:%s,lineupInfo=%sNRiRâtAngerXPitParryCfgiRáRàR(R†RˆRRR„sAddBatObj ID:%s,%s,skill=%scSs%i|]\}}|t|ƒ“qS((tint(RÝRÞRß((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pys
<dictcomp>js    (iii(+R)ROR,R-RR+RRRRÑt
GetFuncCfgtGetFuncEvalCfgRGR/RDRÿtGetAtkDistTypetGetNameRRt
GetNPCNameRt    addBatObjRt    SetTFGUIDtSetNamet
SetFactiont SetLineupPost SetFightPowertSetLVtSetNPCIDt SetOwnerHeroR\tAtkDistType_ShortRutAtkDistType_LongRLtGetSkillManagert
SkillResettLearnSkillByIDRt
GetObjNamet InitBatAttr(RIRRRRR.ttfGUIDtlineupPlayerIDRõRtinitXPtatkBackSkillIDListt    posNumKeytheroInfoRaR(RêRótatkBackSkillIDRR+tattrDicttobjNametlvt heroIpyDatat atkDistTypet    npcDataExRbRt skillManagertskillID((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRs„              %% 
   $cCsñtjƒj|ƒ}|j}|j}|dkrAt|ƒdS|dkr^t||ƒdStjƒ}d|_    t
j ||ƒ|dkrŸt |t ƒn5|dkr¸t|ƒn|dkrÔt||ƒnd|_    t
j ||ƒdS(Niiiii(R)R,tGetPlayerByIndextReqTypetReqValuet__doExitMainFightt__doSetFightPointRottagSCTurnFightReportSigntSignR¨R©t__doMainLevelWaveRNt__doMainBossStartt __doMainFight(tindext
clientDatattickR.treqTypetreqValueR™((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytOnMainFightReqvs*         
               cCs,t|ƒ}|j}|r(|jƒndS(N(RËRRf(R.t mainFightMgrR((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRW”s
      cCsStjd|ƒ|dkr n"|dkr/n|dkr>ndS|j|ƒdS(NsÉèÖÃÕ½´¸ÏûºÄ±¶Öµ: %siii(R)ROt SetFightPoint(R.t
fightPoint((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRXœs    c CsS|jƒ}tj|ƒ\}}}| rc| rctj|dddƒtj|ƒ\}}}ntjd||||f|ƒt|jƒdƒ}tj|t    j
|ƒsÁtjdƒdSt j d|ƒ}|sÝdSt j d||ƒ}|s7x<|dkr3|d8}t j d||ƒ}|rûPqûqûWn|sAdSd}    xE|    dkrŽt|d|    ƒ st|d|    ƒƒ rŽ|    d8}    qJW|    dkrŸdS||    kr´|    }nt|d|ƒƒ}
|
sÔdSt|
ƒ} d} |
| d} t|t    jƒ}|s tjd|ƒdSt|ƒ}t|_||_||_|    |_||_|
|_| |_| |_t jd    d
ƒ}tjtj |||ƒ}}tjd ||||    | ||| f|ƒ|j!}|j"|||ti| d 6| d 6ƒ|j#tj$i|d6ƒ|j#tj%it&| ƒd6ƒ|j'ƒ|j(ƒdS(Nis?ÇëÇó¹Ø¿¨²¨Õ½¶·: chapterID=%s,levelNum=%s,wave=%s,isRestStart=%ssÕ½´¸²»×㣬ÎÞ·¨¿ªÊ¼!RÌRÍisGetWaveLineupIDList%ssûÓÐÉèÖÃÖ÷ÕóÈÝ!tMainlineisPÉèÖÃÆðʼ¹Ø¿¨²¨: ¹Ø¿¨%s-%s,²¨=%s/%s,teamMax=%s,mapID=%s,funcLineID=%s,lineupID=%sR¿RÀ()RÕRÎRÐRÓR)ROtmaxt GetFightPointt    HaveMoneyRætTYPE_Price_XiantaoRÑRÿRÒR¤RRuRüt Lineup_MainRËR4RÁR»R¼R½R¾RÂR¿RÀR0R\RÃtComMainLevelValueRRCRJR^R]R,RTRi(R.t isRestStartRR»R¼R¾RftchapterIpyDatat levelIpyDataR½RÂRÀR¿RÙtlineupMainInfoRdR3R/R0R((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR[¬sv   
 :                                            #    ' 
 
c Cs|jƒ}tj|ƒ\}}}|s3d}n|sBd}ntjd|||f|ƒtjd|ƒ}|s{dStjd||ƒ}|sšdStj|ƒ\}}}    ||ksÊ||krîtjd||||f|ƒdSd}
xE|
dkr;t    |d|
ƒ s.t
|d|
ƒƒ r;|
d8}
q÷W||
krctjd||
fƒdS|j ƒ} | sydSt | ƒ} d} | | d}d}}
t |tjƒ}|sÏtjd    |ƒdSt|ƒ}t|_||_||_|
|_||_| |_| |_| |_tjd
d ƒ}tjtj|||ƒ}}tjd ||||
| |||f|ƒ|j}|j|||ti| d 6| d6ƒ|j tj!i|d6ƒ|j tj"it#|ƒd6ƒ|j$ƒ|j%ƒt&|j'ƒdS(Nis<ÇëÇóÌôÕ½¹Ø¿¨Boss! passInfo: chapterID=%s,levelNum=%s,wave=%sRÌRÍsmµ±Ç°Ë¢¹ÖÕ½ڹؿ¨ÓëÌôÕ½µÄbossÕ½ڹؿ¨²»Ò»Ö£¬ÎÞ·¨ÌôÕ½! chapterID=%s,levelNum=%s,nowChapterID=%s,nowLevelNum=%sisGetWaveLineupIDList%ss2×îºóÒ»²¨Î´Í¨¹ý£¬ÎÞ·¨ÌôÕ½±¾¹Øboss! passWave=%s < %ssûÓÐÉèÖÃÖ÷ÕóÈÝ!RgisNÉèÖùؿ¨boss: ¹Ø¿¨%s-%s,²¨=%s/%s,teamMax=%s,mapID=%s,funcLineID=%s,lineupID=%sR¿RÀ((RÕRÎRÏR)RORÑRÿRÐtErrLogR¤RtGetBossLineupIDListRuRüRæRlRËR4RÁR»R¼R½R¾RÂR¿RÀR0R\RÄRmRRCRJR^R]R,RTRit__processTurnFightR+(R.RR»R¼R¾RoRpRÖt nowLevelNumRSR½RÂRÀR¿RÙRqRdR3R/R0R((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR\òsp             :   
                                     #    ' 
 
 c    CsËd}|j|ƒ}|r<||dkr<tjdƒdS|j||ƒt|ƒ}|j}|jƒ}|j}|ry|jrh|j    d}|_    tjd|ƒ|dksË|t
|j ƒkrÏdS|j |d}    tjd||    fƒt |_|j i|d6ƒ|jtjit|    ƒd6ƒ|jƒ|jƒ|jƒrut|jƒdSn t|t ƒdS|rƒdSt|jƒdƒ}
tj|tj|
ƒsÁtjdƒdSt|ƒd    } td
t
|jƒ} g} t j!ƒ}|j"}tjd || |j#|jfƒxa| | kr‰t
| ƒt
|jƒkr‰| d7} |j"}|j$|kr,tjd |j"ƒ|j%t&ƒ||_$d    |_#|j'ƒxz|jD]l\}}|j(|ƒ}|j)|ƒ}t*|_+x6|j,j-ƒD]%}|j.|ƒ}t/|||ƒqüWq¹Wn|j#t
|jƒkrPd    |_#nt }|j|j#\}}|j(|ƒ}|j)|ƒ}|j+t|j,ƒkrß||f| krÊ| j0||fƒn|j#d7_#q)ntjd |j"|||j+fƒ|j+dkrnÇ|j+d    kr&nµ|j+d    krÛx£t1|j+tdƒD]ˆ}|j'ƒ||_+||j,krzqLn|j,|}|j.|ƒ}t2|||ƒt3||ƒs»qLn|tj4krÓt5}nPqLWn|j#d7_#|j+d7_+|j+t|j,ƒkr_tjd|j"|||j+fƒ||f| kr_| j0||fƒq_n|j6ƒroPn|r)tjdƒPq)q)W|jr—dStjd|| | fƒt
| ƒt
|jƒkrÇtjd|j"ƒ|j7|kr†||_7|j'ƒxn|jD]c\}}|j(|ƒ}|j)|ƒ}x6|j,j-ƒD]%}|j.|ƒ}t8|||ƒqFWq W|j6ƒr†dSn||j9kr·|j"d7_"|j:|j"ƒqÇt;|jƒndS(NtMainFightReqTickièsÖ÷ÏßÕ½¶·ÇëÇóCDÖÐis¿ªÊ¼½øÈëÏÂһС¶Ó: teamNum=%ssteamNum=%s,lineupID=%sR¿s»ØºÏ¿ªÊ¼Ê±Õ½´¸²»×ã!iis%turnNum=%s,doMax=%s,actionIndex=%s,%ssÖ´ÐÐÐж¯: turnNum=%s, »ØºÏ¿ªÊ¼s3Ö´ÐÐÐж¯: turnNum=%s,faction=%s,num=%s,actionNum=%siÿÿÿÿsG¸ÃÕóÈݱ¾»ØºÏÒѾ­È«²¿Ðж¯ÍêÁË: turnNum=%s,faction=%s,num=%s,actionNum=%ssÍæ¼ÒÎ佫ÓÐÐж¯ÔòÍ£Ö¹£¡s%turnNum=%s,doCnt=%s,overLineupList=%ssÖ´ÐÐÐж¯: turnNum=%s, »ØºÏ½áÊø(<t GetDictByKeyR)ROtSetDictRËRRÅR8RÁR¿RuRÂR4RBRJR\R]R,RTRiRtR+R[RhRiRÎRjRæRkt
EntryLogict    PosNumMaxR=RRR2R>R6RdtFightState_FightingRYRFR%R
R RRRZtTurnFightPerTurnBigStartRLRtTurnFightHeroTurnStartt OnObjActionR^RNRcR7tTurnFightPerTurnBigEndR3RXt OnTurnAllOver(R.R`tkeytlastTickRdRRÅR8R¿RÙRftdoCnttdoMaxtoverLineupListRR2RRRHRIRRbt playerHeroAtkRa((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR]?sî               !     
 
 
     #*
             
     #
         #          
 cCsMtƒj|ƒ}|j}|j}t|ƒtjƒ}xótd|dƒD]Þ}||_t    j
d|ƒ|j |ƒ|r‘|j t ƒn|jƒx‘|jD]†\}}t    j
d|||fƒ|j|ƒ}|j|ƒ}    d|    _x6|    jjƒD]%}
|j|
ƒ} t|| |ƒqWq¥W|jƒr?Pntt|jƒ} d} x,| | kr†|jt|jƒkr†| d7} |j|j\}}|j|ƒ}|j|ƒ}    xŒt|    jtdƒD]t}|jƒ|d|    _||    jkrqÔn|    j|}
|j|
ƒ} t|| |ƒt|| ƒsGqÔnPqÔW|jt|jƒdkrtd|_q[|jd7_q[W|jƒxˆ|jD]}\}}t    j
d|||fƒ|j|ƒ}|j|ƒ}    x6|    jjƒD]%}
|j|
ƒ} t|| |ƒqïWq›W|jƒrNPqNqNW|jsIt|j ƒndS(Nis"¡¾----- »ØºÏÖÆÕ½¶·ÂÖ´Î: %s -----¡¿s+»ØºÏ¿ªÊ¼Âß¼­: turnNum=%s,faction=%s, num=%sis+»ØºÏ½áÊøÂß¼­: turnNum=%s,faction=%s, num=%s(!R¹R³R.R3RyRRRR2R)RORXRdR{RYR=RFR%R RRRZR|RcRzRuR>R}R~RR8R€R+(R+RR.R3RR2RRRHRIRRbR„RƒRa((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRtësp        
      
     '
 
 
     cCs€|j}|j}|j}|j}|s6|j}ntj|jƒƒ}d|tj    krcdnd|||j
ƒ||fS(Ns%s%s-%s [%s-%s] %stAtB( Rt    lineupNumRaRêR(R)t    CodeToGbkR3R\R^R(RbRRRaRêRM((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRC>s                 cCs³|jr dStjdƒtjƒ}x}|jD]r\}}|j|ƒ}|j|ƒ}t|_    x<|j
j ƒD]+}|j |ƒ}t j||tjƒqsWq0Wt|_dS(NsÖ´Ðнø³¡Âß¼­...(R5R)RORRR=RFR%R
R RRRZt TurnPassivetOnTriggerPassiveEffectR\tTriggerWay_FightStartRN(RRRRRHRIRRb((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRyHs              c Cs¶|jƒ}tjƒ}x—|jjƒD]†}x}|jjƒD]l}xc|jjƒD]R}|j|ƒ}| sT|jƒdkrˆqTn|j    ƒ}|j
ƒ}xÙt d|j ƒƒD]Â}    |j |    ƒ}
|
s×q¶n|
jƒ} | sïq¶n|
jƒ} t| |tƒ} | dkrq¶n|
jƒ}td| | ƒ}|
j|ƒ|
j|ƒtjd|||| | fƒq¶W|jƒ}xt |jƒƒddd…D]ú}    |j|    ƒ}|jƒ} | sÕq¨n|jƒ} t| |tƒ} | dkrq¨ntd| | ƒ}|jƒ}|jƒ}tjd||||| | fƒ|dkr|j|ƒ|j|ƒtj|||ƒq¨tj|||ƒq¨WqTWq>Wq(WdS(NisT¸üм¼ÄÜÊ£Óà»ØºÏÊý: curID=%s,skillID=%s,updRemainTime=%s,calcTimeline=%s,passTurn=%siÿÿÿÿs^¸üÐÂbuffÊ£Óà»ØºÏÊý: curID=%s,buffID=%s,skillID=%s,updRemainTime=%s,calcTimeline=%s,passTurn=%s( RURRR<RR"RRZR[RR@Rt GetSkillCounttGetSkillByIndext GetRemainTimet GetCalcTimet__calcPassturnRNt
GetSkillIDRht SetRemainTimet SetCalcTimeR)ROtGetBuffManagert GetBuffCounttGetBuffByIndexR4t    GetBuffIDtTurnBufftSyncBuffRefresht    DoBuffDel(Rt nowTimelineRRHRIRRbtcurIDRRR^tcurSkillt
remainTimet calcTimelinetpassTurnRSt updRemainTimetbuffMgrtbufftbuffID((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRWZs`               &            #cCs–|t}|t}|t}|t}|r`||krKtd||ƒStd||dƒS||kr}td||ƒStd||dƒSdS(Nii(RVRh(R¡RtequalOKt calcTurnNumt calcTimeNodet
nowTurnNumt nowTimeNode((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR’“s
 
 
 
  cCs:|s
dS|jƒdkr dStj||tjƒdS(Ni(R[R‹RŒR\tTriggerWay_BigTurnStart(RRbR2((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR|¤s #cCs:|s
dS|jƒdkr dStj||tjƒdS(Ni(R[R‹RŒR\tTriggerWay_BigTurnEnd(RRbR2((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRÑs cCs:|s
dS|jƒdkr dStj||tjƒdS(Ni(R[R‹RŒR\tTriggerWay_HeroTurnStart(RRbR2((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR}Üs cCsX|s
dS|jƒ}|jƒ}|j|ƒ}tjd||||||fƒdS(NsT        Í³¼ÆÖÎÁÆ: curID=%s,srcID=%s,skillID=%s,addValue=%s,cureHP=%s,updStatValue=%s(Rt StatCureValueR)RO(tcurObjtsrcObjtaddValuetcureHPRSRžtsrcIDt updStatValue((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytAddTurnObjCureHPçs      c    
CsÙ|jƒ}|jƒ}||kr¬|j|ƒ}tjd|||||||jƒ|fƒ|rÕ|j|ƒ}tjd|||||||jƒ|fƒqÕn)tjd||||||jƒfƒdS(Nsj        Í³¼ÆÉËѪ: curID=%s,tagID=%s,skillID=%s,hurtValue=%s,lostHP=%s,updStatValue=%s,tagHP=%s,isBounce=%ssj        Í³¼Æ³ÐÉË: curID=%s,tagID=%s,skillID=%s,hurtValue=%s,lostHP=%s,updStatValue=%s,curHP=%s,isBounce=%ssJ        ×Ô²Ð: curID=%s,tagID=%s,skillID=%s,hurtValue=%s,lostHP=%s,curHP=%s(Rt StatHurtValueR)ROR[t StatDefValue(    t    curBatObjt    tagBatObjt    hurtValuetlostHPRStisBounceRžttagIDRµ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytAddTurnObjHurtValue÷s       &    ,     cCs2|s
dS|jƒ}|jƒ}|dkr2dS|j}t|ƒ}t}|sntjd||fƒdS|jƒ}|jƒ}tjd|||||j    ƒ|fƒ|j
||ƒt j ||t jƒtjddƒ}    |jƒ}
g} xÞtd|
jƒƒD]Ç} |
j| ƒ} | s0qn| jƒt jt jgkrTqntj| ƒriqn| jƒr{qn| jƒ}tj| ƒr±||    kr¨qnd}n|j|ƒ}| j||| gƒqW| jƒx1| D])}|d} t j!||| ƒrëPqëqëWt j ||t j"ƒtS(Nis¡ï»ØºÏ%s %s µ±Ç°×´Ì¬²»¿ÉÐж¯!s.¡ï»ØºÏ%s %s Ðж¯ : atk=%s,curHP=%s/%s,curXP=%sR-iiÿÿÿÿ(#R[RR2RCRNR)RORR’RŒR¢R‹RŒR\tTriggerWay_HeroActionStartRÑR0R@RRŽRt GetFuncTypet Def_SkillFuncType_TurnNormaSkilltDef_SkillFuncType_AngerSkillt SkillCommontisPassiveSkillRR“t isAngerSkilltGetSkillUseCntRLRMt    TurnSkillt
OnUseSkilltTriggerWay_HeroActionEnd(RR¹tcurHPRR2RMt    canActiontatktcurXPtxpMaxRRt useSkillListR^tuseSkillRStuseCnttuseInfo((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR~ sX          )        
 
cCstS(N(RN(R¹RºR`tturnBattleTypeRÑ((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytDoAttackMsbc
Cs¯|jtjƒd}|dkrCtjd|jƒ|fƒtStj|ƒ}|tj    kr‘t
j ddƒs‘tjd|jƒƒtSnt j |ƒ}|jtjƒ}|dkrÂtS|dkrt
jdd    ƒ}t|ƒ|kr||d
nd}t||d ƒ}nt j|ƒ}td||ƒ}    |    dks[tj|    ƒ r…tjd |jƒ||    ||fƒtStjd |jƒ||    ||fƒtS(Nidis>            ±»·ÇÖ÷Õ½µ¥Î»¹¥»÷ʱÎÞ·¨´¥·¢·´»÷: atkID=%s,posNum=%sR.is&            Ô¶³Ìµ¥Î»²»¿É·´»÷: defID=%si
R'iigY@sf            ÎÞ·¨·´»÷: defID=%s,atkBackNum=%s,atkBackRate=%s=(defAtkBackRate=%s - atkAtkBackDefRate=%s)sf            ¿ÉÒÔ·´»÷: defID=%s,atkBackNum=%s,atkBackRate=%s=(defAtkBackRate=%s - atkAtkBackDefRate=%s)(RwR\tDef_Obj_Dict_TurnFightPosInfoR)RORR4t AttackCommonR2R?RÑR0tGameObjtGetAtkBackRatetDef_Obj_Dict_TurnAtkBackNumR1RuR/tGetAtkBackDefRateRht    CanHappenRN(
tatkObjtdefObjRaRPtdefAtkBackRatet
atkBackNumt validPerListtvaildPertatkAtkBackDefRatet atkBackRate((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt
CanAtkBack±s4   &        cCstj|ƒ}|jtjƒ}|dkr1tS|dkrŒtjddƒ}t|ƒ|kro||dnd}t    ||dƒ}ntj
|ƒ}t d||ƒ}|dksÊt j |ƒ rôt jd|jƒ||||fƒtSt jd|jƒ||||fƒtS(    Ni
iR'iigY@s]            ÎÞ·¨Á¬»÷: atkID=%s,comboNum=%s,comboRate=%s=(atkComboRate=%s - defComboReduce=%s)s]            ¿ÉÒÔÁ¬»÷: atkID=%s,comboNum=%s,comboRate=%s=(atkComboRate=%s - defComboReduce=%s)(RØRRwR\tDef_Obj_Dict_TurnComboNumR4RÑR1RuR/tGetComboDefRateRhR)RÜRORRN(RÝRÞt atkComboRatetcomboNumRáRâtdefComboReducet    comboRate((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytCanComboÐs"  &        cCsª|jƒ}tjdt|ƒ|fƒ|jdƒ|rH|jƒnd}|r`|jƒnd}tjƒjt    j
ƒ}||_ ||_ ||_ |j|ƒtS(Ns'        %s »ØºÏÕ½¶·Ö÷Ìå±»»÷ɱ: curID=%si(RR)RORCtSetHPR“RªR«tacquireRottagMCTurnFightObjDeadR‚t KillerObjIDtSkillIDR—RN(RtgameObjtkillerRÑRt killerObjIDRSR™((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt SetObjKilledçs               cCsztjdƒtƒj|ƒ}|s)dS|jr6dS|jrNtj|_ntj    tj
tjgƒ|_t |ƒdS(Ns ËùÓлغϽáÊø( R)ROR¹R³R8RR\R]trandomtchoiceR^R_(R+R((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR€õs         
cCsýtƒ}|j|ƒ}|s"dStjƒ|j|_|j}tjd|||jfƒtj    ƒ}i}x¼|j
j ƒD]«}t |ƒ|kr«i|t |ƒ<n|t |ƒ}|j |ƒ}x^|jj ƒD]M}    t |    ƒ|kri|t |    ƒ<n|t |    ƒ}
|j|    ƒ} tjd||    fƒxé| jjƒD]Ø\} } |j| ƒ}|srqKn|jƒ} |jƒ}|jƒ}|j}|j}|j}tjd| | |||jƒ|jƒ|||f    ƒi| d6|d6|d6|d6|d6|d    6|
t | ƒ<qKWqÚWq€Wg}|j}|r©|j}|tjk}|jtj krt!|||ƒq©|jtj"kr©t#|||ƒq©ni|d
6|d 6t$j%|ƒt$j&6}|j't(|ƒ|jsù|j)|ƒndS( Ns4--- Õ½¶·½áÊø´¦Àí --- %s, winFaction=%s, costTime=%sssÕóÈÝÃ÷ϸ: faction=%s,num=%ss9    Pos:%s ID=%s-%s-%s,,HP=%s/%s, Êä³ö=%s,³ÐÉË=%s,ÖÎÁÆ=%sR‚R†R„tAtkHurttDefHurttCureHPR8tstatInfo(*R¹R³RER@RAR8R)RORRR<RxRÜRFR"R%RRGRZRRƒR…thurtStattdefStattcureStatR[RŒRR.R\R^R/RÃtOnOver_MainLevelRÄtOnOver_MainLevelBosstFBCommontGetJsonItemListt Over_itemInfoRdtFightState_AwardRµ(R+R¸RR8RRûRt facStatInfoRHRtlineupStatInfoRIRaRRbR(RêtatkHurttdefHurtR³t awardItemListRR.tisWintoverMsg((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyR_    s`                            /F        '    c CsÞ|s
dS|jƒ}t|ƒ}t|_tj|ƒ\}}}|s›td|dƒ}tj||||ƒ}    tj    d|||||    f|ƒdS|j
|j krãt |_tj    d||||j
|j f|ƒdS||j krFt|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=%ssJÖ÷ÏßС¹ÖÕ½¶·Ê¤Àû£¬ÏÂһС¶Ó! chapterID=%s,levelNum=%s,wave=%s,teamNum=%s/%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(RÕRËR4RÁRÎRÐRhRÓR)ROR¿RÀRNR½tmintGetMainLevelPassValueRmtSetMainLevelPassValue( R.R
R    RRdR»R¼R¾tnextWavetnowValuet hisPassValuet curPassValue((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRÿFs<                        cCsŽ|s
dS|jƒ}t|ƒ}t|_tj|ƒ\}}}|sptj|ƒ}tjd||ƒdS|j    |j
krµt |_tjd|||j    |j
f|ƒdSt}    t j d||dƒr||d}
} tjd||| f|ƒn„t j d|ddƒrR|dd}
} tjd|||
| f|ƒn7|dd}
} tjd|||
| f|ƒt }    tj||
| dƒ} |    rÍtj|ƒ} tjd    | |ƒn,tj||
| dƒ} tjd
| |ƒtjd | | f|ƒt jd||ƒ}|s2dS|jƒ}tjd |||f|ƒtj||d dtigdtƒ||7}dS(Ns5Ö÷ÏßbossÕ½¶·Ê§°Ü£¡±£³Öµ±Ç°Ë¢¹Ö²¨½ø¶È²»±ä! nowValue=%ssFÖ÷ÏßbossС¶ÓÕ½¶·Ê¤Àû£¬ÏÂһС¶Ó! chapterID=%s,levelNum=%s,teamNum=%s/%sRÍisDÖ÷Ïßboss²¨Õ½¶·Ê¤Àû£¡ÏÂÒ»¹Ø! chapterID=%s,levelNum=%s,nextLevelNum=%ssUÖ÷Ïßboss²¨Õ½¶·Ê¤Àû£¡ÏÂÒ»ÕÂ! chapterID=%s,levelNum=%s,nextChapterID=%s,nextLevelNum=%ssUÖ÷Ïßboss²¨Õ½¶·Ê¤Àû£¡ÒÑͨ¹Ø! chapterID=%s,levelNum=%s,nextChapterID=%s,nextLevelNum=%sis(ÒÑͨ¹ØµÄË¢¹Ö½ø¶È±£³Ö²»±ä: updNowValue=%ss3Ϊͨ¹ØµÄË¢¹Ö½ø¶ÈÉèÖÃΪÏÂÒ»¹ØµÄµÚ1²¨: updNowValue=%ssupdPassValue=%s,updNowValue=%ss.¹ý¹Ø½±Àø: chapterID=%s,levelNum=%s,itemList=%steventt MainLevelBosst isNotifyAward(RÕRËR4RÁRÎRÏtGetMainLevelNowValueR)ROR¿RÀRNRÑRÒtSetMainLevelPassInfoRÓRÿtGetAwardItemListt ItemControlertGivePlayerItemOrMail(R.R
R    RRdR»R¼RSRt    isAllPasst nextChapterIDt nextLevelNumt updPassValuet updNowValueRptitemList((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyRpsV                           %
cCsdS(N((R^R_R`((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pytOnTurnFightReportView²s(JR\RoR¨RÎR)RØRRÑRÆRRæR¶RRÄR×RR‹RÈRšRªRöRERlRVRzR
RRgtFightState_PrepareOKR{tFightState_FightEndRReRR!R'R¯R¹RºRËRØRÚRüR,RRcRWRXR4R[R\R]RtRCRyRWR’R|RR}R¶R¿R~tTurnBattleType_NormalR#RÕRåRìRõR€R_RÿRR!(((siD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Attack\TurnAttack.pyt<module>s‚                       
-ÿ                
        &    % Z             F    M    ¬    S    
        9        -              Ad                =    *    B