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
x{[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((s_.\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((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytDoGodWeaponOpen6s
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcGodWeaponAttrR
tRefreshPlayerAttrState(R((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytRefreshGodWeaponAttr@s
c Cstj|tjƒsdStjƒ}|j|jƒdƒjƒ}gt    dƒD] }i^qQ}xŸt
d|dƒD]Š}|j t j |ƒ}tjd||ƒ}|s´qwn|jƒ|jƒ}}    x1t|ƒD]#\}}
tj|
|    ||ƒqÚWqwWtj|t j|ƒdS(Niit    GodWeapon(RRRRRtIPY_DatatGetGodWeaponByIndextGetGodWeaponCounttGetTypetrangetxrangetNomalDictGetPropertyR R tGetIpyGameDatat GetAttrTypet
GetAttrNumt    enumerateR
tCalcAttrDict_TypetSetCalcAttrListValuetDef_CalcAttrFunc_GodWeapon( Rt
ipyDataMgrtmaxTypeRt allAttrListtgwTypetattrLVt godWeaponDatat attrTypeListt attrValueListtattrID((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyRJs cCs“tjƒj|ƒ}|j}|j}tj|tjƒs@dS|j    t
j |ƒ}|}t j d||ƒ}|s’tjd||fƒdS|jƒ}    |    dkr®dS|t jd|ƒkrËdStj||tjƒ}
|
sþtjd|ƒdStj|
t
jƒ} | s.tjd|ƒdS| jdƒ} | sXtjd|ƒdSd} tj||
| tt
jƒ|j    t
j|ƒ}|| }t}xªtdƒD]œ}||    krÃPnt j d||dƒ}|sýtjd||fƒPn||    }|d7}t}t|||ƒ|jƒ}    |    dkr­d}Pq­q­Wtj |t
j ||ƒtj |t
j||ƒ|rut!|ƒt"j#|tj$||gƒ|dkrüt jd    diƒj%|d
ƒ}tj&d||j'ƒ|gƒnt jd diƒ}||kruxR||D]C}||kr(||kr(tj&dd |j'ƒ||gƒq(q(Wqunt(||ƒt)j*|ƒdS( NRsÉñ±øÉý¼¶ÕÒ²»µ½Êý¾Ý %s-%sis GodWeapon%ss###Éñ±ø¼Ù°ü£¬Ã»ÓÐÎïÆ·ID=%ss ###Éñ±ø¼Ù°ü£¬ÎïÆ·ID=%sûÓо­ÑéÖµiidt GodWeaponSyst GetGodWeapontGodLvt GodWeaponLv(+t    GameWorldtGetPlayerManagertGetPlayerByIndext
WeaponTypetItemIDRRRRRR R RRtDebugLogtGetExpR    t
ItemCommontFindItemInPackByItemIDt IPY_GameWorldtrptItemtGetItemEffectByEffectIDtDef_Item_Eff_GodWeaponExptGetEffectValuetDelItemtFalsetItemDel_GodWeapontDef_PDict_GodWeaponExpRRt GodWeaponLVUPR
R RRRRtgett WorldNotifytGetNameRt
EventShelltEventRespons_PlusGodWeapon(tindext
clientDatattickRt
weaponTypet    useItemIDR*t beforeAttrLVR+ttotalExptcurItemteffecttaddExptdelCnttcurExptisLVUPRtsysMarkt
notifyDicttnotifyLV((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pytOnPlusGodWeaponjs€          
 
 
 
 !" /  cCsb|jƒ}|r^t||ƒr^|jƒ}|r[tjd||jƒ||gƒq[q^ndS(Ni(t
GetSkillIDt__GiveGodWeaponSkillt
GetSysMarkR
RGRH(RR+R*tskillIDRX((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyREÇ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(tChPyNetSendPackttagMCGodWeaponLVListtCleartWeaponInfoListRRRRRRttagMCGodWeaponLVInfoR6RR R tWeaponLVRDt    WeaponExptappendtlent    WeaponNumt NetPackCommont SendFakePack(Rt godWeaponIDtsendPackR&R'Rt
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(tGetSkillManagertFindSkillBySkillTypeIDR3R8t GetGameDatatFindSkillByTypetNonet
SkillShelltCheckLearnSkillConditiontLVUpSkillBySkillTypeIDtDataRecordPacktDR_LearnORUPSkilltPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffR
tRefreshSkillFightPowerExR(Rt
skillResIdt skillManagert    skillData((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyR]ùs"   (R3RIR R
R:R<R`RjRRRtRwRt SkillCommont    BuffSkillt ItemControlerRRytrandomRRRRR[RERR](((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGodWeapon.pyt<module>s4                               
    
         ]     #