cehua-TT
2019-01-02 a36021600832cb61eb1cfa29e83b2330c3abd129
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
V˜á[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=d'„Z>dd(„Z?dd)„Z@dd*„ZAd+„ZBd,„ZCdd-„ZDdS(.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"Csdi}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}d}xÈt
| j ƒƒD]´}|t j kr¨qn|t jkr½qn| j|ƒ}|jƒrÞqntj|ƒsóqn|j|ƒ|tj|ƒ7}x    td|jƒƒD]ò}|j|ƒ}|sHPn|jƒ}|dkrdPn|jdƒ}|sq)n|tjkr¤tj|||ƒn]|tjkrÉtj|||ƒn8|tjkrîtj|||ƒntj|||ƒ|j|dƒ|||<q)Wt||ƒ}x“td|dƒD]~}t|||ƒ}|rBt j!||||ƒ}t"||ƒ}|rÀd|||f}|j|dƒd||<qÀqBqBWt#|||ƒ||kr t$|| ||ƒ} t%|||| ƒnt&||||ƒt'||| ƒt(j)|||
ƒqWt(j*|||
ƒt+|||    ƒtj,|tj-|ƒtj,|tj.|ƒtj,|tj/|ƒtj,|tj0|ƒtj,|tj1|ƒtj,|tj2|ƒtj,|tj3|    ƒtj,|tj4|
ƒtj,|tj5| ƒt6tj7ddƒƒ}!|j8tj9t j:|!ƒdS(NitEquipSuitColorStariiis%s_%s_%stFightpowerFormula(;trangeRRRRRtPack_EquipPart_CanPlusStartgetRBt
GetFuncCfgtxrangetGetCountRRR*RRAR RtappendtGetEquipGearScoretGetEffectCounttGetEffectByIndext 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_EquipOutOfPrinttevaltGetFuncCompileCfgR'tDef_PlayerKey_MFPExtDef_MFPType_Equip("RtbaseEquipAttrDictt_tbaseEquipAttr_WeapontbaseEquipAttr_ArmortbaseEquipAttr_RelicstallAttrListEquiptallAttrListPlusBasetallAttrListStonetallAttrListSuittallAttrListWashtallAttrListOutOfPrintEquiptpackTypet playerEquiptequipPartStarIndexListt maxSuiteTypetequipPlaceListt suitCntDicttlegendAttrDicttequipScoreTotalRNR=RTt    curEffectteffectIDt effectValuet    groupTypet    suiteTypetsuitelvt
maxSuiteLVRUtsuiteKeytequipPartStarLVtequipFightPowerEx((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_IudetOutOfPrintAttrValueRHtGetLVRIR«RBR¬RVRWRR(
RR=R¹RTtOutOfPrintAttrIDListtOutOfPrintAttrValueListtlvRÐt maxOOPValueRÑ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyRœAs77 
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_OutOfPrintYs      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ƒtGetTotalEquipStarsRþRtDef_PDict_EquipActiveStarsR—RBRRß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   !cCsLd}|jƒ}|jƒ}x'|jƒD]\}}|jdƒ\}}    }
t|
ƒ}
|tjkrpdn|} tjdt|ƒt|    ƒt|
ƒ| ƒ} | s¯q+nx¸t    d|dƒD]£} d| }d| }d| }t
| |ƒƒ}||krÃt
| |ƒƒ}t
| |ƒƒ}x:t |ƒD])\}}||}t j |||ƒq6WqÃqÃW|||
||    g}|jtj||    |fƒ}|td    |
ƒ@s+|tjkrø|d
krt jdd |ƒ|td    |
ƒO}qn&t jdd |ƒ|td    |
ƒO}t j|tj||    |f|ƒq+q+WdS( NiR°it EquipSuitAttris
GetCount%ds GetAttrType%dsGetAttrValue%diit
EquipSuit5(tGetJobtGetNametitemstsplitR RtEquipGroupType_RelicsRBRÞRƒtgetattrRIRRRþtDef_PDict_EquipPartSuiteNotifytpowtEquipGroupType_Armort WorldNotifytNomalDictSetProperty(RR¿R´tDef_EquipSuitMaxCounttmyjobtnameRÉR÷RÅ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.pytOnOrangeQualityCntChangescCstj||ƒ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ë8s  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.pytRequestEquipShowHideKs cCs|jtj||fƒS(N(RþRtDef_PDict_EquipPartProficiency(RRºR]((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetEquipPartProficiency^scCs$tj|tj||f|ƒdS(N(RRRRI(RRºR]RÑ((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartProficiencybscCs2tj|ƒ}t|jtj||fƒ|ƒS(N(R tGetItemMaxStarLVR—RþRtDef_PDict_EquipPartStarLV(RRºR]R=t    maxStarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR™gscCs|jtj||fƒS(N(RþRRM(RRºR]((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetEquipPartStarLVmscCs@t|||ƒ|krdStj|tj||f|ƒdS(N(RORRRRM(RRºR]R=tstarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartStarLVrs 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
EquipIndexROtEquipPartStarLVRJt ProficiencyR‰RHtCountt NetPackCommont SendFakePack(RRºR]tePartStarLVPacktpTypet    indexListRTt ePartStarLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytNotifyEquipPartStarLVs( 
           
        cCs“d}|jƒjtjƒ}tjtj}x^|D]V}|rl|j|ƒ}| s5|jƒrlq5qlnt|tj|ƒ}||7}q5W|S(Ni(    RRRRRR„RRARO(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ÿÿÿÿ(RRBRCRVR/R…(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(
RRRtDef_PDict_EquipPartSuiteLVRRRRRR(RR]RÆRUR<((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytSetEquipPartSuiteLV¿s cCs|jtj||fƒS(N(RþRRk(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ÅR`((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR“Ês  c    Cs®d}tjdƒ}||kr%dSt||ƒ}d}xL||D]@}t|||ƒ}|dkrw|d7}nt||ƒ}qFW||kršdS|dkrªdS|S(NiçR@ii(RBRCRHR”R—(    RtsuitTypeRÅRURPtmaxCntR÷R;t
curSuiteLV((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pytGetEquipSuitsLVByTypeÕ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(RRttagMCEquipPartSuiteLVInfoRTRURBRCRDRÝttagMCEquipPartSuiteLVRXtGetSuiteInfoByPlacetjsontdumpsRt SuiteLVInfoRHtLenR‰R[R\R](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.pyRuþ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.pytGetPlayerEquipViews  #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`tTypetCntRRÿRRþtLogRRtSyncAllEquipAttrActiveInfotPlayerMagicWeapontCalcMagicWeaponSoulAttrR-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ÿÿÿÿ(RRttagMCAllEquipAttrActiveInfot
ActiveInfoRRÿRRþttagMCEquipActiveInfoR‚RƒR‰RHR[R\R](RR‰tpackDatataTypeR‹RŒt
activeInfo((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyR…Ys$                  (ERRVR
R'RRRzR R|RéRvRRt
PyMapTableRRR\R$RBR+R+R•R†R!RvR    R?RRR-R^R\RiRkRjR€RXR›RœRÚRÝRšRúRRYR R&R)R˜RëRHRJRKR™RORQRbRýRRÜRlR”R“RqR}RuRERRR…(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\ChEquip.pyt<module>s„                                N    ! a            '            
    7    *    w         #     &            )                                                                                "