hxp
2018-10-15 0393ac03fff72ab69b9e20a701e7c9ac790f81ab
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
sdÄ[c@s¿ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Zed„Zd„Zd„Zd„Zd    „Z d
„Z!d „Z"d „Z#id „Z$d„Z%d„Z&dd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/dd„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6ddd „Z7ed!„Z8d"„Z9d#„Z:d$„Z;d%„Z<d&„Z=dd'„Z>dd(„Z?dd)„Z@d*„ZAd+„ZBdd,„ZCdS(-iÿÿÿÿNcCs-|jƒtjkr)tj|dƒtStS(NtGeRen_chenxin_436832(tGetPlayerActiontChConfigtDef_Player_DoEquip_Statet PlayerControlt
NotifyCodetFalsetTrue(t    curPlayer((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytCheckPlayerCanEquipItem/scCsßtj|ƒ}tj|ƒs"tStj|ƒs5tS|jƒ}|tjkrTtS|j    ƒ}d}d}d}    |j
ƒ}
|j ƒ} |j ƒ} |j ||ƒ} | dkr¸tS|jƒjtjƒ}|j| ƒ}t|||ƒ|jtjƒdkr)|jtjttjƒƒƒn| tjkrW|j|| ||    ||
ƒn| sptj|| ƒn|tjkrƒtS|j tj!tj"ƒ|tj#kr¸t$j%|ƒn
t&|ƒt'j'|ƒ}|j(ƒtS(Niiÿÿÿÿ()t ItemControlertPlayerItemControlert
ItemCommontCheckItemCanUseRtCheckItemCanUseByExpireTimet GetEquipPlacet ShareDefinet RoleEquipTypet GetItemTypeIDt GetUserDatatGetItemQualitytGetEndureReduceTypet    EquipItemtGetItemManagertGetPackt IPY_GameWorldtrptEquiptGetAttSetEquipItemSuiteLVInfot GetUserAttrtDef_IudetCreateTimet SetUserAttrtintttimeRtDef_SyncEquipStateByIndext ChangeEquipt
EventShelltEventRespons_EquipByPlacetEquipItemNoRefreshStateRtSetDictt Def_PlayerKey_AttrActivatyNotifytDef_AttrActivatyNotify_EquiptretWingt
PlayerWingt CalcWingAttrtRefreshPlayerEquipAttributeRtRefreshPlayerAttrState(RtcurItemtpackEquipIndextticktplayerItemControltchangeItemEquipPlacet changeItemIDtchangeItemStarLVtchangeItemStoneCnttchangeItemHoleCnttchangeItemUseDatat itemQualitytendureReduceTypet
equipPlacet    equipPacktcurEquipt playControl((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytDoPlayerEquipItem?sH      "    
 
c
Cs4| s|jƒrdSt}tjdƒ}x*|jƒD]}||kr9t}Pq9q9W|scdSt|||ƒ}|jtj    ƒ}|rót
|ƒ|króxŽt |ƒD]@\}}    |j tj    |ƒ|    kr¬|j tj    ||    ƒq¬q¬Wn=|r |jtj    ƒnx!|D]}    |jtj    |    ƒqWdS(Nt EquipSuitType(tIsEmptyRt IpyGameDataPYtGetFuncEvalCfgtvaluesRtGetEquipPartSuiteLVListtGetUserAttrCountRtDef_IudetPartSuiteLVtlent    enumeratetGetUserAttrByIndextUpdataUserAttrByIndext ClearUserAttrt AddUserAttr(
Rt
equipIndexR/t isSuiteParttequipSuitTypeDicttequipIndexListt suiteLVListt    attrCounttitsuiteLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRs*   cCs%tjdƒt|ƒt|ƒdS(Ns$Start RefreshPlayerEquipAttribute!!!(t    GameWorldtDebugLogt__CalcEquips_EffecttCalcAllEquipStarsAttr(RtisRefreshEquipBuff((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR-®s 
 
cCstjtƒ||ƒdS(N(RVt GetPsycoFunct__Func_PlayerEquipItem(tindexR1((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytPlayerEquipItemscCs©tjƒj|ƒ}tjƒ}|jƒ}|jƒ}t|ƒsIdS|jƒj    tj
ƒ}|j |ƒ}t ||||ƒr‰dS|j tj
|tjdƒdS(Ni(RVtGetPlayerManagertGetPlayerByIndexRtIPY_CEquipItemt GetItemIndextGetRoleEquipTypeR    RRtrptItemRR?tNotify_ItemPutFailR(R]R1RtsendPackt packItemIndexR0trolePackR/((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR\s     cCsdS(N((R]R1((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytOneKeyChangeEquip?scCstjtƒ||ƒdS(N(RVR[t__Func_PlayerUnEquip(R]R1((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyt PlayerUnEquipHsc
Cs tjƒ}tjƒj|ƒ}t|ƒs1dS|jƒ}tj|ƒ}|j    ||j
ƒƒ}|sndS|d}|d}|t j kr¥|j ||ƒdS|tjkrÄtj|ƒn
t|ƒtj|ƒ}    |    jƒ|t jkr    |j ||ƒndS(Nii(RtIPY_CUnEquipItemRVR_R`R    t GetEquipIndexR
R t UnEquipItemt GetPackIndexRR&tSync_UnEquipItemRR*R+R,R-RR.R"(
R]R1RfRRNR2tresulttequipIDR;R>((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRjRs,   
 
 
 
cCsêtjƒ}tjƒj|ƒ}tj|tjtj    ƒs@dSt
j |ƒsSdS|j ƒj tjƒ}|jƒ}|j|ƒ}tj|ƒs™dStj||ƒr¯dStj|ƒrÒtj|dƒdStj|dƒdSdS(NtTaskRestGeRen_chenxin_774045(Rt IPY_CUseEquipRVR_R`tOperControlManagertIsObjCanDoActionRtDef_Obj_ActState_ClientActt
oalUseItemtChItemtCheckUseItemSelf_PlayerRRRRmRR R tFBLogictDoFBForbidUseItemR
t IsEventItemRR(R]R1RfRt roleEquipPackRNR=((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyt__Func_PlayerUseEquipSelf‰s,   c'CsÈi}gtdƒD] }i^q}gtdƒD] }i^q2}gtdƒD] }i^qQ}gtdƒD] }i^qp}gtdƒD] }i^q}gtdƒD] }i^q®}gtdƒD] }i^qÍ}    gtdƒD] }i^qì}
gtdƒD] }i^q } tj} |jƒj| ƒ} tjj| gƒ}tj    ddƒ}g}i}i}xµt
| j ƒƒD]¡}|t j kr¢q‡n|t jkr·q‡n| j|ƒ}|jƒrØq‡ntj|ƒsíq‡n|j|ƒx    td|jƒƒD]ò}|j|ƒ}|s/Pn|jƒ}|dkrKPn|jdƒ}|sfqn|tjkr‹tj|||ƒn]|tjkr°tj|||ƒn8|tjkrÕtj|||ƒntj|||ƒ|j|dƒ|||<qWt||ƒ}x“td|dƒD]~}t|||ƒ}|r)tj ||||ƒ}t!||ƒ}|r§d|||f}|j|dƒd||<q§q)q)Wt"|||ƒ||kròt#|| ||ƒ}t$||||ƒnt%||||ƒt&||| ƒt'j(|||
ƒq‡Wt'j)|||
ƒt*|||    ƒtj+|tj,|ƒtj+|tj-|ƒtj+|tj.|ƒtj+|tj/|ƒtj+|tj0|ƒtj+|tj1|ƒtj+|tj2|    ƒtj+|tj3|
ƒtj+|tj4| ƒ|j5ƒ} |jt j6dƒ}!|jt j7dƒ|!}"|jt j8dƒ|!}#|jt j9dƒ}$|jt j:dƒ}%t;tj<ddƒƒ}&|j=tj>t j?|&ƒdS(NitEquipSuitColorStariiis%s_%s_%stFightpowerFormula(@trangeRRRRRtPack_EquipPart_CanPlusStartgetRBt
GetFuncCfgtxrangetGetCountRRR*RRAR RtappendtGetEffectCounttGetEffectByIndext GetEffectIDtGetEffectValuetBaseEquipPlace_WeaponRtCalcAttrDict_TypetBaseEquipPlace_ArmortBaseEquipPlace_RelicstGetEquipPartSuiteGroupTypetGetEquipPartSuiteLVtOperate_EquipSuitComposetGetEquipCanDoMaxSuiteLVtmintCalcEquipStone_EffecttGetEquipPartStarLVByRanktCalcAttr_ItemPlustCalcAttr_LegendAttrtCalcAttr_OutOfPrintAttrtOperate_EquipWashtCalcAttr_EquipWashtCalcAttr_EquipWashSpectCalcEquipSuiteAttrtSetCalcAttrListValuet Def_CalcAttrFunc_EquipBaseWeapontDef_CalcAttrFunc_EquipBaseArmort Def_CalcAttrFunc_EquipBaseRelicstDef_CalcAttrFunc_EquiptDef_CalcAttrFunc_PlusBasetDef_CalcAttrFunc_StonetDef_CalcAttrFunc_SuittDef_CalcAttrFunc_Washt Def_CalcAttrFunc_EquipOutOfPrinttGetLVtDef_Effect_AtktDef_Effect_MinAtktDef_Effect_MaxAtktDef_Effect_MaxHPtDef_Effect_DeftevaltGetFuncCompileCfgR'tDef_PlayerKey_MFPExtDef_MFPType_Equip('RtbaseEquipAttrDictt_tbaseEquipAttr_WeapontbaseEquipAttr_ArmortbaseEquipAttr_RelicstallAttrListEquiptallAttrListPlusBasetallAttrListStonetallAttrListSuittallAttrListWashtallAttrListOutOfPrintEquiptpackTypet playerEquiptequipPartStarIndexListt maxSuiteTypetequipPlaceListt suitCntDicttlegendAttrDictRNR=RTt    curEffectteffectIDt effectValuet    groupTypet    suiteTypetsuitelvt
maxSuiteLVRUtsuiteKeytequipPartStarLVtLVtAtktMinAtktMaxAtktMaxHPtDeft fightPowerEx((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRX³s¤        $  c    CsÕgt|jtjƒƒD]}|jtj|ƒ^q}gt|jtjƒƒD]}|jtj|ƒ^qS}| s“t|ƒt|ƒkr—dSx7t|ƒD])\}}||}tj    |||ƒq¤WdS(N(
RƒRFRtDef_IudetLegendAttrIDRJtDef_IudetLegendAttrValueRHRIRR(    RR=R¹RÅRTtlegendAttrIDListtlegendAttrValueListtattrIDtvalue((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRš-s77
c
Csgt|jtjƒƒD]}|jtj|ƒ^q}gt|jtjƒƒD]}|jtj|ƒ^qS}| s“t|ƒt|ƒkr—dS|jƒ}xft|ƒD]X\}}||}t    t
j ddƒƒ}    t j d||    fƒtj||    |ƒq°WdS(NtOutOfPrintValueis¼Ó¾ø°æÊôÐÔ: %s +%s(RƒRFRtDef_IudetOutOfPrintAttrIDRJtDef_IudetOutOfPrintAttrValueRHRªRIR°RBR±RVRWRR(
RR=R¾RTtOutOfPrintAttrIDListtOutOfPrintAttrValueListtlvRÚt maxOOPValueRÛ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR›Ds77 
cCsägtdƒD] }i^q }tj}|jƒj|ƒ}xŠt|jƒƒD]v}|tjkrkqPn|tj    kr€qPn|j
|ƒ}|j ƒr¡qPnt j |ƒs¶qPnt|||ƒqPWtj|tj|ƒdS(Ni(RƒRRRRR‡RˆRRR*RRAR RR›RR RR©(RRµR¾R¿RÀRNR=((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytCalcEquips_OutOfPrint\s      c
Cs–|s
dSt|ƒ}|dkr&dStjd||ƒ}|sEdS|jƒ|jƒ}}x1t|ƒD]#\}}    tj|    |||ƒqkWdS(NtItemPlus(    tGetEquipPlusTypetNoneRBtGetIpyGameDatat GetAttrTypet GetAttrValueRIRR(
RR=t allAttrListRÎtplusTypetipyDatat attrTypeListt attrValueListRTRÚ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR™s  c Csfd}d}|jtjƒ}tjdƒ\}}xÍ|D]Å}|d}    d}
|    dkre|}
n|    dkrz|}
n|d} |
| kr:t||dƒ|    dkrÑ| |krÑ|tjkrÑ| }n|    dkrò| |krò| }n|sÿPqÿq:q:W|jtjƒ} |dkrO|| krOtj    |d|j
ƒ|gƒn|j tj|ƒdS(NitEquipQualityAddAttriitGeRen_hgg_917284( t GetDictByKeyRR(t ReadChConfigtGetEvalChConfigt EquipAddBuffR)t(Def_PlayerKey_AttrActivatyRecordSuiteCntRRt GetPlayerNameR'( RtqualityEquipCntt suiteEquipCnttsuiteCntRecordtnotifySuiteCntt
notifyTypetisAllt addAttrListtconfInfot confQualitytcnttconfCnttlastSuiteCntRecord((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytAddEquipsQualityBuff’s6 
          
            c
Cs²t|tƒ}|jtjƒ}t||ƒ}tjdd|ƒ}|sOiS|jƒ}|j    ƒ}i}x>t
|ƒD]0\}}||}    |j |dƒ|    ||<qzW|S(NtItemPlusSumAttrt PlusCntNeedi( tGetTotalPlusLVRtNomalDictGetPropertyRtDef_PDict_EquipActiveStarLVR–RBtInterpolationSearchRèRéRIR…(
RttotalLVtactiveLVRìRíRîtattrDictRTRÚRÛ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytCalcAllEquipAllPlusLVAttr¸s  
c    CsÙgtdƒD] }i^q }t|ƒ}|jtjƒ}t||ƒ}|r¿tjdd|ƒ}|r¿|jƒ}|j    ƒ}x4t
|ƒD]#\}}t j ||||ƒq’Wq¿nt j |tj|ƒdS(NitRoleEquipStarst    StarsNeed(RƒtGetTotalEquipStarsRRtDef_PDict_EquipActiveStarsR–RBR    RèRéRIRRR tDef_CalcAttrFunc_EquipAllStars(    RRTRêt
totalStarst activeStarsRìRíRîRÚ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRYÎs   !cCsFd}|jƒ}|jƒ}x!|jƒD]\}}|jdƒ\}}    }
t|
ƒ}
|dkrmdn|} tjdt|ƒt|    ƒt|
ƒ| ƒ} | s¬q+nx¸td|dƒD]£} d| }d| }d    | }t| |ƒƒ}||krÀt| |ƒƒ}t| |ƒƒ}x:t    |ƒD])\}}||}t
j |||ƒq3WqÀqÀW|||
||    g}|j t j||    |fƒ}|td
|
ƒ@s+|d krò|d krt
jdd |ƒ|td
|
ƒO}qn&t
jdd |ƒ|td
|
ƒO}t
j|t j||    |f|ƒq+q+WdS(NiRµt2it EquipSuitAttris
GetCount%ds GetAttrType%dsGetAttrValue%dit1it
EquipSuit5(tGetJobtGetNametitemstsplitR RBRçRƒtgetattrRIRRRRtDef_PDict_EquipPartSuiteNotifytpowt WorldNotifytNomalDictSetProperty(RRÄR¹tDef_EquipSuitMaxCounttmyjobtnameRÍRRÉRÊRUtjobRìRTt countKeyNametattrTypeKeyNametattrValueKeyNametneedCntRíRîtjRÚRÛt    paramListt notifyRecord((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRŸâs@   -
 
 
 
  *cCs8|jtjƒ}|tjkr4tj||ƒndS(N(RñRR(R)R$tEventRespons_OrangeQualityCnt(RtorangeQualityCntRû((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytOnOrangeQualityCntChange scCstj||ƒdS(N(t
SkillShelltRefreshSkillBuffByEquip(RR=((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytCalcCurEquip_SkillBuffsc Csîtjƒ}ddddg}xÉtjƒD]»}tj|||ƒd}|dkr\q+n|j|ƒ}|sˆtjd|ƒq+nx[|D]S}|j|ƒ}    |    jƒ|    j    dƒ}
} |
r| rt
j |
| |ƒqqWq+WdS(Niiiiis#equip stone id:%s not in item table( RVt GetGameDatatOperate_EquipStonetGetAllEquipPlaceHoleIndextGetEquipIndexStoneIDAndIsBandtGetItemByTypeIDtErrLogR‹RŒRRR( RRNRêtgameDatat effIndexListt    holeIndextcurGemIDtcurGemteffIndext curGemEffectRÇRÈ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR—s     icCsa|jƒj|dtƒ}|j|jƒƒ|j|jƒƒ|dkr]|j|ƒndS(Ni(t GetEquipBufftAddBuffRt
SetOwnerIDtGetIDt SetOwnerTypetGetGameObjTypetSetValue(Rt
addSkillIDRÛtcurBuff((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRô;s  cCs{tjƒj|ƒ}tjtj}||jtjƒ|krEdStjƒ}|j    |j
ƒƒ|j tj|ƒdS(N( RVR_R`RtTYPE_Player_Tick_Timet%TYPE_Player_Tick_RequestEquipShowHidet GetTickByTypeRtIPY_CRequestEquipShowHidetSetEquipShowSwitchtGetEquipShowSwitcht SetTickByType(R]R1RtintervalRf((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytRequestEquipShowHideNs cCs|jtj||fƒS(N(RRtDef_PDict_EquipPartProficiency(RR¿R]((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetEquipPartProficiencyascCs$tj|tj||f|ƒdS(N(RR!RRR(RR¿R]RÛ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartProficiencyescCs2tj|ƒ}t|jtj||fƒ|ƒS(N(R tGetItemMaxStarLVR–RRtDef_PDict_EquipPartStarLV(RR¿R]R=t    maxStarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR˜jscCs|jtj||fƒS(N(RRRV(RR¿R]((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetEquipPartStarLVpscCs@t|||ƒ|krdStj|tj||f|ƒdS(N(RXRR!RRV(RR¿R]R=tstarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartStarLVus cCs#tjƒ}|jƒg|_xÛtjjƒD]Ê\}}|dkrY||krYq/nx|D]•}|dkr“|dkr“||kr“q`q“ntjƒ}|jƒ||_    ||_
t |||ƒ|_ t |||ƒ|_|jj|ƒq`Wq/Wt|jƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCEquipPartStarLVInfotCleartInfoListRR„RRættagMCEquipPartStarLVtPackTypet
EquipIndexRXtEquipPartStarLVRSt ProficiencyR‰RHtCountt NetPackCommont SendFakePack(RR¿R]tePartStarLVPacktpTypet    indexListRTt ePartStarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytNotifyEquipPartStarLV‚s( 
           
        cCs“d}|jƒjtjƒ}tjtj}x^|D]V}|rl|j|ƒ}| s5|jƒrlq5qlnt|tj|ƒ}||7}q5W|S(Ni(    RRRRRR„RRARX(RtisActivet totalPlusLVR<tequipPartIndexListRTR=t
partStarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRŸs     cCsnd}|jƒjtjƒ}xItjD]>}|j|ƒ}| s(|jƒrVq(n||jƒ7}q(W|S(Ni(    RRRRRtBaseEquipPlaceListRRAR(RttotalEquipStarsR<RTR=((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR®scCsE|jƒ}tjddƒ}|s5tjdƒdS|j|dƒS(NtStrengthenLevelLimitisûÓÐÇ¿»¯ÀàÐÍÓ³Éä±íiÿÿÿÿ(RRBRCRVR8R…(R=R;t plusTypeDict((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRå¹s   cCsUtj|tj||f|ƒ|jƒjtjƒ}t|||j    |ƒƒdS(N(
RR!RtDef_PDict_EquipPartSuiteLVRRRRRR(RR]RÊRUR<((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartSuiteLVÂs cCs|jtj||fƒS(N(RRRt(RR]RÊ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR“ÉscCsRd}tjdƒ}x6|jƒD](\}}||kr"t|ƒ}Pq"q"W|S(NiR@(RBRCRR (RRNt findGroupTypeRPRÉRi((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR’Ís  cCstjƒ}|jƒg|_tjdƒ}x«|jƒD]}x”|D]Œ}|dkrl||krlqHntjƒ}|jƒ||_    t
||ƒ}t j |dt ƒ|_t|jƒ|_|jj|ƒqHWq;Wt|jƒ|_tj||ƒdS(NR@t ensure_ascii(R[ttagMCEquipPartSuiteLVInfoR]R^RBRCRDRættagMCEquipPartSuiteLVRatGetSuiteInfoByPlacetjsontdumpsRt SuiteLVInfoRHtLenR‰RdReRf(RR]tePartSuitePackRPRQRTtePartSuiteInfot    suiteInfo((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytNotifyEquipPartSuiteLVÙs$ 
      
    c    Csži}t||ƒ}tjddƒ}xptd|dƒD][}t|||ƒ}|r;|r‰tj||||ƒ}t||ƒ}n|||<q;q;W|S(NRii(R’RBR†RƒR“R”R•R–(    RR;R=RRÉRÂRÊRURÌ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRzïsc    Csžt||ƒ}g}tjddƒ}xptd|dƒD][}t|||ƒ}|r‰|r‰tj||||ƒ}t||ƒ}n|j|ƒq;W|S(NRii(    R’RBR†R‡R“R”R•R–R‰(    RR;R=RÉRRRÂRÊRURÌ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyREüs cCs­|s
gS|jƒ}g}|jƒjtjƒ}xrtd|jƒƒD][}|tjkreqJn|j    |ƒ}|j
ƒr†qJn|j |j ƒ|ddgƒqJW|S(Ni( t GetPlayerIDRRRRR‡RˆRRRRAR‰R(RtplayerIDtplayerEquipListRÀRNR=((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetPlayerEquipView s  #c    Cs÷tjƒj|ƒ}|j}|j}|dkr?tj}n|dkrWtj}ndS|j|ƒ}||kr”tj    d|||fƒdSt
j |||ƒt ||ƒ|dkrÐt j|ƒn
t|ƒt
j
|ƒ}|jƒdS(NiisF    È«ÉíÊôÐÔ¼¤»î ¸ÃÊýÁ¿ÒѼ¤»î¹ý£¡ activeType=%s,activeCnt=%s,curCnt=%s(RVR_R`tTypetCntRRRRtLogRR!tSyncAllEquipAttrActiveInfotPlayerMagicWeapontCalcMagicWeaponSoulAttrR-R.(    R]t
clientDataR1Rt
activeTypet    activeCnttkeytcurCntR>((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytOnActiveAllEquipAttr.s(               
 
cCsátjƒ}g|_x£ddgD]•}|dkrF||krFq"n|dkr^tj}n|dkrvtj}ndS|j|ƒ}tjƒ}||_||_    |jj
|ƒq"Wt |jƒ|_ t j||ƒdS(Niiiÿÿÿÿ(R[ttagMCAllEquipAttrActiveInfot
ActiveInfoRRRRttagMCEquipActiveInfoR‡RˆR‰RHRdReRf(RRŽtpackDatataTypeRR‘t
activeInfo((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRŠJs$                  (DRRVR
R0RRRzR R|RòRvRœRt
PyMapTableR[ReR$RBR+R4R”R‹R!R{R    R?RRR-R^R\RiRkRjR€RXRšR›RãRæR™RR RYRŸR/R2R—RôRQRSRTR˜RXRZRkRRRåRuR“R’R‚RzRER†R’RŠ(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyt<module>s‚                                N    ! a            '            
    7    *    z         #     &            )                                                                           "