cehua-HWJ35
2019-03-07 65d21adcb8f585c123fca5946270d36ff10280e4
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
ü–x\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ÿÿÿÿNiiiicCs'tj|tjƒsdSt|ƒdS(N(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_GodWeapontSync_GodWeaponLVInfo(t    curPlayer((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnLogin3s
cCs\tj|tj||ƒt|ƒ}tj|tj|ƒt    j
|tj |t t ƒdS(N(t PlayerControltNomalDictSetPropertytChConfigtDef_PDict_GodWeaponLVtGetGodWeaponTotalLVtOpenServerCampaigntUpdOpenServerCampaignRecordDataRtDef_Campaign_Type_GodWeaponLVtPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_GodWeapontFalsetTrue(Rt
weaponTypetlvttotalLV((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytSetGodWeaponLV:s
 cCsmd}tjƒ}|j|jƒdƒjƒ}x5td|dƒD] }||jtj|ƒ7}qEW|S(Nii(    t IpyGameDataPYtIPY_DatatGetGodWeaponByIndextGetGodWeaponCounttGetTypetxrangetNomalDictGetPropertyR    R
(RRt
ipyDataMgrtmaxTypetgwType((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR Ds  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.pytDoGodWeaponOpenOs
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcGodWeaponAttrRtRefreshPlayerAttrState(R((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytRefreshGodWeaponAttrYs
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(
Niiit    GodWeapont MagicExteriortGodWeaponEffecttLeveltGWTypes Éñ±øÊôÐÔ£º%s("RRRRRRRRRtrangeRRR    R
tGetIpyGameDatat GetAttrTypet
GetAttrNumt    enumerateRtCalcAttrDict_TypeR#tgettstrtInterpolationSearchtGetAttrtitemst GetFightPowertSetDicttDef_PlayerKey_MFPExtDef_MFPType_GodWeapont    GameWorldtDebugLogtSetCalcAttrListValuetDef_CalcAttrFunc_GodWeapon(RRR t fightPowerExR't allAttrListR!tattrLVt godWeaponDatat attrTypeListt attrValueListtattrIDtgodWeaponEffectDatat    attrValue((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR)cs4 %cCs¦tjƒj|ƒ}|j}|jtj|ƒrItjd|ƒdSt||ƒsgt    ||ƒr¢t
||dƒt |ƒtjd|ƒt ||ƒndS(NsÒѾ­½âËøµÄÉñ±ø!weaponType=%sis½âËøÉñ±ø: weaponType=%s( R@tGetPlayerManagertGetPlayerByIndext
WeaponTypeRR    R
RAt__GWCheckPlayerLVt__GWCheckOtherGWLVRR+R(tindext
clientDatattickRR((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnGodWeaponActivate‘s    
cCsVtjddiƒ}t|ƒ|kr<tjd|ƒtS|jƒ|t|ƒkS(NR"is¸ÃÉñ±ø²»ÄܽâËø!weaponType=%s(RR#R8R@RARtGetLV(RRtgodWeaponUnlockDict((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRP£s
cCsªtjddiƒ}t|ƒ|kr<tjd|ƒtS|t|ƒ}xW|D]O\}}|jtj|ƒ}||krStjd||||fƒtSqSWt    S(NR"is¸ÃÉñ±ø²»ÄܽâËø!weaponType=%ssTËùÐèǰÖÃÉñ±øµÈ¼¶²»×㣬ÎÞ·¨½âËø£¡weaponType=%s,needType=%s,needLV=%s > needTypeLV(%s)(
RR#R8R@RARRR    R
R(RRRWt conditionListtneedTypetneedLVt
needTypeLV((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRQ«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=%sR,sÉñ±øÉý¼¶ÕÒ²»µ½Êý¾Ý %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 GetGodWeaponR.R0R/(8R@RMRNROtItemIDtmaxt    ItemCountt    IsAutoBuyRRRRRR    R
tDef_GodWeaponType_SuperHitRARR2tGetExpR#t GetGameDatatGetItemByTypeIDt
ItemCommontGetItemEffectByEffectIDtDef_Item_Eff_GodWeaponExptGetEffectValuetGetPackItemBindStateIndexInfoR8tDef_Cost_Reason_SonKeyRtPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_GodWeapontDelCostItemByBindtItemDel_GodWeapontDef_PDict_GodWeaponExpRRRt GodWeaponLVUPRRR+R$R%R&R7t WorldNotifytGetNametGetIpyGameDataByConditiont GetNotifyCodeRt
EventShelltEventRespons_PlusGodWeapon(!RRRSRTRRt    useItemIDt useItemCountt    isAutoBuyRFt beforeAttrLVRGttotalExptitemDatateffecttitemExpt goldExpTotaltcostItemIndexListtbindCntt    unBindCntR]tgodMagicExpDicttcostGoldtgoldExptlackCosttinfoDicttdelUseItemCountt addTotalExptbefExptcurExptisLVUPt_tsysMarkRK((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
GetSysMarkRRvRw(RRGRFtskillIDR“((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRuOs  %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(tChPyNetSendPackttagMCGodWeaponLVListtCleartWeaponInfoListRRRRRRttagMCGodWeaponLVInfoRORR    R
tWeaponLVRtt    WeaponExptappendtlent    WeaponNumt NetPackCommont SendFakePack(Rt godWeaponIDtsendPackRR R't
weaponInfo((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRas, 
       
     
    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(tGetSkillManagertFindSkillBySkillTypeIDR@RARftFindSkillByTypetNonet
SkillShelltCheckLearnSkillConditiontLVUpSkillBySkillTypeIDtDataRecordPacktDR_LearnORUPSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffRtRefreshSkillFightPowerExR(Rt
skillResIdt skillManagert    skillData((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR–„s"   (%R@RzR    RRhRoR™R£R$RR¬R¯Rt SkillCommont    BuffSkillRRR±R trandomtDef_GodWeaponType_HPtDef_GodWeaponType_AtkRdtDef_GodWeaponType_DefRRR R(R+R)RURPRQR”RuRR–(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<module>sH                            
         
    
    .                ˆ     #