cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
ãF\c@s„ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZdZdZdZdZd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Z d„Z!d„Z"dd„Z#d„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.pytOnLogin3s*
  $cCsítj|tj||ƒid„tjgt6d„tjgt6d„tj    gt
6d„tj gt 6}||kr«||\}}|||ƒ|j ||tƒnt|ƒ}tj|tj|ƒtj|tj|ttƒdS(NcSs |j|ƒS(N(t SetExAttr15(tcurObjtvalue((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<lambda>QscSs |j|ƒS(N(t SetExAttr16(R#R$((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%RscSs |j|ƒS(N(t SetExAttr17(R#R$((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%SscSs |j|ƒS(N(t SetExAttr18(R#R$((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR%Ts(t PlayerControltNomalDictSetPropertyRRRtCDBPlayerRefresh_GodWeaponLV_1tDef_GodWeaponType_HPtCDBPlayerRefresh_GodWeaponLV_2tDef_GodWeaponType_AtktCDBPlayerRefresh_GodWeaponLV_3tDef_GodWeaponType_SuperHittCDBPlayerRefresh_GodWeaponLV_4tDef_GodWeaponType_DeftSendPropertyRefreshtFalsetGetGodWeaponTotalLVtOpenServerCampaigntUpdOpenServerCampaignRecordDatatDef_Campaign_Type_GodWeaponLVtPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_GodWeapontTrue(Rt
weaponTypetlvtsceneEffectsDicttsetFunct
notifyTypettotalLV((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRNs   cCsmd}tjƒ}|j|jƒdƒjƒ}x5td|dƒD] }||jtj|ƒ7}qEW|S(Nii(    RR    R
R R R RRR(RRBRRtgwType((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR5as  cCsTxCtjdƒD]2}t||dƒtj|tjd|gƒqWt|ƒtS(NtGodWeaponActivei(    RtGetFuncEvalCfgRt PlayerSuccesstUptateSuccessProgressRtSuccType_GodWeaponRR<(Rti((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytDoGodWeaponOpenls
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcGodWeaponAttrR)tRefreshPlayerAttrState(R((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytRefreshGodWeaponAttrvs
cCsï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}tjdd|i|d6ƒ} | r}x3| jƒjƒD]\} } tj| | |ƒqpW|| jƒ7}q}q}W|jt jtj|ƒtjd    |ƒtj |t j!|ƒdS(
NiiiRt MagicExteriortGodWeaponEffecttLeveltGWTypes Éñ±øÊôÐÔ£º%s("RRRRRR    R
R R trangeR RRRRt GetAttrTypet
GetAttrNumt    enumerateR)tCalcAttrDict_TypeREtgettstrtInterpolationSearchtGetAttrtitemst GetFightPowertSetDicttDef_PlayerKey_MFPExtDef_MFPType_GodWeaponRtDebugLogtSetCalcAttrListValuetDef_CalcAttrFunc_GodWeapon(RRRt fightPowerExRIt allAttrListRCRRt attrTypeListt attrValueListtattrIDtgodWeaponEffectDatat    attrValue((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRK€s4 %cCs¦tjƒj|ƒ}|j}|jtj|ƒrItjd|ƒdSt||ƒsgt    ||ƒr¢t
||dƒt |ƒtjd|ƒt ||ƒndS(NsÒѾ­½âËøµÄÉñ±ø!weaponType=%sis½âËøÉñ±ø: weaponType=%s( RtGetPlayerManagertGetPlayerByIndext
WeaponTypeRRRR`t__GWCheckPlayerLVt__GWCheckOtherGWLVRRMR(tindext
clientDatattickRR=((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnGodWeaponActivate®s    
cCsVtjddiƒ}t|ƒ|kr<tjd|ƒtS|jƒ|t|ƒkS(NRDis¸ÃÉñ±ø²»ÄܽâËø!weaponType=%s(RRERXRR`R4tGetLV(RR=tgodWeaponUnlockDict((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRmÀs
cCsªtjddiƒ}t|ƒ|kr<tjd|ƒtS|t|ƒ}xW|D]O\}}|jtj|ƒ}||krStjd||||fƒtSqSWt    S(NRDis¸ÃÉñ±ø²»ÄܽâËø!weaponType=%ssTËùÐèǰÖÃÉñ±øµÈ¼¶²»×㣬ÎÞ·¨½âËø£¡weaponType=%s,needType=%s,needLV=%s > needTypeLV(%s)(
RRERXRR`R4RRRR<(RR=Rtt conditionListtneedTypetneedLVt
needTypeLV((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRnÈs     c! Cs5tjƒ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%||ƒ|rt+|||ƒtjd||fƒt,|ƒt-j.|t
j/||gƒ|    dkr´tjddiƒj0|dƒ}tj1d||j2ƒ|gƒntj3di|d6|d6t&t&ƒ} | rtj1d| 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 GetGodWeaponRORQRP(8RRjRkRltItemIDtmaxt    ItemCountt    IsAutoBuyRRRRRRRR0R`RRtGetExpREt GetGameDatatGetItemByTypeIDt
ItemCommontGetItemEffectByEffectIDtDef_Item_Eff_GodWeaponExptGetEffectValuetGetPackItemBindStateIndexInfoRXtDef_Cost_Reason_SonKeyR)tPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GodWeapontDelCostItemByBindtItemDel_GodWeapontDef_PDict_GodWeaponExpR4R R<RR*RRMRFRGRHRWt WorldNotifytGetNametGetIpyGameDataByConditiont GetNotifyCodeRt
EventShelltEventRespons_PlusGodWeapon(!RoRpRqRR=t    useItemIDt useItemCountt    isAutoBuyRt beforeAttrLVRttotalExptitemDatateffecttitemExpt goldExpTotaltcostItemIndexListtbindCntt    unBindCntRztgodMagicExpDicttcostGoldtgoldExptlackCosttinfoDicttdelUseItemCountt addTotalExptbefExptcurExptisLVUPt_tsysMarkRh((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.pyRls  %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 ttagMCGodWeaponLVInfoRlRRRtWeaponLVRt    WeaponExpRtlent    WeaponNumt NetPackCommont SendFakePack(Rt godWeaponIDtsendPackRRRIt
weaponInfo((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR~s, 
       
     
    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(tGetSkillManagertFindSkillBySkillTypeIDRR`R‚tFindSkillByTypetNonet
SkillShelltCheckLearnSkillConditiontLVUpSkillBySkillTypeIDtDataRecordPacktDR_LearnORUPSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffR)tRefreshSkillFightPowerExR<(Rt
skillResIdt skillManagert    skillData((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR±¡s"   (%RR•RR)R„R‹R´R½RFRRÆRÉRt SkillCommont    BuffSkillR9RRËR6trandomR,R.R0R2R!RR5RJRMRKRrRmRnR¯RRR±(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<module>sH                                     
    
    .                ˆ     #