cehua_lgq
2018-10-25 dba71efb14fd175d39e7545270eb1a67163e6f18
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
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ƒ|rWtj|ƒ} | jƒnt S(Nit TalentSkillis²»ÐèÒªÖØÖü¼ÄÜÌ츳£¡(RtGetSkillManagerRtranget GetSkillCounttGetSkillByIndextNonetGetSkillTypeIDR/tGetIpyGameDataNotLogt
GetSkillLVt SkillCommontisPassiveSkillRtDeleteSkillBySkillTypeIDRRRRtPassiveBuffEffMngtGetPassiveEffManagertInitObjPassiveEfftRefreshPassiveSkillR tRefreshPlayerAttrState( RtfreeSkillPointt
resetPointt skillManagert isRefreshAttrtdelCnttit    dataIndextskillt skillTypeIDt
curSkillLVt
passiveEfft
curControl((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR9Bs<  
       
 
 
 (RR R1tDataRecordPackRMRR!RR/R6RPRRRRRRRR+RCR9(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt<module>s(                                             µ