cehua-TT
2018-11-15 9381feb93e989e14b52fc530731dfdedff233a91
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
ߺë[c@s3ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Zd„Zd„Zdd    „Zd
„ZdS( iÿÿÿÿNcCs'tj|tjƒsdSt|ƒdS(N(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_GodWeapontSync_GodWeaponLVInfo(t    curPlayer((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnLogin-s
cCs^xMtjdƒD]<}tj|tj|dƒtj|tj    d|gƒqWt
|ƒt S(NtGodWeaponActivei( t IpyGameDataPYtGetFuncEvalCfgt PlayerControltNomalDictSetPropertytChConfigtDef_PDict_GodWeaponLVt PlayerSuccesstUptateSuccessProgressRtSuccType_GodWeaponRtTrue(Rti((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytDoGodWeaponOpen6s
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcGodWeaponAttrR
tRefreshPlayerAttrState(R((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytRefreshGodWeaponAttr@s
c Cs<tj|tjƒsdStjƒ}|j|jƒdƒjƒ}gt    dƒD] }i^qQ}x«t
d|dƒD]–}|j t j |ƒ}|sŸqwntjd||ƒ}|sÀqwn|jƒ|jƒ}}    x1t|ƒD]#\}}
tj|
|    ||ƒqæWqwWtjd|ƒtj|t j|ƒdS(Niit    GodWeapons Éñ±øÊôÐÔ£º%s(RRRRRtIPY_DatatGetGodWeaponByIndextGetGodWeaponCounttGetTypetrangetxrangetNomalDictGetPropertyR R tGetIpyGameDatat GetAttrTypet
GetAttrNumt    enumerateR
tCalcAttrDict_Typet    GameWorldtDebugLogtSetCalcAttrListValuetDef_CalcAttrFunc_GodWeapon( Rt
ipyDataMgrtmaxTypeRt allAttrListtgwTypetattrLVt godWeaponDatat attrTypeListt attrValueListtattrID((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRJs$ c%    Cstjƒj|ƒ}|j}|j}td|jƒ}|j}tj    |t
j ƒs[dS|j t j|ƒ}|s’tjd||fƒdS|}    tjd||ƒ}
|
sÎtjd||fƒdS|
jƒ} | dkrêdS|tjd|ƒkrdStjƒj|ƒ} | s&dStj| t jƒ} | sVtjd|ƒdS| jdƒ}|s€tjd|ƒdStj|||ƒ\}}}td|||ƒ}|dkrL|sëtjd|||||fƒdStji||6ƒ}|dkrdSi|t j6}tj|tj |t j!||ƒsLdSn||}|r~tj"|||||t j#ƒn||}|j t j$|ƒ}||}tjd    ||    |||||fƒt%}xÁt&d
ƒD]³}|| kr÷Pntjd||dƒ}
|
s1tjd||fƒPntjd || fƒ|| }|d7}t'}t(||
|ƒ|
jƒ} | dkrád}PqáqáWtj)|t j||ƒtj)|t j$||ƒ|rétjd ||fƒt*|ƒt+j,|t
j-||gƒ|    dkr^tjd diƒj.|dƒ}tj/d||j0ƒ|gƒntjddiƒ}||krÔxR||D]C}|    |krŠ||krŠtj/dd|j0ƒ||gƒqŠqŠWntjddiƒ}xý|j1ƒD]ì\}} t2|ƒ}|j t j|ƒr;tjd|ƒqönt'}!x]| D]U\}"}#|j t j|"ƒ}$|$|#krHt%}!tjd||"|#|$fƒPqHqHW|!rötj)|t j|dƒtjd|ƒt3||ƒqöqöWnt3||ƒt4j5|ƒdS(Nis-Éñ±øÎ´½âËø£¬ÎÞ·¨Éý¼¶£¡weaponType=%s,attrLV=%sRsÉñ±øÉý¼¶ÕÒ²»µ½Êý¾Ý %s-%sis GodWeapon%ss ###Éñ±ø¼Ù°ü£¬ÎïÆ·ID=%sûÓо­ÑéÖµsRÉñ±øÉý¼¶ÏûºÄ²»×ã!useItemID=%s,useItemCount=%s,bindCnt=%s,unBindCnt=%s,lackCount=%ssUÖ´ÐÐÉñ±øÉý¼¶: weaponType=%s,beforeAttrLV=%s,befExp=%s,addTotalExp=%s(%s*%s),curExp=%sids"    Éñ±øÉý¼¶: attrLV=%s,needExp=%ss!Éñ±øÉý¼¶½á¹û: attrLV=%s,curExp=%st GodWeaponSyst GetGodWeapontGodLvt GodWeaponLvRis1ÒѾ­½âËøµÄÉñ±ø²»ÐèÒªÔÙÅжÏ!unlockGodWeaponType=%ss]ËùÐèǰÖÃÉñ±øµÈ¼¶²»×㣬ÎÞ·¨½âËø£¡unlockGodWeaponType=%s,needType=%s,needLV=%s > needTypeLV(%s)s ½âËøÉñ±ø: unlockGodWeaponType=%s(6R$tGetPlayerManagertGetPlayerByIndext
WeaponTypetItemIDtmaxt    ItemCountt    IsAutoBuyRRRRRR R R%RRtGetExpR    t GetGameDatatGetItemByTypeIDt
ItemCommontGetItemEffectByEffectIDtDef_Item_Eff_GodWeaponExptGetEffectValuetGetPackItemBindStateIndexInfotGetAutoBuyItemNeedGoldtDef_Cost_Reason_SonKeyR
tPayMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytDef_Cost_BuyStoreItemtDelCostItemByBindtItemDel_GodWeapontDef_PDict_GodWeaponExptFalseRRt GodWeaponLVUPR RRRRtgett WorldNotifytGetNametitemstintRt
EventShelltEventRespons_PlusGodWeapon(%tindext
clientDatattickRt
weaponTypet    useItemIDt useItemCountt    isAutoBuyR,t beforeAttrLVR-ttotalExptitemDatateffecttaddExptcostItemIndexListtbindCntt    unBindCntt    lackCounttlackCosttinfoDicttdelUseItemCountt addTotalExptbefExptcurExptisLVUPt_tsysMarkt
notifyDicttnotifyLVtgodWeaponUnlockDicttunlockGodWeaponTypetunlockConditionListtisUnlocktneedTypetneedLVt
needTypeLV((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnPlusGodWeaponqsÔ                    
"
 
     
 
 
 !" ,        cCsb|jƒ}|r^t||ƒr^|jƒ}|r[tjd||jƒ||gƒq[q^ndS(Ni(t
GetSkillIDt__GiveGodWeaponSkillt
GetSysMarkR
RPRQ(RR-R,tskillIDRn((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRNýs   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(tChPyNetSendPackttagMCGodWeaponLVListtCleartWeaponInfoListRRRRRRttagMCGodWeaponLVInfoR7RR R tWeaponLVRLt    WeaponExptappendtlent    WeaponNumt NetPackCommont SendFakePack(Rt godWeaponIDtsendPackR(R)Rt
weaponInfo((soE:\SnxxServerCode\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(tGetSkillManagertFindSkillBySkillTypeIDR$R%R=tFindSkillByTypetNonet
SkillShelltCheckLearnSkillConditiontLVUpSkillBySkillTypeIDtDataRecordPacktDR_LearnORUPSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffR
tRefreshSkillFightPowerExR(Rt
skillResIdt skillManagert    skillData((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRz/s"   (R$RTR R
R?RGR}R‡RRRR“Rt SkillCommont    BuffSkillt ItemControlerRR•trandomRRRRRxRNRRz(((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<module>s4                               
    
    '    Œ     #