cehua-HWJ35
2019-01-23 ef27fb890fcada845b648d8c8c4b83a880f68ebe
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
åH\c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „ZdS( iÿÿÿÿNcCs |ddS(Niix((t
equipPlace((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytGetZhuXianEquipIndexByPlace#scCs |ddS(Niix((t
equipIndex((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytGetZhuXianEquipPlaceByIndex(scCsct|ƒ}tjddiƒ}t|ƒ|kr7tS|t|ƒ}|jtjƒ}||kS(Nt EquipZhuXiani(Rt IpyGameDataPYtGetFuncEvalCfgtstrtTruetNomalDictGetPropertytChConfigt"Def_Player_Dict_ZhuXianTowerPassLV(t    curPlayertequipPlaceIndexRtplaceUnlockDictt needTowerLVt
curTowerLV((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pyt!GetZhuXianEquipPlaceIndexIsUnlock-s c Cs(tjddiƒ}t|ƒ|kr+tS|t|ƒ}|jƒjtjƒ}xÎ|jƒD]À\}}t    |ƒ}x¥|D]}t
|ƒ}    |    dks¯|    |j ƒkr³dS|j |    ƒ}
|
j ƒrãtjd|ƒdStj|
ƒ} | |krtjd|| |fƒdSqWq`WtS(NRiis-ÖïÏÉ×°±¸Î»ÎÞ×°±¸£¬ÎÞ·¨¼¤»îÉñ¼¼! equipPlace=%ssRÖïÏÉ×°±¸Î»×°±¸½×¼¶²»×㣬ÎÞ·¨¼¤»îÉñ¼¼! equipPlace=%s,curClassLV=%s < needClassLV=%s(RRRRtGetItemManagertGetPackt ShareDefinetrptZhuXianEquiptitemstintRtGetCounttGetAttIsEmptyt    GameWorldtDebugLogt
ItemCommontGetItemClassLV( R tskillIDtzhuxianSkillConditiontclassLVPlaceListDicttzhuXianEquipPacktclassLVt    placeListt needClassLVRt
placeIndextcurEquipt
curClassLV((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytCheckLearnZhuXianSkill9s(      cCsštjƒj|ƒ}|jƒ}|j}|j}tjd||f|ƒ|jƒjt    j
ƒ}|j |ƒ}t j |ƒs›tjd||ƒdSt j|ƒsÂtjd||ƒdS|jƒ}    t|    ƒ}
||
krXt|ƒ} t} x3t    jD](} | | kr|    | krt} PqqW| sXtjd|    |
|f|ƒdSn|jƒjt    jƒ}|dksŽ||jƒkr¦tjd||ƒdSt||ƒsÐtjd|    |fƒdS|j |ƒ}|jƒr÷ddgn|jƒ|jƒg\}}|jƒ|jƒ}}t j|||t    jƒsMdSid    d
6|d 6|d 6|d 6|d6}tj|tj |ƒt!|ƒdS(Ns(´©´÷ÖïÏÉ×°±¸: EquipIndex=%s,ItemIndex=%ssÎïÆ·Îª¿Õ»ò²»¿ÉÓÃ: itemIndex=%ss·ÇÖïÏÉ×°±¸: itemIndex=%ssP¸Ã×°±¸Î»²»¿É×°±¸¸ÃÎïÆ·!equipPlace=%s,equipPlaceIndex=%s != reqEquipPlaceIndex=%sis#ÖïÏÉ×°±¸±³°üË÷ÒýÒì³£: EquipIndex=%ss-ÖïÏÉ×°±¸Î»Î´½âËø: equipPlace=%s,EquipIndex=%sttEquipZhuXianItemtdotypet    desItemIDt desUserDatat    srcItemIDt srcUserData("RtGetPlayerManagertGetPlayerByIndext GetPlayerIDt
EquipIndext    ItemIndexRRRRtrptZhuXianItemRRtCheckItemCanUsetGetIsZhuXianEquipt GetEquipPlaceRRtFalsetShareEquipPlaceRRRtErrLogRRt GetItemTypeIDt GetUserDatatDoLogicSwitchItemtDataRecordPacktCache_FightPowerChangeInfoR
tPowerDownType_EquipChangetRefreshZhuXianAttr(tindext
clientDatattickR tplayerIDtreqEquipPlaceIndext    itemIndextzhuXianItemPackR'RR t reqEquipPlacetcanPlacetsharePlaceListR"t    destEquipR-R.R/R0tdataDict((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytOnEquipZhuXianItem[sR             6)
c    Cstjƒj|ƒ}|jƒ}|j}tjd||ƒ|jƒjtj    ƒ}|dkst||j
ƒkrŒtj d||ƒdS|j |ƒ}t j|ƒsÂtjd||ƒdSt j|tjƒ}t j|tj    tj||ƒstjd||ƒdSt|ƒdS(NsжÏÂÖïÏÉ×°±¸: EquipIndex=%sis#ÖïÏÉ×°±¸±³°üË÷ÒýÒì³£: EquipIndex=%ss#ÖïÏÉ×°±¸Îª¿Õ»ò²»¿ÉÓÃ: EquipIndex=%ssÖïÏÉжÏÂ×°±¸Ê§°Ü: EquipIndex=%s(RR1R2R3R4RRRRRRR<RRR7tGetEmptyIndexInPackR6tDoLogicSwitchItemExRC(    RDRERFR RGR4R"R't
emptyIndex((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytOnUnEquipZhuXianItem•s$     !
cCs!t|ƒtj|ƒjƒdS(N(tCalcZhuXianAttrt PlayerControltRefreshPlayerAttrState(R ((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pyRC­s
c1Cs7|jƒ}tjj|dƒtjj|dƒgtdƒD] }i^q?}gtdƒD] }i^q^}d}i}i}tjddiƒ}tt    j
t    j dƒ}    tt    j t    j dƒ}
i} |jƒjt    jƒ} | jƒ} xättt    jƒƒD]Í}|dks'|| kr+Pn| j|ƒ}|jƒrLq    n|tj|ƒ7}t|ƒ}tj|ƒ||<i}x•t|jƒƒD]}|j|ƒ}| sÀ|jƒ rÄPn|jƒ}|sÜq—n|jdƒ}tj |||ƒ|j!|dƒ|||<q—W|||<|j"t    j#ƒ|j"t    j$ƒkr    x‰t|j"t    j#ƒƒD]l}|j%t    j#|ƒ}|j%t    j$|ƒ}||kr¼| j!|dƒ|| |<qctj |||ƒqcWq    q    Wx½| j&ƒD]¯\}}||krqçn||}x„|D]|}||    krWtjj!|iƒ}|||<|tj|<q||
krtjj!|iƒ}|||<|tj|<qqWqçWit    j't    j(6t    j)t    j*6t    j+t    j,6t    j-t    j.6t    j/t    j06t    j1t    j26}tjddiƒ} x¸| j&ƒD]ª\}!}"t3|!ƒ}!d}#t4}$xJ|"D]B}%|%|krWt5}$Pn|#sj||%}#q;t6|#||%ƒ}#q;W|$ s|# r•qnt7j8d|!|#fƒtj9d|!|#ƒ}&|&sÍqn|&j:ƒ}'|&j;ƒ}(t|'ƒt|(ƒkrqnx´t<|'ƒD]¦\}})|(|}*|)|kr£||)}+|+|krNqn||+},x[|,j&ƒD]7\}-}.t3|.d    |*d
ƒ}/tj |-|/|ƒqeWqtj |)|*|ƒqWqWtj=|t>j?|ƒtj=|t>j@|ƒtAtjBd dƒƒ}0t7j8d ||0fƒ|jCt>jDt    jE|0ƒdS( NiitSkillPlusAttrIDiRis(    ¼¤»îÖïÏÉÌ××°: suitType=%s, suitLV=%stZhuXianSuitAttri'gˆÃ@tFightpowerFormulas9ÖïÏÉ×°±¸ÆÀ·ÖÕ½Á¦: equipScoreTotal=%s,equipFightPowerEx=%s(FR3t
PyGameDatatg_zhuXianSkillAddPerDicttpoptNonetg_zhuXianSkillReducePerDicttrangeRRRtDef_Effect_SkillAddPer1tDef_Effect_SkillAddPer7tDef_Effect_SkillReducePer1tDef_Effect_SkillReducePer7RRRRtlentZhuXianEquipPlaceRRRtGetEquipGearScoreRRtxrangetGetEffectCounttGetEffectByIndext GetEffectIDtGetEffectValueRVtCalcAttrDict_TypetgettGetUserAttrCounttDef_IudetLegendAttrIDtDef_IudetLegendAttrValuetGetUserAttrByIndexRt    zxetCloaktDef_Effect_ZXCloakAttrPertzxetMasktDef_Effect_ZXMaskAttrPert    zxetGlovetDef_Effect_ZXGloveAttrPertzxetRuyitDef_Effect_ZXRuyiAttrPert zxetPendanttDef_Effect_ZXPendantAttrPertzxetRingtDef_Effect_ZXRingAttrPerRRR:tminRRtGetIpyGameDatatGetSuitAttrIDListtGetSuitAttrValueListt    enumeratetSetCalcAttrListValueR
tDef_CalcAttrFunc_ZXEquiptDef_CalcAttrFunc_ZXEquipSuittevaltGetFuncCompileCfgtSetDicttDef_PlayerKey_MFPExtDef_MFPType_ZhuXian(1R RGt_t allAttrListtallAttrListZXSuittequipScoreTotaltequipPlaceClassLVDicttequipPlaceBaseAttrDicttattrIDSkillPlusDictt addAttrIDListtreduceAttrIDListtzxSkillPlusAttrDictR"tequipPackCountRR'Rt baseAttrDictteffIndext    curEffectteffIDteffValuetit legendAttrIDtlegendAttrValuetattrIDt    plusValuetskillTypeIDListt skillTypeIDtskillAddPerDicttskillReducePerDicttsuitAttrIDPlusPlaceDicttsuitPlaceGroupDicttsuitTypetplaceGroupListtsuitLVtisSuittplacetsuitAttrIpyDatatsuitAttrIDListtsuitAttrValueListt    suitEffIDt suitEffValuet    plusPlacet plusEffDictt    plusEffIDt plusEffValuetaddValuetequipFightPowerEx((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pyRU³sÊ     
$  
 
 
 
 
 
cCs8|tjkrdStj|}||kr0dS||S(Ni(R[R\(RGR¢R£((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytGetZhuXianEquipSkillAddPer=s   cCs8|tjkrdStj|}||kr0dS||S(Ni(R[R_(RGR¢R¤((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytGetZhuXianEquipSkillReducePerGs   c    Cs˜tjƒj|ƒ}|js"dS|jƒ}|j}|j}|j}i}|jƒj    t
j ƒ}    xÐt |ƒD]Â\}
}|    j |ƒ} | st| jƒr¨qtn| jƒ} | ||
krëtjd|| ||
f|ƒqtn| jƒtjkrtjd| |ƒqtntj| ƒ} tjd| ƒ}|s[tjd| |ƒqtn|jƒ}i}x“|jƒD]…\}}tj|dƒ}|s¤qznt|tƒrÅtj|ƒ}n|}|j |dƒ|||<|j |dƒ|||<qzWi|d6|d6}tj!|| dt"tj#|ƒqtW|rÿt$|ƒ}tj%|t&j'|ƒ}||kr½g|jƒD]\}}||dg^q}}t(j)d    |j*ƒg|ƒqÿx?|jƒD].\}}t+j,|||t"t&j'gt"ƒqÊWnt-j.ƒ}|j/ƒg|_0xQ|jƒD]C\}}t-j1ƒ}||_2||_3d|_4|j0j5|ƒq+Wt$|j0ƒ|_6t7j8||ƒdS(
NsCÖïÏÉ×°±¸·Ö½â ·¢µÄÎïÆ·ID²»¶ÔÓ¦index=%s eatItemID=%s,ItemIDList[i]=%ss/ÖïÏÉ×°±¸·Ö½â ·¢µÄÎïÆ·²»ÊÇÖïÏÉ×°±¸  eatItemID=%stZhuXianEquipDecomposes4ZhuXianEquipDecompose Î´ÅäÖøý׼¶·Ö½âitemClassLV=%sit getItemDicttisAutoitDefaultLackSpace(9RR1R2tCounttGetIDt    IndexListt
ItemIDListtIsAutoRRRR6RƒRRR=tLogtGetTypeR
tDef_ZhuXianEquiipTypeRRRR€RtGetDecomposeInfoRtGetResultByRandomListt
isinstancettupletrandomtchoiceRntDelItemRtItemDel_ZhuXianDecomposeRetGetItemPackSpacet IPY_GameWorldtrptItemRVt SendMailByKeyR3t ItemControlertGivePlayerItemtChPyNetSendPackttagMCZhuXianDecomposeResulttCleartItemListttagMCZhuXianDecomposeItemtItemIDtItemCnttIsBindtappendtCntt NetPackCommont SendFakePack(RDRERFR RGt eatIndexListt eatItemIDListR»t giveItemDicttitemPackRœteatItemt    eatItemIDt itemClassLVtipyDatatdecomposeInfoDictRºt
itemIDListtrateListt giveitemCnttitemIDt saveDataDictt    needSpacet    packSpacet
giveItemIDtitemCntt prizeItemListtpackDatatitemInfo((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pytOnZhuXianEquipDecompose`st                  ! #  .) 
                 (RRRRVR@RÎRÑRRÝRÓt SkillCommonR[R
RÉRRRR)RPRTRCRUR·R¸Rô(((sjE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Item\EquipZhuXian.pyt<module>s0                               "    :            Š