cehua-TT
2018-11-27 c24f88bb90b757fc28aa876a87fde9795db23b4a
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
÷Äû[c@s]ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZdZdZdZdZd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zdd„Zd„Z dS(iÿÿÿÿNiiiic
CsJtj|tjƒsdSt|ƒ|jƒdkrF|jƒ}tjƒ}|j    |j
ƒdƒj ƒ}x×t d|dƒD]¿}|j tj|ƒ}|s¨q€nt|||ƒg}xat d|dƒD]L}tjd||ƒ}|rÒt|||ƒ}    |    r|j|    ƒqqÒqÒWtjd|||f|ƒq€WndS(Niit    GodWeaponsAÀϺÅÉèÖÃÉñ±ø³¡¾°µÈ¼¶: setWeaponType=%s,setLV=%s, giveSkillList=%s(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_GodWeapontSync_GodWeaponLVInfot GetExAttr15t GetPlayerIDt IpyGameDataPYtIPY_DatatGetGodWeaponByIndextGetGodWeaponCounttGetTypetxrangetNomalDictGetPropertytChConfigtDef_PDict_GodWeaponLVtSetGodWeaponLVtGetIpyGameDatat GodWeaponLVUPtappendt    GameWorldtLog(
t    curPlayertplayerIDt
ipyDataMgrtmaxTypet setWeaponTypetsetLVt giveSkillListtattrLVt godWeaponDatat giveSkillID((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnLogin2s*
  $cCs¯tj|tj||ƒid„tjgt6d„tjgt6d„tj    gt
6d„tj gt 6}||kr«||\}}|||ƒ|j ||tƒndS(NcSs |j|ƒS(N(t SetExAttr15(tcurObjtvalue((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<lambda>PscSs |j|ƒS(N(t SetExAttr16(R#R$((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%QscSs |j|ƒS(N(t SetExAttr17(R#R$((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%RscSs |j|ƒS(N(t SetExAttr18(R#R$((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%Ss(t PlayerControltNomalDictSetPropertyRRRtCDBPlayerRefresh_GodWeaponLV_1tDef_GodWeaponType_HPtCDBPlayerRefresh_GodWeaponLV_2tDef_GodWeaponType_AtktCDBPlayerRefresh_GodWeaponLV_3tDef_GodWeaponType_SuperHittCDBPlayerRefresh_GodWeaponLV_4tDef_GodWeaponType_DeftSendPropertyRefreshtFalse(Rt
weaponTypetlvtsceneEffectsDicttsetFunct
notifyType((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRMs  cCsTxCtjdƒD]2}t||dƒtj|tjd|gƒqWt|ƒtS(NtGodWeaponActivei(    RtGetFuncEvalCfgRt PlayerSuccesstUptateSuccessProgressRtSuccType_GodWeaponRtTrue(Rti((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytDoGodWeaponOpen]s
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcGodWeaponAttrR)tRefreshPlayerAttrState(R((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytRefreshGodWeaponAttrgs
c Cstj|tjƒsdStjƒ}|j|jƒdƒjƒ}d}gt    dƒD] }i^qW}xêt
d|dƒD]Õ}|j t j |ƒ}|s¥q}ntjd||ƒ}|sÆq}n|jƒ|jƒ}    }
x1t|    ƒD]#\}} tj| |
||ƒqìW|tjdƒjt|ƒdƒ7}|jt jtj|ƒq}Wtjd|ƒtj|t j|ƒdS(NiiiRt MagicExteriors Éñ±øÊôÐÔ£º%s(RRRRRR    R
R R trangeR RRRRt GetAttrTypet
GetAttrNumt    enumerateR)tCalcAttrDict_TypeR;tgettstrtSetDicttDef_PlayerKey_MFPExtDef_MFPType_GodWeaponRtDebugLogtSetCalcAttrListValuetDef_CalcAttrFunc_GodWeapon( RRRt fightPowerExR@t allAttrListtgwTypeRRt attrTypeListt attrValueListtattrID((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRBqs* %c
Cs+tjƒj|ƒ}|j}|jtj|ƒrItjd|ƒdStj    ddiƒ}t
|ƒ|kr…tjd|ƒdS|t
|ƒ}xW|D]O\}}|jtj|ƒ}    |    |krœtjd||||    fƒdSqœWt ||dƒt |ƒtjd|ƒt ||ƒdS(NsÒѾ­½âËøµÄÉñ±ø!weaponType=%sR:is¸ÃÉñ±ø²»ÄܽâËø!weaponType=%ssTËùÐèǰÖÃÉñ±øµÈ¼¶²»×㣬ÎÞ·¨½âËø£¡weaponType=%s,needType=%s,needLV=%s > needTypeLV(%s)is½âËøÉñ±ø: weaponType=%s(RtGetPlayerManagertGetPlayerByIndext
WeaponTypeRRRRPRR;RLRRDR(
tindext
clientDatattickRR5tgodWeaponUnlockDictt conditionListtneedTypetneedLVt
needTypeLV((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnGodWeaponActivate—s*         
 c# Cs«tjƒj|ƒ}|j}|j}td|jƒ}|j}tj    |t
j ƒs[dS|j t j|ƒ}| rŸt|krŸtjd||fƒdS|}    tjd||ƒ}
|
sÛtjd||fƒdS|
jƒ} | dkr÷dS|tjd|ƒkrdStjƒj|ƒ} | s3dStj| t jƒ} | sctjd|ƒdS| jdƒ}|stjd|ƒdSd}tj|||ƒ\}}}td|||ƒ}|dkr¥|sþtjd|||||fƒdStjd    diƒ}t|ƒ|kr)dS|t|ƒ\}}||}||}|dkrcdSi|t j6|d
6}tj|t j!|t j"||ƒs¥dSn||}|r×tj#|||||t j$ƒn|||}|j t j%|ƒ}||}tjd ||    ||||||fƒt&}xÁt'd ƒD]³}|| krWPntjd||dƒ}
|
s‘tjd||fƒPntjd || fƒ|| }|d7}t(}t)||
|ƒ|
jƒ} | dkrAd}PqAqAWtj*|t j%||ƒ|rt+|||ƒtjd||fƒt,|ƒt-j.|t
j/||gƒ|    dkr´tjddiƒj0|dƒ}tj1d||j2ƒ|gƒntjddiƒ} || kr*xR| |D]C}!|    |!krà||!kràtj1dd|j2ƒ||!gƒqàqàWntj3di|d6|d6t&t&ƒ}"|"r~tj1d|"j4ƒ|j2ƒ|gƒn|
jƒ} nt5||ƒt6j7|ƒdS(Nis-Éñ±øÎ´½âËø£¬ÎÞ·¨Éý¼¶£¡weaponType=%s,attrLV=%sRsÉñ±øÉý¼¶ÕÒ²»µ½Êý¾Ý %s-%sis GodWeapon%ss ###Éñ±ø¼Ù°ü£¬ÎïÆ·ID=%sûÓо­ÑéÖµsRÉñ±øÉý¼¶ÏûºÄ²»×ã!useItemID=%s,useItemCount=%s,bindCnt=%s,unBindCnt=%s,lackCount=%st GodMagicExpt    lackCountsXÖ´ÐÐÉñ±øÉý¼¶: weaponType=%s,beforeAttrLV=%s,befExp=%s,addTotalExp=%s(%s*%s+%s),curExp=%sids"    Éñ±øÉý¼¶: attrLV=%s,needExp=%ss!Éñ±øÉý¼¶½á¹û: attrLV=%s,curExp=%st GodWeaponSyst GetGodWeapontGodLvt GodWeaponLvtGodWeaponEffecttGWTypetLevel(8RRYRZR[tItemIDtmaxt    ItemCountt    IsAutoBuyRRRRRRRR0RPRRtGetExpR;t GetGameDatatGetItemByTypeIDt
ItemCommontGetItemEffectByEffectIDtDef_Item_Eff_GodWeaponExptGetEffectValuetGetPackItemBindStateIndexInfoRLtDef_Cost_Reason_SonKeyR)tPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GodWeapontDelCostItemByBindtItemDel_GodWeapontDef_PDict_GodWeaponExpR4R R?RR*RRDR<R=R>RKt WorldNotifytGetNametGetIpyGameDataByConditiont GetNotifyCodeRt
EventShelltEventRespons_PlusGodWeapon(#R\R]R^RR5t    useItemIDt useItemCountt    isAutoBuyRt beforeAttrLVRttotalExptitemDatateffecttitemExpt goldExpTotaltcostItemIndexListtbindCntt    unBindCntRftgodMagicExpDicttcostGoldtgoldExptlackCosttinfoDicttdelUseItemCountt addTotalExptbefExptcurExptisLVUPt_tsysMarkt
notifyDicttnotifyLVtgodWeaponEffectData((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnPlusGodWeapon¾sÄ                   
 
 
"
      
 
 
 !" ,&(  cCsc|jƒ}|r_t||ƒr_|jƒ}|rXtjd||jƒ||gƒn|SndS(Ni(t
GetSkillIDt__GiveGodWeaponSkillt
GetSysMarkR)R‚Rƒ(RRRtskillIDRŸ((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRDs  %icCs_tjƒ}|jƒg|_|dkrØtjƒ}|j|jƒdƒjƒ}xàt    d|dƒD]g}tj
ƒ}|jƒ||_ |j t j|ƒ|_|j t j|ƒ|_|jj|ƒqjWnatj
ƒ}|jƒ||_ |j t j|ƒ|_|j t j|ƒ|_|jj|ƒt|jƒ|_tj||ƒdS(Nii(tChPyNetSendPackttagMCGodWeaponLVListtCleartWeaponInfoListRR    R
R R R ttagMCGodWeaponLVInfoR[RRRtWeaponLVRt    WeaponExpRtlent    WeaponNumt NetPackCommont SendFakePack(Rt godWeaponIDtsendPackRRR@t
weaponInfo((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRVs, 
       
     
    cCsô|jƒ}|j|ƒr0tjd|ƒdStjƒj|dƒ}|dkritjd|ƒdStj||ƒstjd|ƒdS|j    |ƒtjd|ƒt
j ||dƒt j ƒj||ƒtj|ƒj|dƒtS(Ns!godSkill() have learned skill(%s)is godSkill() hasn't find skill(%s)s1godSkill() learn skill(%s) condition isn't enoughsgodSkill() skill(%s) success!i(tGetSkillManagertFindSkillBySkillTypeIDRRPRstFindSkillByTypetNonet
SkillShelltCheckLearnSkillConditiontLVUpSkillBySkillTypeIDtDataRecordPacktDR_LearnORUPSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffR)tRefreshSkillFightPowerExR?(Rt
skillResIdt skillManagert    skillData((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR¥ys"   (!RR†RR)RuR|R¨R±R<RRºR½Rt SkillCommont    BuffSkillt ItemControlerRR¿trandomR,R.R0R2R!RRARDRBRdR£RRR¥(((s`.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<module>s@                               
    
    &    '    †     #