hxp
2018-08-25 c3f001417a8ca59a1286d71c1cbbab0109bba319
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
‚x{[c@s
ddlZddlZddlZddlZddlZddlZddlZddlZddlZej    ddƒe
dƒ\Z Z Z ZZe
dƒ\ZZZZZZd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„ZdS(iÿÿÿÿNs Script\Skill\t SkillBoostsiicCs|S(N((tattackertdefendert    skillDatatisEnhanceSkill((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pytChangeSkillData;sc Cs|jƒ}g}|tjkrL|jtjƒdkr=|St|ƒ}n%|tjkrqg}|j|ƒn|gkr|S|j    ƒ}t
}x;|D]3}||t krš|t tj kršt}PqšqšW|sÛ|S|rýtjj|ƒtj}ntjj|ƒtj}xr|D]j}    ||    t kr9qnd|    t }
tjtd|
ƒ} | dkroqn| ||    t|    tƒqW|S(Nis SkillBoost_%ss%s.OnCalcSkillValue(tGetGameObjTypet IPY_GameWorldtgotNPCt GetDictByKeytChConfigtDef_SummonBoost_CounttGetNPCSkillBoostListt    gotPlayertextendtGetSkillTypeIDtFalsetDef_SkillTypeIDt Def_BoostTypetBoostType_HappenRatetTruetPySkillManagertPy_SkillDataTriggert CopySkillDatat Py_SkillDatat    GameWorldt GetExecFuncRtNonetDef_SkillEffectIDtDef_BoostValue( RRRt
atkObjTypetskillBoostListtpassiveBuffBoostListt skillTypeIDt    needBoostttmpListtskillBoostInfotpyNametcallFunc((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyt__BoostSkillDataBsD           cCsü|s
|S|jƒ}g}|tjkrAg}|j|ƒn|gkrQ|S|jƒ}t}xQ|D]I}|ttjkr‰qjn||t    ks©|t    dkrjt
}PqjqjW|sÁ|St |t j ƒs|rõt jj|ƒt j}qt jj|ƒt j}nd}    xÞ|D]Ö}
|
t    dkrJ||
t    krJqn|
t} | dkr¦|    dkr~tj|ƒ}    n|    sŠqn| td|    ƒ@s¦qq¦nd|
t} tjtd| ƒ} | dkrÜqn| ||
t|
tƒqW|S(NiisSkillWeaken_%ss%s.OnCalcSkillValue(RRR RRRt Def_WeakTypeR
tWeakenType_HappenRatetDef_WeakSkillTypeIDRt
isinstanceRt PySkillDataRRRRtDef_WeakBuffStatet SkillCommontGetBuffStateTypetpowRRRtDef_WeakSkillEffectIDt Def_WeakValue(RRRtobjTypetskillWeakenListtpassiveBuffWeakenListR!t
needWeakenR#tcurBuffStateTypetskillWeakenInfot weakBuffStateR%R&((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyt__WeakenSkillData|sV         
       c    Cs<|jtjdƒg}g}|j|ƒ|jƒ}g}x.|D]&}||tkrE|j|ƒqEqEW|gkrdS|jtjt|ƒƒxt|ƒD]\}}|jtj    ||t
ƒ|jtj ||t ƒ|jtj ||tƒ|jtj|dƒ|jtj||tƒq¥WdS(Ni(tSetDictR
R RRtDef_ParentSkillTypeIDtappendtlent    enumeratetDef_SummonBoost_SkillTypeIDRtDef_SummonBoost_BoostTypeRtDef_SummonBoost_EffectIDRtDef_SummonBoost_ParentIDtDef_SummonBoost_ValueR(    t    curPlayert    summonNPCtcurSkillRR R!tsummonSkillBoostListR#ti((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pytSetSummonNPCSkillBoostÄs&    c    Cs™g}xŒt|jtjƒƒD]r}|j|jtj|ƒ|jtj|ƒ|jtj|ƒ|jtj|ƒ|jtj    |ƒgƒqW|S(N(
txrangeR    R
R R=R@RARBRCRD(tcurNPCRRI((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyR ësc    CsÙ|jƒ}g}|tjkrL|jtjƒdkr=dSt|ƒ}n%|tjkrqg}|j|ƒn|gkrdS|j    ƒ}d}x?|D]7}||t
krš|t |krš||t 7}qšqšW|S(Ni( RRRR    R
R R R RRRRR(    RRt    boostTypeRRR R!taddValueR#((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pytGetSkillBoostValeByTypeús"     c Cs$|s
dS|jƒ}g}|tjkrAg}|j|ƒn|gkrQdS|jƒ}d}d}x´|D]¬}    |    tdkrœ||    tkrœqpn|    t|kr²qpn|    t}
|
dkr|dkræt    j
|ƒ}n|sòqpn|
t d|ƒ@sqpqn||    t 7}qpW|S(Nii( RRR RRRR*R(R-R.R/R0R2( RERtweakTypeR3t skillWeakListtpassiveBuffWeakListR!t    weakValueR7R#R9((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pytGetSkillWeakenValeByTypes6     
      cCs1d}t|dƒr-t|dƒ|ƒ}n|S(NitGetBuffValueByEffectID(thasattrtgetattr(RGteffectIDtboostBuffValue((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyRULscCs.i}t|dƒr*t|dƒƒ}n|S(NtGetBuffValueDict(RVRW(RGRXttmpDict((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyRZVs(tPassiveBuffEffMngRRR
t ItemControlerR.RRt    BuffSkillt    ImportAlltrangeRRRR<RR*R(R1tDef_WeakParentSkillTypeIDR-R2RR'R:RJR RORTRURZ(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Skill\SkillDataBoost.pyt<module>s(         
         :    H    '        %    -