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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
;=jc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zdd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zdd„Zd„Z d„Z!d„Z"de#gd„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+dd„Z-e.d„Z/d „Z0d!„Z1d"„Z2d#„Z3e.d$„Z4d%„Z5d&„Z6e.d'„Z7d(„Z8d)„Z9d*„Z:d+„Z;d,„Z<dd-„Z=d.„Z>d/„Z?d0„Z@d1„ZAd2„ZBd3„ZCd4„ZDd5„ZEd6„ZFd7„ZGd8„ZHd9„ZId:„ZJd;„ZKd<„ZLdd=„ZMd>„ZNe#d?„ZOdS(@iÿÿÿÿNcCs9|jtjƒr5tj|tjdƒt|ƒndS(Ni(tNomalDictGetPropertytChConfigtDef_PDict_BeastSoulRebirthCntt PlayerControltNomalDictSetPropertytSync_PlayerBeastInfo(t    curPlayer((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt PlayerOnDay%s cCs"t|ƒt|ƒt|ƒdS(N(tSync_BeastInfoRtSync_BeastCallInfo(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnPlayerLogin+s
 
 
cCsw|jtjdƒ|jtjƒr;|jtjdƒn|jtjƒrc|jtjdƒn|jtjƒr‹|jtjdƒn|jtjƒr°|j    tjƒn|jtj
ƒrÕ|j    tj
ƒn|jtj ƒrú|j    tj ƒn|jtj ƒr|j    tj ƒn|jtj ƒrD|j    tj ƒn|jtjƒri|j    tjƒnt|ƒdS(Nii(t SetUserAttrt ShareDefinetDef_IudetBeastLVt GetUserAttrtDef_IudetBeastStartDef_IudetBeastSoulLVtDef_IudetBeastSkintGetUserAttrCounttDef_IudetBeastTalentIDt ClearUserAttrtDef_IudetBeastTalentIDLVtDef_IudetBeastTalentWashLocktDef_IudetBeastTalentWashIDtDef_IudetBeastTalentIDSoulRandtDef_IudetBeastLineuptInitBeastTalent(t
singleItem((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt InitBeastItem1s*
cCs¦|jƒ}tjd|ƒ}|s(dS|jƒ}tjd|ƒ}|sPdSd}|jƒ}|r}tj|dƒ}ni}g}tjƒ}    x^t|    j    ƒƒD]J}
|    j
|
ƒ} | j ƒ} | j ƒ} |j | | gƒ| || <q¨W|jtjƒ|jtjƒx‰t|ƒD]{}tj|ƒ}|sDq#n|j|dƒ|g}||krx|j|ƒn|jtj|ƒ|jtjdƒq#WdS(s+³õʼ»¯²ÛλÌ츳£¬²»Í¬²ÛλÌ츳ID²»ÄÜÒ»Ñù
    tBeastNt BeastQualityii(t GetItemTypeIDt IpyGameDataPYtGetIpyGameDatat
GetQualitytGetInitTalentWeightt    GameWorldtGetResultByWeightListtIPY_DatatrangetGetBeastTalentCounttGetBeastTalentByIndext GetTalentIDt GetInitWeighttappendRR RRtgettremovet AddUserAttr(RtBeastIDt BeastIpyDatatqualitytqualityIpyDatat initTalentCnttinitTalentWeightt talentIDDictttalentWeightListt
ipyDataMgrtindext talentIpyDatattalentIDt
initWeightt_t randTalentIDt randWeightID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRKsB       cCs‚|jƒ}tjd|ƒ}|s(dSt||ƒs~t||dƒtjd||jƒƒt||gƒt    |ƒndS(NRisÊ״줻îÉñÊÞ: beastID=%s(
RR R!tGetBeastActivitetSetBeastActiviteR$tDebugLogt GetPlayerIDRtRefreshBeastAttr(Rt    beastItemtbeastIDt beastIpyData((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnGiveBeastItemws  cCs|jtj|ƒd}|S(Ni
(RRtDef_PDict_BeastBook(RRFtactState((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR@ˆsicCs˜|jtj|ƒ}|d}|r9|r0dSd}nd}tj|dd|ƒ}tj|tj||ƒtjd|||f|jƒƒdS(Ni
iis0ÉèÖÃÉñÊÞ¼¤»î״̬:%s,bookState=%s,updBookState=%s(    RRRIR$tSetValueRRRBRC(RRFtisActt    bookStateRJt updBookState((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRAŽs
    #cCs|jtj|ƒdS(Ni
(RRtDef_PDict_BeastSkinInfo(RtskinID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastSkinStatežscCsK|jtj|ƒ}|ddtd|ƒ}tj|tj||ƒS(Ni
i(RRROtminRR(RRPtstatetinfo((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytSetBeastSkinState¡scCs|jtj|ƒdS(Ni
(RRRO(RRP((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastSkinStar¥scCsB|jtj|ƒ}|d|d}tj|tj||ƒS(Ni
(RRRORR(RRPtstarRT((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytSetBeastSkinStar¨scCs}|jƒjtjƒ}|dks6||jƒkr:dS|j|ƒ}| s\|jƒr`dS|jƒtj    krydS|S(Ni(
tGetItemManagertGetPackR trptBeasttGetCounttGetAttIsEmptytGetTypeRtDef_ItemType_Beast(Rt    itemIndextcurPackRE((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt GetBeastItem­scCs_|jtjƒ}|sgSg}x6t|ƒD](}|jtj|ƒ}|j|ƒq/W|S(N(RR tDef_IudetBeastEffPresetIDR'tGetUserAttrByIndexR,(REt    dataCountteffPresetIDListtlpIndextpresetID((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastEffPresetIDList¸scCs4|jtj|ƒ}|d}|d}||fS(Ni
(RRtDef_PDict_BeastCallOutRet(RtnumtretValueRFtisBuy((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastCallOutRetÃs
 
icCs:|d|rdnd}tj|tj||ƒ}|S(Ni
ii(RRRRk(RRlRFRnRm((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytSetBeastCallOutRetÈscCsstjƒj|ƒ}|j}|j}|dkrCt||ƒn,|dkr_t||ƒnt|d|ƒdS(Niit    confirmOK(R$tGetPlayerManagertGetPlayerByIndextReqTypetReqValuetDoSetBeastWishIDt
DoBuyBeasttDoRefreshBeastCall(R9t
clientDatattickRtreqTypetreqValue((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnBeastCallReqÕs          cCsºtjddƒ}tjd|ƒ}|s.dS|jƒ}||krdtjd|||fƒdS|jƒs…tjd|ƒdStjd|ƒtj|t    j
|ƒt |ƒdS(Nt    BeastWishiRs7·ÇÐÄÔ¸ÉñÊÞÆ·ÖÊÎÞ·¨ÉèÖÃ! wishBeastID=%s,quality=%s != %ss*²»¿ÉË¢ÐÂÕÙ»½µÄÉñÊÞÎÞ·¨ÉèÖÃ! wishBeastID=%ss"ÉèÖÃÐÄԸƷÖÊÉñÊÞID! wishBeastID=%s( R t
GetFuncCfgR!R"R$RBt GetCallWeightRRRtDef_PDict_BeastWishIDR    (Rt wishBeastIDt wishQualityRGR2((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRvãs   
cCs|jƒ}t||ƒ\}}|r?tjd||ƒdStjd|ƒ}|s[dS|jƒ}tjd|ƒ}|sƒdS|jƒ}tjddƒ}    |     s¯| r³dS|j    ƒj
t j ƒ}
t j|    |
|ƒ\} } | s
tjd|    |f|ƒdStj|tjƒs3tjd|ƒdStjd||f|ƒtj|dd    |ƒ} | sodS| jƒ}tj| ƒ}tj|ƒj|| d
d tigƒsÂ| jƒdStj|id|6d d |ƒt j||
| |td ƒt|||dƒt|ƒdS( Ns¸ÃÉñÊÞÒѹºÂò! num=%sRRt    BeastCallis5µÀ¾ß²»×ãÎÞ·¨¹ºÂòÉñÊÞ! costItemID=%s, costItemCount=%ssÉñÊÞ±³°üûÓпÕλÖÃÎÞ·¨¹ºÂò!s¹ºÂòÉñÊÞ! num=%s,beastID=%sRteventtBuyBeasttdataEx( RCRoR$RBR R!R"tGetBuyCostItemCntRRYRZt IPY_GameWorldtrptItemt
ItemCommontGetItem_FromPack_ByIDt ItemControlertCheckPackHasSpaceR R[tGetOutPutItemObjt GetUserDataRtGetItemPackTypetPlayerItemControlert    PutInItemtFalsetCleartNotifyGiveAwardInfot
ReduceItemtTrueRpR    (RRltplayerIDRFRnRGR2R3t costItemCountt
costItemIDtitemPackt    hasEnought itemIndexListREtitemDatatpackType((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRwôsL    *
 
cCs…|jƒ}|jtjƒ}tjd||||f|ƒ|sXtjd|ƒdS|rgt}ntjddƒ}|sÎx t    ddƒD]}t
||ƒ\}}    |    r¶qn|sÀPntj d|ƒ}
|
sÞqn|
j ƒ} | |kr| rtj d||| f|ƒdSqWtjddƒ} tjdd    ƒ} | sT| rXdS|jƒjtjƒ}tj| || ƒ\}}|s¯tjd
| | f|ƒdStj|||| tdƒnttjdd ƒdƒ}|jtjƒ}g}g}xÄ|D]¼}tj d|ƒ}
|
s2qn|
j ƒ} ||krjd }tjd ||fƒn0| |krš|d7}tjd||fƒn|j|ƒ|j| ƒt|ƒ|krPqqWd }d }tj|tjƒra||krXtjdd ƒ}|jtjƒd}||kr^tjd||fƒd }|}q^qad }ntƒ}d }xEt|ƒ|kr·|dkr·|d7}d }|d kr¼|}d }ntj|dƒ}||krì||krìqsnd }||krjtjdd    ƒ}||dkrF|}d }tjd||fƒqj|d7}tjd||fƒn|sŽt|ƒ}tj|ƒ}n|sšqsn|j|ƒ|j|ƒqsWtjd|ƒ||krõd }tjd||fƒn||kr!d }tjd||fƒnt j!|tj|ƒt j!|tj|ƒtjd||fƒt"||ƒt#|dtƒdS(NsCË¢ÐÂÉñÊÞ: wishBeastID=%s,confirmOK=%s,isFree=%s,gmOutBeastIDList=%ssδѡÔñ±Ø³öÉñÊÞÎÞ·¨Ë¢ÐÂR~ii
RsF´æÔÚ¸ßÆ·ÖÊÉñÊÞûÓжþ´ÎÈ·ÈÏˢв»Ö´ÐÐË¢ÐÂ! num=%s,beastID=%s,quality=%sR„is5µÀ¾ß²»×ãÎÞ·¨Ë¢ÐÂÉñÊÞ! costItemID=%s, costItemCount=%siis4GMÖ¸¶¨²ú³öÐÄԸĿ±êÉñÊÞ! wishOutCnt=%s,wishBeastID=%ss4GMÖ¸¶¨²ú³öÐÄԸƷÖÊÉñÊÞ! wishOutCnt=%s,wishQuality=%ss6ÌØÈ¨ÕÙ»½X´Î±Ø³öÆ·ÖÊÉñÊÞ! wishCallCnt=%s,wishQuality=%sids=Æ·ÖÊÉñÊÞ²ú³öX´Î±Ø³öÐÄԸĿ±êÉñÊÞ! wishOutCnt=%s,wishBeastID=%ss2Æ·ÖÊÉñÊÞ²ú³ö´ÎÊý¸üÐÂ! wishOutCnt=%s,wishQuality=%ss×îÖÕ²ú³öÉñÊÞ! %ss>    ²ú³öÐÄԸĿ±êÉñÊÞÖØÖÃÐÄÔ¸´ÎÊý! wishOutCnt=%s,wishBeastID=%ss?    ²ú³öÆ·ÖÊÉñÊÞÖØÖÃÌØÈ¨Ë¢Ð´ÎÊý! wishCallCnt=%s,wishQuality=%ss     wishOutCnt=%s,wishCallCnt=%st isRefreshReti ($RCRRRR$RBR˜R RR'RoR!R"tLogRYRZR‰RŠR‹RŒR—tmaxtDef_PDict_BeastWishOutCntR,tlentPlayerGoldInvesttGetInvestStatetInvestType_LifetDef_PDict_BeastWishCallCntt__getBeastQualityRandListtGetResultByRandomListt__getBeastIDRandListRRt__getRandBeastRetValueListR    (RRqtisFreetgmOutBeastIDListR™R‚RƒRlRFRnRGR2R›RšRœRRžtoutCntt
wishOutCnttrandBeastIDListtoutQualityListt gmOutBeastIDt mustQualityt wishCallCntt neecCallCnttqualityRandListtdoCntt randQualityt randBeastIDtwishQualityMustCnttbeastIDRandList((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRx%sÎ           
             !
      
     cCsÄttjddƒdƒ}tƒ}d}g}x„t|ƒ|kr¶|dkr¶|d7}tj|dƒ}|dkrq3nt|ƒ}tj|ƒ}|s¦q3n|j|ƒq3Wt    ||ƒS(NR„iiiidi(
R£R RRªR¥R$R«R¬R,R­(RR°R¸R¹R²RºR½R»((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt__getDefaultCallBeastRetList§s    !
  cCsLg}x?t|dƒD].\}}t|||dƒ}|j|ƒqW|S(Nii(t    enumerateRpR,(RR²trandBeastRetListRlRFRm((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR­ºs
cCs±tjdƒ}|s­g}d}tjƒ}xjt|jƒƒD]V}|j|ƒ}|jƒ}|jƒ}|syq@n||7}|j||gƒq@Wtj    d|ƒn|S(NtBeastQualityRandListi(
R t GetConfigExR&R'tGetBeastQualityCounttGetBeastQualityByIndexR"R€R,t SetConfigEx(tbeastQualityRandListtrateR8R9R3R2t
callWeight((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRªÁs   
c    CsÓd|}tj|ƒ}|sÏg}d}tjƒ}x‚t|jƒƒD]n}|j|ƒ}||jƒkrwqJn|jƒ}|jƒ}|s›qJn||7}|j    ||gƒqJWtj
||ƒn|S(NsBeastIDRandList_%si( R RÂR&R't GetBeastCounttGetBeastByIndexR"t
GetBeastIDR€R,RÅ(    R2tkeyR½RÇR8R9RGRFRÈ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR¬Òs$
 
cCsítjƒj|ƒ}|jƒ}|j}t||ƒ}|sCdS|jƒ}tjd|ƒ}|skdS|j    ƒ}    |j
t j ƒ}
tj d|||
|    f|ƒtjd|    |
ƒ} | sÈdS|
d} tjd|    | ƒstj d|    | f|ƒdS| jƒ} | sdS| \}}| s5| r9dS|jƒjtjƒ}tj|||ƒ\}}|stj d||fƒdStj||||tdƒ| }tj d|||f|ƒ|jt j |ƒt|ƒdS(    NRs;ÇëÇóÉñÊÞÉý¼¶: itemIndex=%s,beastID=%s,beastLV=%s,quality=%stBeastQualityLVis+²»´æÔÚ¸ÃÉñÊ޵ȼ¶: quality=%s,nextBeastLV=%ss7²ÄÁϲ»×㣬ÉñÊÞÎÞ·¨Éý¼¶! costItemID=%s, costItemCount=%st    BeastLVUPs/ÉñÊÞÉý¼¶: itemIndex=%s,beastID=%s,updBeastLV=%s(R$RrRsRCt    ItemIndexRcRR R!R"RR R RBt GetUPCostItemRYRZR‰RŠR‹RŒR—R˜R RD(R9RyRzRR™RaRERFRGR2tbeastLVtqualityLVIpyDatat nextBeastLVt costItemInfoR›RšRœRRžt
updBeastLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastLVUPísL           
 
cCsd|jƒ}tjd|ƒ}|s(dS|jƒ}tjdi|d6tƒ}|sZdSt|ƒS(NRiRÍtQuality(RR R!R"tGetIpyGameDataByConditionR˜R¥(RERFRGR2t lvIpyDataList((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt GetBeastLVMaxs  c!
Csùtjƒj|ƒ}|jƒ}|j}|j}t||ƒ}t||ƒ}| sk| sk||krodS|jƒ}    |jƒ}
tjd||    ||
f|ƒ|    |
krÇtjd|ƒdS|j    ƒrñtjd||    f|ƒdS|j
t j ƒ} | r'tj d||    f|ƒdS|j
t jƒ} | r]tj d||    f|ƒdS|jt jƒ} | rtjd| |ƒdS|jt jƒ}|dkrÃtjd||ƒdStjd    |    ƒ}|sßdS|jƒ}|jt jƒ}|jt jƒ}t|    |ƒ}tjd
|    ||||f|ƒ||kretjd ||ƒdS|jt jƒ}|d}||}tjd ||    ||||f|ƒtj|||jƒtd ƒt|||ƒt|ƒtjd|ƒ}|rõtjddƒ}g}|jƒ}xD|D]<\}}tdt ||dƒƒ}|j!||gƒq-Wi}t"|||ƒx<|j#ƒD].\}}|\}} |j!||| gƒqWtjd|ƒt$j%||ddtigƒndS(NsCÇëÇóÉñÊÞÉýÐÇ: itemIndex=%s,beastID=%s,useItemIndex=%s,useBeastID=%ssÉñÊÞ²ÄÁϷDZ¾Ì壬ÎÞ·¨ÉýÐÇ!s2²ÄÁÏ¿¨Ëø¶¨ÖУ¬ÎÞ·¨ÉýÐÇ! useItemIndex=%s,beastID=%ss5ÉñÊÞÏ´Á¶½á¹ûδ´¦Àí£¬ÎÞ·¨ÉýÐÇ! itemIndex=%s,beastID=%ss9ÉñÊÞËÜ»ê½âËøÌ츳δѡÔñ£¬ÎÞ·¨ÉýÐÇ! itemIndex=%s,beastID=%ss-²ÄÁÏ¿¨ËÜ»êµÈ¼¶²»Îª0ÔÝʱÎÞ·¨ÉýÐÇ£¡useSoulLV=%sis'²ÄÁÏ¿¨ÒÑÉý¼¶ÔÝʱÎÞ·¨ÉýÐÇ£¡useBeastLV=%sRs2beastID=%s,star=%s,quality=%s,soulLV=%s,starMax=%ss¸ÃÉñÊÞÒÑÂúÐÇ£¡starMax=%ssJÉñÊÞÉýÐÇ: itemIndex=%s,beastID=%s,star=%s,useStar=%s,addStar=%s,updStar=%st BeastStarUPRt BeastRebirthigY@sÍÌÊɶîÍâ×Ü·µ»¹: %sR…tBeastStarUPReturn(&R$RrRsRCRÏt UseItemIndexRcRRBt GetIsLockedRR RtErrLogRRRR R R!R"RtGetBeastStarMaxR‹tDelItemR\R”tDoBeastUpdStarRDRtGetDismissReturnItemsR£tintR,t__calcBeastQualityReturnItemExtitemsRtGivePlayerItemOrMail(!R9RyRzRR™Rat useItemIndexREtuseItemRFt
useBeastIDt    washIDCntt soulRandCntt    useSoulLVt
useBeastLVRGR2RWtsoulLVtstarMaxtuseStartaddStartupdStarR3tratiotreturnItemListtdismissReturnItemstitemIDt    itemCountt    returnCnttreturnItemExDictRÌtisBind((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastStarUP,sŠ                   # 
 
    
  "c Csçtjd|ƒ}|sdS|jƒ}tjd|ƒ}|sDdS|jƒ}d}|rq|jtjƒ}n|dkr|Sd}tjd|ƒ}|rÙx7|D],}    |    jƒ|krÂPn||    j    ƒ7}q¦Wn||}
|
S(NRiRiŸ†t    BeastSoul(
R R!R"tGetInitStarUpperRR RtGetIpyGameDataListNotLogt    GetSoulLVtGetAddStarUpper( RFRERGR2R3t InitStarUpperRðt addStarUppertbeastSoulIpyDataListtipyDataRñ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRáys,    
c    Cs²|jƒ}t|ƒ}||krD|}tjd||fƒn|jtjƒ}||}|jƒ}|jtj|ƒ|dkr›t    ||ƒn|r®|j
ƒndS(Ns4²»³¬¹ý°æ±¾×î´óÉñÊÞÐǼ¶: beastID=%s,versionStarMax=%si( RRáR$RBRR RtGetItemR t__DoBeastStarTalentUpt    Sync_Item(    RRERôtisSyncRFtversionStarMaxtcurStarRótitem((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRã˜s   
   c CsK|jƒ}tjddƒ}tjddƒ}|}tjd|ƒ}|r§|jtjƒ}xD|| ddd…D](}|jƒ}    |    rx|    rx|    }PqxqxWn|jtj    ƒ}
|jtj
ƒ} gg} } g}g}t }x™t t |
| ƒƒD]‚}|jtj    |ƒ}|jtj
|ƒ}| j|ƒ| j|ƒ||kr|j|ƒ||kr‚|j|ƒq‚qqWt| ƒ|krÑ| dg|t| ƒ7} | dg|t| ƒ7} ntjd|ƒtjd| | |fƒtjd    ||fƒd| kr’i}g}tjƒ}xpt |jƒƒD]\}|j|ƒ}|jƒ}|| kr}qJn|jƒ}|j||gƒ|||<qJWtjd
|ƒxÔt |ƒD]Ã}d| krÞPntj|ƒ}|sùqÈn|j|dƒ|g}||kr-|j|ƒn| jdƒ}|| |<d| |<|j|ƒ|j|ƒtjd |ƒ|d8}t}qÈWn|dkrµxt |ƒD]}|s»Pn|rÐtj|ƒn tj|ƒ}|| krñq«n| j|ƒ}| |}||krG|d7}|| |<tjd |||fƒn||kr¨||kro|j|ƒn||kr‹|j|ƒntjd |||fƒnt}q«Wn|s¿dStjd| | fƒ|jtj    ƒ|jtj
ƒxNt | ƒD]@\}}|sPn|j!tj    |ƒ|j!tj
| |ƒqWdS(NtBeastStarTalentiiRþiÿÿÿÿis"Ö´ÐÐÉñÊÞÐǼ¶Ì츳µÈ¼¶ÌáÉý: addLV=%ss2µ±Ç°ÐǼ¶Ì츳: idList=%s,lvList=%s,maxUnlockSlot=%ss,δÂú¼¶ÐǼ¶Ì츳ID: %s,unfullLVIDListUnlock=%ss³£¹æ¿Õ²ÛλÔö¼ÓÌ츳Êý£º%ssÐÂÔöÐǼ¶Ì츳ID: %ss#Éý¼¶ÐǼ¶Ì츳ID: %s,idLV=%s,index=%ss<    ÒƳýÂú¼¶ID: %s,unfullLVIDList=%s,unfullLVIDListUnlock=%ss!¸üÐÂÐǼ¶Ì츳: idList=%s,lvList=%s("RR RRRR RtGetUnlockTalentSlotRRRR”R'RRReR,R¥R$RBR&R(R)R*t GetWashWeightR%R-R.R9R˜trandomtchoiceRR¿R/( RtaddLVRFtcommTalentSlott talentMaxLVt maxUnlockSlottsoulIpyDataListRðRtunlockTalentSlottidCounttlvCounttidListtlvListtunfullLVIDListtunfullLVIDListUnlockthaveUpR9R;ttalentLVt idWeightDictR7R8R:tweightR=R>R?t    zeroIndextrandIDt    randIndextidLV((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR«s¼                 
 
 
  $ 
 
 
    cCsšd}|jƒjtjƒ}xut|jƒƒD]a}|j|ƒ}| s1|jƒr_q1n||jƒkrwq1nt    |j
tj ƒ|ƒ}q1W|S(Ni( RYRZR R[R'R\R]R^RR£RR(RRFRñRbR9RE((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastIDStarscCs}d}|jƒjtjƒ}xXt|jƒƒD]D}|j|ƒ}| s1|jƒr_q1n||jtj    ƒ7}q1W|S(Ni(
RYRZR R[R'R\R]R^RR(Rt    totalStarRbR9RE((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGetBeastStarTotal*sc    CsStjƒj|ƒ}|jƒ}|j}t||ƒ}|sCdS|jƒ}tjd|ƒ}|skdS|j    ƒ}    |j
t j ƒ}
|j
t j ƒ} tjd|||    | |
f|ƒtjddƒ} tjddƒ} |
| ksú|
| krtjd|
| | f|ƒdStjd|    | ƒ}|s:dS| d}tjd|    |ƒswtjd|    | f|ƒdS|jƒ}|sdS|\}}| s§| r«dS|jƒjtjƒ}tj|||ƒ\}}|sÿtjd    ||fƒdStj||||td
ƒtjd |||f|ƒt||ƒt|ƒdS( NRsDÇëÇóÉñÊÞËÜ»ê: itemIndex=%s,beastID=%s,quality=%s,soulLV=%s,starLV=%sRiis$µ±Ç°ÐǼ¶²»¿ÉËÜ»ê: starLV=%s < %s, %stBeastQualitySouls$ËÜ»êµÈ¼¶ÒÑÂú¼¶: quality=%s,soulLV=%ss7²ÄÁϲ»×㣬ÉñÊÞÎÞ·¨ËÜ»ê! costItemID=%s, costItemCount=%sRþs/ÉñÊÞËÜ»ê: itemIndex=%s,beastID=%s,nextSoulLV=%s(R$RrRsRCRÏRcRR R!R"RR RRRBRRÐRYRZR‰RŠR‹RŒR—R˜tSetBeastSoulLVRD(R9RyRzRR™RaRERFRGR2tstarLVRðt soulLimitStarRRt
nextSoulLVRÔR›RšRœRRž((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastSoul<sV           
 
cCs@|jƒ}|jtj|ƒt|ƒ|r<|jƒndS(N(RR R RtunlockTalentSlotBySoulR    (t    BeastItemtSoulLVR
R ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR+ks  
 cCsl|jƒ}|jtjƒ}tjd|ƒ}|s:dSd}x;|| ddd…D]"}|jƒ}|rX|}PqXqXW|sˆdS|jtjƒ}||krªdStj    ddƒ}||krÌdS|jtj
ƒ}    |    rèdSg}
x6t |ƒD](} |j tj| ƒ} |
j | ƒqûWtjd|||
fƒi} g}tjƒ}xpt |jƒƒD]\} |j| ƒ}|jƒ} | |
krŸqln|jƒ}|j || gƒ|| | <qlWtj    ddƒ}x‡t |ƒD]y}tj|ƒ}|s qën| j|dƒ|g}||kr@|j|ƒn|jtj
|ƒtjd|ƒqëWdS(    NRþiiÿÿÿÿRis4ËÜ»ê½âËøÌ츳²Û: soulLV=%s,maxUnlockSlot=%s,idList=%sis!Ëæ»úËÜ»êÌ츳ѡÏî: randTalentID=%s(RRR RR RRRRRRR'ReR,R$RBR&R(R)R*t GetSoulWeightR%R-R.R/(RRFRðRRRRRRRíRR9R;R!R7R8R:R"t randTalentCntR=R>R?((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR0tsb         cCs;tjƒj|ƒ}|j}|j}t|||ƒdS(N(R$RrRsRÏt SelectIndextdoSelectSoulTalent(R9RyRzRRat selectIndex((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnBeastSoulSelectTalent¹s
        cCsÞ|jƒ}t||ƒ}|s%dS|jƒ}|jtjƒ}| sV||krwtjd|||f|ƒdS|jtj|ƒ}|s–dS|j    ƒ}    |    jtj
ƒ}
|    jtj ƒ} gg} } xat t |
| ƒƒD]J}|    jtj
|ƒ}|    jtj |ƒ}| j|ƒ| j|ƒqéW|| krgtjd|||| f|ƒdStjddƒ}tjddƒ}t| ƒ}
tjd||| | fƒ|
|kr| dg||
7} | dg||
7} d}tjdƒntjd    |ƒ}|sdS|jƒ}tjd
|ƒ}|sDdS|jƒ}tjd |ƒ}|sldSd}||7}x4|D],}|
|jƒkrŸPn||jƒ7}qƒW|jtjƒ}tjd |
||fƒ||}tdt |d|ƒƒ}| j|ƒ| j|ƒ|    jtjƒtjd ||| | fƒ|    jtj
ƒ|    jtj ƒxDt| ƒD]6\}}|    jtj
|ƒ|    jtj | |ƒqyWt|    ƒ|rÐ|j ƒnt!|ƒdS(NsB²»´æÔÚ¸ÃËÜ»êÌì¸³Ëæ»úÑ¡Ïî! beastID=%s,selectIndex=%s,soulRandCnt=%ssEÑ¡ÔñÌ츳ID²»ÄÜÖØ¸´! beastID=%s,selectIndex=%s,selectTalentID=%s in %sRiis:Ñ¡ÔñÌ츳: beastID=%s,selectTalentID=%s,idList=%s,lvList=%sis'³£¹æ²Ûλδȫ²¿½âËø£¬ËÜ»ê²ÛλĬÈÏ1¼¶Ì츳RRRþs;³£¹æ²ÛλÒÑÈ«²¿½âËø, idCount=%s,preSlotStarMax=%s,curStar=%ss7selectTalentID=%s,selectTalentLV=%s,idList=%s,lvList=%s("RCRcRRR RR$RBReRRRR'RRR,RàR RR¥R!R"RÿRRRRRR£RR¿R/R0R    RD(RRaR7R
R™RERFRítselectTalentIDRRRRRR9R;R RRtselectTalentLVRGR2R3RRtpreSlotStarMaxRR t overflowStar((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR6ÀsŠ              
 
 
 
cCsžtjƒj|ƒ}|j}|j}|j}t||ƒ}|sIdS|dkrht|||ƒn2|dkr‡|jt    j
ƒnt ||||ƒdS(Nii( R$RrRsRÏtLockTalentIndexstOPTypeRctBeastTalentWashReplaceRR RtBeastTalentWash(R9RyRzRRatlockTalentIndexstopTypeRE((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastWashs              cCsÃ|jƒ}tjd|||fƒ|jtjƒ}|rStjd|ƒdStjddƒ}tj    ddƒ}|sdS|j
ƒ}|jtj ƒ}    xH|ddd…D]3}
|
|    kr³|j |
ƒtjd|
ƒq³q³Wt |ƒ} t |ƒ| kr|| n|d} tjd|| |fƒ|jƒjtjƒ} tj|| | ƒ\}}|sŠtjd    || fƒdStj|| || td
ƒg}xRt|    ƒD]D}||krð|jtj |ƒ}|j|ƒq¹|jd ƒq¹Wtjd |ƒi}g}tjƒ}xpt|jƒƒD]\}|j|ƒ}|jƒ}||krpq=n|jƒ}|j||gƒ|||<q=Wxt|ƒD]q\}}|rÂqªntj|ƒ}|sÝqªn|j |d ƒ|g}||kr|j |ƒn|||<qªWtjd |ƒ|j!tjƒx!|D]}|j"tj|ƒqGW|j!tj#ƒx!|D]}|j"tj#|ƒq{W|j$ƒtjd||||fƒdS(Ns5ÉñÊÞÏ´Á¶: itemIndex=%s,beastID=%s,lockTalentIndexs=%ss*ÉñÊÞÏ´Á¶½á¹ûδ´¦Àí£¬ÎÞ·¨Ï´Á¶! washIDCnt=%st    BeastWashiiiÿÿÿÿs"È¥³ý²»´æÔÚµÄËø¶¨Ë÷Òý: lockIndex=%ss6washItemID=%s,washCostItemCount=%s,lockTalentIndexs=%ss>Ï´Á¶²ÄÁϲ»×㣬ÉñÊÞÎÞ·¨Ï´Á¶! washItemID=%s,washCostItemCount=%sR@is
Ï´Á¶Ç°: %ss
Ï´Á¶ºó: %ssGÉñÊÞÏ´Á¶½á¹û! itemIndex=%s,beastID=%s,washIDList=%s,lockTalentIndexs=%s(%RR$RBRR RRàR RtGetFuncEvalCfgRRR.R¥RYRZR‰RŠR‹RŒR—R˜R'ReR,R&R(R)R*RR¿R%R-RR/RR    (RRaRERARFRìt
washItemIDtlockCostItemListRRt    lockIndextlockCnttwashCostItemCountRœRtwashItemIndexListt
washIDListR9R;R!R7R8R:R"R>R?((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR@1s€     &        
    c    Csï|jƒ}|jƒ}|jtjƒ}|sKtjd||fƒdSg}|jtjƒxIt    |ƒD];}|j
tj|ƒ}|j |ƒ|j tj|ƒqnW|jtjƒ|j ƒtjd|||fƒt|ƒdS(Ns/ÉñÊÞûÓÐÏ´Á¶²»ÐèÒªÌæ»»! itemIndex=%s,beastID=%ss3ÉñÊÞÏ´Á¶Ìæ»»! itemIndex=%s,beastID=%s,washIDList=%s(RRRR RR$RàRRR'ReR,R/R    RBRD(    RRaRERFRRRLR9R;((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR?s"   
 
c Csþtjƒj|ƒ}|j}|j}|j}|j}tjd|ƒ}|sUdS|j    ƒ}    ||    kr‹tj
d|||    fƒdS|    j |ƒ}
|dkr¹t |||ƒnA|dkrÛt |||
tƒn|dkrút|||ƒndS(NRs,²»´æÔÚ¸ÃÆ¤·ô! beastID=%s,skinID=%s not in %siii(R$RrRsR0tSkinIDR>RÏR R!t GetSkinIDListRBR9tActiveBeastSkintDoBeastWearSkinR”tDoBeastSkinStarUP( R9RyRzRRFRPRBRaRGt
skinIDListt    skinIndex((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastSkinOP¥s(                     c
Cst||ƒ}|sdS|jƒ}tjd|ƒ}|sAdS|jƒ}|dkr½|t|ƒkr†tjd||fƒdS||}t||ƒs½tjd||fƒdSntjd|||fƒ|j    ƒ}    |    j
t j |ƒ|j ƒt|ƒtS(NRis+¸ÃÉñÊÞ²»´æÔÚ¸ÃÆ¤·ô! beastID=%s,skinIndex=%ss)¸ÃÉñÊÞÆ¤·ôδ½âËø! beastID=%s,skinIndex=%ss3Çл»ÉñÊÞÆ¤·ô! beastID=%s,skinIndex=%s,isSkinAttr=%s(RcRR R!RNR¥R$RBRQRR R RR    RDR˜(
RRaRSt
isSkinAttrRERFRGRRRPR ((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRP¿s,   
 
 
cCsftjd|ƒ}|sdS|jƒ}| sA|t|ƒkrEdS||}t||||ƒdS(NR(R R!RNR¥t__onBeastSkinActive(RRFRStisActiveRGRRRP((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytGMSetBeastSkinás 
c
Cstjd|ƒ}|sdSt||ƒrFtjd||fƒdS|jƒ}d}tj|||ƒ\}}}|||}    |    dkr±tjd||||    fƒdStj|||||dƒtjd||f|j    ƒƒt
|||dƒdS(Nt BeastSkinAttrs*¸ÃÉñÊÞÆ¤·ôÒѾ­¼¤»îÁË: beastID=%s,skinID=%siisH¼¤»îÉñÊÞʱװÎïÆ·²»×ã! beastID=%s,needItemID=%s,needItemCnt=%s,lackCnt=%st    BeastSkins"¼¤»îÉñÊÞÆ¤·ô: beastID=%s,skinID=%s( R R!RQR$RBt GetNeedItemIDR‹tGetPackItemBindStateIndexInfotDelCostItemByBindRCRV(
RRFRPt skinIpyDatat
needItemIDt needItemCnttcostItemIndexListtbindCntt    unBindCnttlackCnt((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyROìs"   cCs.t|||ƒt||gƒt|ƒdS(N(RURRD(RRFRPRW((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRVÿs
cCs‘|jƒ}t||ƒs9tjd||f|ƒdStjd|ƒ}|sUdS|jƒ}t||ƒ}||kr tjd||||f|ƒdS|jƒ}d}| sÀ| rÄdSt    j
|||ƒ\}    }
} ||
| } | dkr tjd||||| fƒdSt    j ||    |
| |dƒ|d} tjd||| f|ƒt ||| ƒt ||gƒt|ƒdS(    Ns&¸ÃÉñÊÞʱװδ¼¤»î! beastID=%s,skinID=%sRYs7ÉñÊÞʱװÐǼ¶ÒÑÂú! beastID=%s,skinID=%s,curStar=%s >= %siisRÉñÊÞʱװÉýÐÇÎïÆ·²»×ã! beastID=%s,skinID=%s,needItemID=%s,needItemCnt=%s,lackCnt=%sRs.ÉñÊÞʱװÉýÐÇ! beastID=%s,skinID=%s,nextStar=%s(RCRQR$RBR R!t
GetStarMaxRVR[R‹R\R]RXRRD(RRFRPR™R^RñR R_R`RaRbRcRdtnextStar((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRQs8       
 
cCs]tjƒj|ƒ}|j}|j}t||ƒ}|s@dS|j|rRdndƒdS(Nii(R$RrRsRÏtIsLockRct SetIsLocked(R9RyRzRRatisLockRE((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt OnBeastLockes        cCstjƒj|ƒ}|j}|j}|j}t||ƒ}|sIdS|jtj    ƒ}|jtj
ƒ}    |dkr•|     r•tj d|ƒdS|rõ|    rõ|j t jƒ}
tjddƒ} | rõ|
| krõtj d|
| fƒdSn|jƒ} tjd| ƒ} | sdS| jƒ}d}d}tjddƒ}|rƒ|    rƒtjd||    ƒ}|rz|jƒnd}n|r³ttdttjdd    ƒƒƒƒ}n||}tj d
|| |||    |||||f
ƒ|r|rtj|||ƒ rdStjdd ƒ}i}|rFt||||ƒn|rbt||    ||ƒn|r‹|r‹tj|||dƒ r‹dS|jƒ}|r³|j tj    dƒn|rÏ|j tj
dƒn|j!ƒ|r,g|j"ƒD]\}}||g^qì}t#j$||d dt%igƒn|rq|    rq|j t jƒ}
tj&|t j|
dƒt'|ƒnt(|ƒdS( Nis4¸ÃÉñÊÞδ½øÐйýµÈ¼¶ËÜ»êÅàÑø£¬²»ÐèÒªÖØÉú! itemIndex=%sRÜis5½ñÈÕËÜ»ê¹ýµÄÉñÊÞÖØÉú´ÎÊýÒÑ´ïÉÏÏÞ! rebirthCnt=%s >= %sRiR*iszÉñÊÞÖØÉú: itemIndex=%s,beastID=%s,quality=%s,beastLV=%s,soulLV=%s,costMoneyTotal=%s(lv:%s+soul:%s),lvReset=%s,soulReset=%siR…()R$RrRsRÏtLVResett    SoulResetRcRR R RRBRRRR RRR!R"tGetIpyGameDataNotLogtGetRebirthCostMoneyRåR£tevaltGetFuncCompileCfgRt    HaveMoneyt__calcBeastLVReturnitemt__calcBeastSoulReturnitemtPayMoneyRR R    RçRRèR”RRRD(R9RyRzRRatlvResett    soulResetRERÑRðt
rebirthCntt rebirthCntMaxRFRGR2t lvCostMoneyt soulCostMoneyt    moneyTypetqualitySoulIpyDatatcostMoneyTotalRõtreturnItemDictR tktvRö((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnBeastRebirthxsv                *
    &"% 
+"  
c
CsÚi}x­td|ƒD]œ}tjd||ƒ}|s=qn|jƒ}|sUqn|\}}    tdt|    |dƒƒ}    |j|dƒ|    ||<|j|dƒ|    ||<qWtjd|||||fƒdS(NiRÍgY@is4    µÈ¼¶·µ»¹: quality=%s,beastLV=%s,ratio=%s,%s,×Ü%s(    R'R R!RÐR£RåR-R$RB(
R2RÑR~Rõt
returnDicttretLVRÒRÔR›Rš((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRrÃs   c
CsÚi}x­td|ƒD]œ}tjd||ƒ}|s=qn|jƒ}|sUqn|\}}    tdt|    |dƒƒ}    |j|dƒ|    ||<|j|dƒ|    ||<qWtjd|||||fƒdS(NiR*igY@s3    Ëܻ귵»¹: quality=%s,soulLV=%s,ratio=%s,%s,×Ü%s(    R'R R!RÐR£RåR-R$RB(
R2RðR~RõR‚t    retSoulLVR|RÔR›Rš((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRsÔs   c!
Cs tjƒj|ƒ}|j}tjd|ƒtjddƒ}i}i}i}|jƒjt    j
ƒ}    x±|D]©}
|
|kr›tj d|
ƒqrn|
dksr|
|    j ƒkr¿qrn|    j |
ƒ} | sr| jƒrçqrn| jt    jƒ} | rtjd|
| fƒqrn| jƒr?tjd|
ƒqrn| jt    jƒ} | r¢gt| ƒD]}| jt    j|ƒ^qd}tjd|
|fƒqrn| jƒ}t| ƒ}|ràtjd    |
||fƒqrntjd
|ƒ}|sþqrn|jƒ}| jt    jƒ}| jt    jƒ}tjd |ƒ}|sLqrntjd |
||||fƒ|jƒ}xS|D]K\}}td t|d ||dƒƒ}|j|dƒ|||<qWtjd|||||fƒt ||||ƒt!|||ƒ| ||
<qrW|s)dSx9|j"ƒD]+\}
}t#j$|||j ƒt%dƒq6W|rg|j"ƒD]\}}||g^qx}x<|j"ƒD].\}}|\}} |j&||| gƒq£Wtjd|ƒt'j(||ddt%igƒndS(NsÉñÊÞDzɢ: itemIndexList=%sRÜis-ÉñÊÞDzɢǰ¶Ë·¢ËÍÖØ¸´µÄitemIndex! itemIndex=%sis6ËÜ»ê¹ýµÄÉñÊÞÐèÏÈÖØÉúºó²Å¿ÉDzɢ! itemIndex=%s,soulLV=%ss Ëø¶¨µÄÉñÊÞÎÞ·¨Ç²É¢! itemIndex=%ss5ÉÏÕóÖеÄÉñÊÞÎÞ·¨Ç²É¢! itemIndex=%s,lineupValueList=%ss@ÉúЧÖеĿ¨ÅÆÎÞ·¨Ç²É¢! itemIndex=%s,beastID=%s,effPresetIDList=%sRRs@Dzɢ: itemIndex=%s,beastID=%s,quality=%s,beastLV=%s,beastStar=%sigY@s6    ÐǼ¶·µ»¹: quality=%s,beastStar=%s,ratio=%s,%s,×Ü%st BeastDismisssDzɢ×Ü·µ»¹: %sR…()R$RrRst ItemIndexListRBR RRYRZR R[RàR\R]R^RRRßRRR'ReRRjR!R"R RRäR£RåR-RrRæRçR‹RâR”R,RRè(!R9RyRzRRžRõtdismissItemDictR~RûRbRaRERðt lineupCountRhtlineupValueListRFRgRGR2RÑt    beastStarR3R÷RøRùt
starRetCntR1RR€RöRÌRü((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnBeastDismissís€       .     % #+ "c
Cs„|jƒ}|sdStjdtjƒ}tj|tjƒd}xj|D]b\}}|saPn||f}tdt    t
j ||dƒƒƒ}    |j |dƒ|    ||<qKWt jd|||fƒtjdtjƒ}tj|tjƒd}xj|D]b\}}|sPn||f}tdt    t
j ||dƒƒƒ}    |j |dƒ|    ||<qWt jd|||fƒdS(NtsrcSigniigY@s    ºìÑÕ·µ»¹: retPer=%s,%s,×Ü%ss    ³ÆºÅ·µ»¹: retPer=%s,%s,×Ü%s(tGetReturnItemsExRtGetIsBindValueRtItemSrcSign_BeautyEfft PlayerBeautytGetBeautyEffInfotEffType_BeastItemExPerR£RåtmathtceilR-R$RBtItemSrcSign_TitleEfft    PlayerHJGtGetTitleEffInfotTitleEff_BeastItemExPer(
RR3Rût returnItemsExRütretPerRøRùRÌtretCnt((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRæ4s,  & &c
Csntjƒj|ƒ}|j}|j}i}x*|D]"}|j}|j}    |||    <q4Wt|||ƒdS(N(R$RrRstPresetIDt BeastPosListtPosNumRÏtDoSaveBeastPreset(
R9RyRzRRit beastPosListtitemIndexPosDicttposInfotposNumRa((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pytOnBeastPresetSaveas                 cCstj||tjƒs-tjd|ƒdStjddƒ}i}g}xU|jƒD]G\}}||krvqXn||krˆqXn|j    |ƒ|||<qXWtjd|||f|j
ƒƒ|j ƒj tj ƒ}d}    i}
xût|jƒƒD]ç} |j| ƒ} | sý| jƒr+qýn| jtjƒ} | sIqýn| jƒ}xŒt| ƒddd…D]q}|jtj|ƒ}t|ƒd|kr¦qon|jtj|ƒ|    d7}    |    tjkrÖPn| |
| <qoWqýWg}i}xù|jƒD]ë\}}|dks||jƒkr1qn|j|ƒ} | s| jƒrYqn| jƒ}||krŽtjd||fƒqn|j    |ƒ| jƒ}t||ƒ}|jtj|ƒ||
krâ| |
|<n|||<qWx|
jƒD]}|jƒqýWt|ƒdS(Ns!¸ÃÉñÊÞÕóÈÝÔ¤Éè²»¿ÉÓÃ! presetID=%st BeastBattleis-±£´æÉñÊÞÔ¤ÉèÕóÈÝ: presetID=%s,maxPosNum=%s,%siiÿÿÿÿs,ͬ¸öÉñÊÞÖ»ÄÜÉÏÕóÒ»¸ö! itemIndex=%s,itemID=%s(t PlayerPresettGetFuncPresetIDStateR tFuncPreset_BeastR$RBR RRçR,RCRYRZR[R'R\R]R^RRRRetGetLineupValuet DelUserAttrt LineupObjMaxRtComLineupValueR/tvaluesR    RD(RRiR¢t    maxPosNumt beastPosDictt    indexListRaR¤RbtdelCountt syncItemDictR9RERˆR Rht lineupValuet beastIDListt beastItemDictRøtsyncItem((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR osr   #  
 
cCs |d|S(Ni
((RiR¤((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR­µscCs|d}|d}||fS(Ni
((R´RiR¤((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRª¶s
 
cCs!t|ƒtj|ƒjƒdS(N(t CalcBeastAttrt PlayerOnlinetGetOnlinePlayertRefreshRoleAttr(R((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRD»s
c?Cs1    |jƒ}i}i}i}i}|jƒjtjƒ}x t|jƒƒD]÷}|j|ƒ}| sO|jƒr}qOn|j    ƒ}    t
j d|    ƒ}
|
s§qOn|
j ƒ} t
j d| ƒ} | sÑqOn|j tjƒ} |j tjƒ}t|    |ƒ}| jƒ}|| jƒtd| dƒ7}|| jƒt||ƒ7}|jtjƒ}xŠt|ƒD]|}|jtj|ƒ}|s”qmnt|ƒd}||kr½i||<n||}|    |krÙqmn||g||    <qmW|    |krdddg||    <n||    d}||kr<||g||    <n|||<qOWi}xÎ|jƒD]À\}}i}x¡|jƒD]“}    t}||    \}}|    |kr½t}||    \}}n|||g||    <||krég||<n||}||kr||j|ƒq|q|W|||<q]Wt j!d||ƒi}xþ|jƒD]ð\}}|j"ƒ}t#|ƒ}|j$|gƒ}xZ|D]R}||kr…|j%tj&|ƒ|||<t j!d||||f|ƒq…q…WxZ|D]R}||krâ|j'tj&|ƒ|||<t j!d||||f|ƒqâqâWqHWx|j(ƒD]} | j)ƒqIWt
j*d    dƒ}!t+j,|ƒ}"x¬|jƒD]ž\}}i}#d}$i}%x6|jƒD](\}    }&|&\}}}||krãq¶n||}|$|7}$t
j d|    ƒ}
|
sq¶n|
j ƒ} t
j d| ƒ} | s?q¶n|j tjƒ} |j tjƒ}|j tj-ƒ}'|
j.ƒ}(d})x(|!D] }*|'|*kr­|)d7})qŽPqŽWt
j d
| | ƒ}+|+rB|+j/ƒ},|+j0ƒ}-xZttt1|,ƒt1|-ƒƒƒD]4}.|,|.}/|-|.}0|#j$|/dƒ|0|#|/<qWn|sNq¶nd}1|jtjƒ}x_t|ƒD]Q}|jtj|ƒ}|sšqsnt|ƒ}2||2dkrs|2d}1PqsqsW|1sÔq¶nt
j2d dƒ}3t
j3d |    ƒ}4|4rÐxÏ|4D]Ä}5|5j4ƒ|'kr!Pn|5j5ƒ}6t|3|6ƒ}3|5j/ƒ},|5j0ƒ}-xWttt1|,ƒt1|-ƒƒƒD]4}.|,|.}/|-|.}0|#j$|/dƒ|0|#|/<qvW|5j.ƒ}7|7r|7}(qqWn|jtj6ƒ}8|jtj7ƒ}9xžtt|8|9|3ƒƒD]„}.|jtj6|.ƒ}:|jtj7|.ƒ};t
j d |:ƒ}<|<s[q n|<j8ƒ}/|<j9ƒ|;}0|#j$|/dƒ|0|#|/<q W|j:ƒr³t;|j:ƒƒni}=i|    d6|(d6|=d6|%t<|1ƒ<q¶Wi|$d6|%d6}>t j!d||#|>fƒ|"j=t>j?|#|>|ƒq‹WdS(NRRiiiÿÿÿÿs¸÷Ô¤Éè·½°¸ÉúЧµÄÉñÊÞ: %ss:    ÒƳýʧЧµÄ¿¨ÅÆË÷Òý: index=%s,presetID=%s,his=%s,new=%ss:    Ìí¼ÓÉúЧµÄ¿¨ÅÆË÷Òý: index=%s,presetID=%s,his=%s,new=%stBeastSetRÍRRþt BeastTalentR0tSkillIDtDatat AddPerTotalsÉñÊÞÊôÐÔ: presetID=%s,%s,%s(@tGetIDRYRZR R[R'R\R]R^RR R!R"RR RRát GetInitAddPert GetLVAddPerR£t GetStarAddPerRRRRReRªtNoneRçtkeysR”R˜R,R$RBRRjR-R«RdR/R®R    RER¹RºRt
GetSkillIDt GetAttrIDListtGetAttrValueListR¥RRRRRRt    GetAttrIDt GetAttrValueRRotstrt SetCalcAttrRtDef_CalcAttr_Beast(?RR™t indexItemDicttnewEffCardPresetDicttmaxEffCardDicttinLineupEffCardDictRbR9RERFRGR2R3RÑRWRñt
cardAddPerRˆRhR´Rit beastEffDicttaddPertupdPresetEffCardDicttlineupCardDicttupdEffCardDicttinLineupRgR³R thisEffPresetIDListtnewEffPresetIDListR·tskillLVUPBeastLVListtolPlayertattrDictt addPerTotalt    beastDictteffInfoRðtskillIDtskillLVtskillLVUPWhenLVtbeastLVIpyDatat
attrIDListt attrValueListtaIndextattrIDt    attrValueR¤t    valueInfoRRt soulIpyDataRt soulSkillIDRRR;R t    stIpyDatat    beastDatatspecDict((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR¸Ás@    !  
 
 
'  
+ 
 
       (
 
! 
    (
 
  $)cCs×|dkr|}nQg}tjƒ}x<t|jƒƒD](}|j|ƒ}|j|jƒƒq:W|spdSg}x|D]}tjd|ƒ}|s¡q}n|dkrÊ|j    t
j |ƒ rÊq}n|j ƒ}    t jƒ}
||
_|j    t
j |ƒd|
_g|
_x[|    dD]O} t jƒ} | | _t|| ƒ| _t|| ƒ| _|
jj| ƒqWt|
jƒ|
_|j|
ƒq}W|sœdSt jƒ} || _t| jƒ| _tj|| ƒdS(NRi
i(RÅR R&R'RÉRÊR,RËR!RRRIRNtChPyNetSendPackt
tagSCBeastR0t BookInitStatetSkinListttagSCBeastSkinRMRQtStateRVtStarR¥tSkinCntttagSCBeastInfot BeastInfoListtBeastCntt NetPackCommont SendFakePack(RRµtsyncBeastIDListR8R9Rt syncInfoListRFRGRRtbeastRPtskint
clientPack((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR›sH       #                    cCs5tjƒ}|jtjƒ|_tj||ƒdS(N(RñttagSCPlayerBeastInfoRRRtSoulRebirthCntRüRý(RR((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyRês cCsñtjƒ}g}xDtddƒD]3}|jtj|ƒ}|sHPn|j|ƒq"W|snt|ƒ}n|rzdnd|_||_    t
|j    ƒ|_ |jtj ƒ|_ |jtjƒ|_|jtjƒ|_tj||ƒdS(Nii
ii (RñttagSCBeastCallInfoR'RRRkR,R¾t IsRefreshRett CallRetListR¥tRetCntRt WishBeastIDR¤t
WishOutCntR©t WishCallCntRüRý(RR¡Rt callRetListRlRm((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyR    ñs"     (PR‹R R R‰RRñR¦RüRR¹R§R‘R—R$RRR”RR
RRRHR@RARQRURVRXRcRjRoRpR}RvRwR”RxR¾R­RªR¬RÖRÚRýRÅRáR˜RãRR'R)R/R+R0R8R6RCR@R?RTRPRXRORVRQRjRRrRsRŒRæR¥R R­RªRDR¸RRR    (((sjD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerBeast.pyt<module>s˜                                 ,                                                    1‚                    +        M      r             /         E     ^        P    $        "             `        K            G    -        F                Ú O