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
ët\c@sâddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zd    „Zd
„Zd „ZdS( iÿÿÿÿNcCstj|tjƒstStS(N(t GameFuncCommt GetFuncCanUset ShareDefinetGameFuncID_TalenttFalsetTrue(t    curPlayer((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytIsGreatMasterOpen#scCsÌ|jƒ}tjtjƒ}d}xLt||dƒD]7}tj|ƒ}|r_|jƒnd}||7}q8Wt    |ƒ}||krÈt
||ƒt |ƒt j d|||f|jƒƒndS(sÌ츳¹¦ÄÜ¿ªÆô´¦ÀíÌ츳µã iisK    Ì츳¹¦ÄÜ¿ªÆô´¦ÀíÌ츳µã beforeTalentPoint=%s,setTalentPoint=%s, curLV=%sN(tGetLVRtGetFuncLimitLVRRtxranget PlayerControltGetPlayerLVIpyDatatGetTalentPointtGetGreatMasterFreeSkillPointtSetGreatMasterFreeSkillPointtSync_GreatMasterFreeSkillPointt    GameWorldtLogtGetID(RtcurLVtopenLVtsetTalentPointtlvt    lvIpyDatataddTalentPointtcurFreeSkillPoint((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt DoTalentOpen(s    
&cCst|ƒsdSt|ƒdS(N(RR(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt MasterOnLogin;s 
cCsF|s
dSt|ƒ}tjd|ƒt|||ƒt|ƒdS(Ns"´óʦÌ츳µã£¡curFreeSkillPoint = %s(RRtDebugLogRR(RtaddPointR((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytAddGreatMasterSkillPointByLVFs 
cCs|jtjdtjƒS(Ni(tNomalDictGetPropertytChConfigtDef_PDict_Master_FreeSkillPointtDef_PDictType_GreatMaster(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyRQscCs tj|tj|tjƒdS(N(R tNomalDictSetPropertyR!R"R#(Rtvalue((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyRUscCs |jtjt|ƒtƒdS(N(tSendPropertyRefreshRtCDBPlayerRefresh_TalentPointRR(R((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR]scCsdS(N((tindext
clientDatattick((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnAddMasterSkillPointvsc
Csãtjƒj|ƒ}tjdƒ}tjddƒ}tj}|jƒjtj    ƒ}t
j ||dƒ\}}    |s”t j |||ƒs”dSnt|ƒs¤dS|rÆt
j|||    dtƒnt j|||tjƒdS(NtTalentResetBookii(RtGetPlayerManagertGetPlayerByIndext IpyGameDataPYt
GetFuncCfgt IPY_GameWorldtTYPE_Price_Gold_MoneytGetItemManagertGetPacktrptItemt
ItemCommontGetItem_FromPack_ByIDR t    HaveMoneytDoResetMasterSkillPointt
ReduceItemRtPayMoneyR!tDef_Cost_ResetGreatMasterSkill(
R(R)R*Rt
needItemIDt    costMoneyt    moneyTypetitemPackt    hasEnoughtitemList((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytOnResetMasterSkill+s     c Cs•t|ƒ}d}|jƒ}t}d}x±td|jƒƒD]š}||}|j|ƒ}|dkrqq@n|jƒ}    tj    d|    ƒs•q@n|j
ƒ}
t j |ƒr¹t }n||
7}|j|    ƒ|d7}q@W|dkrûtjdƒtSt|||ƒt|ƒtjƒj|ƒ} | jƒtj|tji|d6ƒ|rntjƒj|ƒntj|ƒ} | jƒ| jƒt S(Nit TalentSkillis²»ÐèÒªÖØÖü¼ÄÜÌ츳£¡t
resetPoint(RtGetSkillManagerRtranget GetSkillCounttGetSkillByIndextNonetGetSkillTypeIDR/tGetIpyGameDataNotLogt
GetSkillLVt SkillCommontisPassiveSkillRtDeleteSkillBySkillTypeIDRRRRtPassiveBuffEffMngtGetPassiveEffManagertInitObjPassiveEfftRefreshPassiveSkilltDataRecordPacktCache_FightPowerChangeInfoR!tPowerDownType_ResetTalenttRegistPassiveEffR tRefreshAllSkilltRefreshPlayerAttrState( RtfreeSkillPointREt skillManagert isRefreshAttrtdelCnttit    dataIndextskillt skillTypeIDt
curSkillLVt
passiveEfft
curControl((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR9BsB  
       
 
 
 
 
(RR R1RURNRR!RR/R6RQRRRRRRRR+RCR9(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt<module>s(                                             µ