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
®wthc@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((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytIsGreatMasterOpen#scCsÃ|jƒ}tjtjƒ}d}xCt||dƒD].}d}|rV|jƒnd}||7}q8Wt|ƒ}||kr¿t    ||ƒt
|ƒt j d|||f|j ƒƒndS(sÌ츳¹¦ÄÜ¿ªÆô´¦ÀíÌ츳µã iisK    Ì츳¹¦ÄÜ¿ªÆô´¦ÀíÌ츳µã beforeTalentPoint=%s,setTalentPoint=%s, curLV=%sN(tGetLVRtGetFuncLimitLVRRtxrangetNonetGetTalentPointtGetGreatMasterFreeSkillPointtSetGreatMasterFreeSkillPointtSync_GreatMasterFreeSkillPointt    GameWorldtLogtGetID(RtcurLVtopenLVtsetTalentPointtlvt    lvIpyDatataddTalentPointtcurFreeSkillPoint((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt DoTalentOpen(s    
&cCst|ƒsdSt|ƒdS(N(RR(R((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt MasterOnLogin;s 
cCsF|s
dSt|ƒ}tjd|ƒt|||ƒt|ƒdS(Ns"´óʦÌ츳µã£¡curFreeSkillPoint = %s(R RtDebugLogRR(RtaddPointR((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pytAddGreatMasterSkillPointByLVFs 
cCs|jtjdtjƒS(Ni(tNomalDictGetPropertytChConfigtDef_PDict_Master_FreeSkillPointtDef_PDictType_GreatMaster(R((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR QscCs tj|tj|tjƒdS(N(t PlayerControltNomalDictSetPropertyR R!R"(Rtvalue((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyRUscCs tj|tjt|ƒƒdS(N(R#tSendPropertyRefreshRtCDBPlayerRefresh_TalentPointR (R((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR]scCsdS(N((tindext
clientDatattick((spD:\SG_ServerCode\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((spD:\SG_ServerCode\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(R tGetSkillManagerRtranget GetSkillCounttGetSkillByIndexR tGetSkillTypeIDR/tGetIpyGameDataNotLogt
GetSkillLVt SkillCommontisPassiveSkillRtDeleteSkillBySkillTypeIDRRRRtPassiveBuffEffMngtGetPassiveEffManagertInitObjPassiveEfftRefreshPassiveSkilltDataRecordPacktCache_FightPowerChangeInfoR tPowerDownType_ResetTalenttRegistPassiveEffR#tRefreshAllSkilltRefreshPlayerAttrState( RtfreeSkillPointREt skillManagert isRefreshAttrtdelCnttit    dataIndextskillt skillTypeIDt
curSkillLVt
passiveEfft
curControl((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyR9BsB  
       
 
 
 
 
(RR#R1RTRMRR RR/R6RPRRRRR RRR+RCR9(((spD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGreatMaster.pyt<module>s(                                             µ