cehua_wcy
2018-10-17 ef7fc974ac74a041233e1cf6b76f15e108251b0b
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
#¹¼[c@sodZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z eedd„Zd„Zd    „Zed
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$dS(sVersion = 2017-07-26 22£º00iÿÿÿÿNcCs/|dkrdS|jƒ}|j|ƒ}|S(N(tNonetGetDienstgradManagert GetDienstgrad(t    curPlayert dienstgradIDtcurDienstgradMgrt curDienstgrad((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytPlayerGetDienstgrad%s
  cCstjd|ƒS(Nt
Dienstgrad(t IpyGameDataPYtGetIpyGameData(R((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytGetDienstgradData.sc    Cs¬| r| rdSt}x,|D]$}t||dtƒrt}qqWx2|D]*}t||dtdtƒrNt}qNqNW|r¨t|ƒtj|ƒ}|jƒn|S(Nt isRefreshAttrt isDelRepeat(tFalsetPlayerDelDienstgradtTruetPlayerAddDienstgradtCalcAllDienstgradAttrt PlayerControltRefreshPlayerAttrState(RtdelDienstgradIDListtaddDienstgradIDListt    isRefreshRt playerControl((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytPlayerDelAddDienstgrad1s    
 ic Csü|dkrtSt|ƒ}|dkr,tS|jƒ}|j|ƒ}|rj|rc|j|ƒqjtSn|j|ƒ}|dkr•|j|ƒn|j    |ƒ|j
ƒ}x|D]}    t ||    ƒqµW|røt |ƒt j |ƒ}
|
jƒntS(Ni(RR RRRtDeleteDienstgradRt AddDienstgradt SetExpireTimetSync_PlayerGetDienstgradt    GetSkillst __GiveSkillRRR( RRR R t
expireTimetcurDienstgradDataRRt    skillListtskillIDR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyRKs.        
 cCsætjƒj|dƒ}|dkr9tjd|ƒdStj||ƒsOdStj||ƒsvtjd|ƒdS|j    ƒ}|j
|ƒr¦tjd|ƒdS|j |ƒt j ƒj||ƒtj|ƒj|dƒdS(Nis#__GiveSkill() hasn't find skill(%s)s4__GiveSkill() learn skill(%s) condition isn't enoughs$__GiveSkill() have learned skill(%s)i(t    GameWorldt GetGameDatatFindSkillByTypeRtDebugLogt SkillCommont CheckSkillJobt
SkillShelltCheckLearnSkillConditiontGetSkillManagertFindSkillBySkillTypeIDtLVUpSkillBySkillTypeIDtPassiveBuffEffMngtGetPassiveEffManagertRegistPassiveEffRtRefreshSkillFightPowerEx(Rt
skillResIDt    skillDatat skillManager((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyRs"   cCs‹|jƒ}t}xB|D]:}|jƒ}|j|ƒs@qn|j|ƒt}qW|sadStjƒj|ƒt    j    |ƒj
ƒdS(N( RRR,R-tDeleteSkillBySkillTypeIDRR/R0R1RtRefreshAllSkill(RR!R"tisDelR3R5((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyt
__DelSkill¦s    
cCsÖ|dkrdS|dkr dS|jƒ}|j|ƒ}|dkrKdS|jƒ|krjt|ƒn|j|ƒ|j|ƒt|ƒ}|r¦t||ƒn|rÒt    |ƒt
j
|ƒ}|j ƒnt S(Ni( RRRt GetCurGradIDtPlayerTakeOffDienstgradRtSync_PlayerDelDienstgradR R9RRRR(RRR RRR!R((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyR¿s(        
 cCse|jƒ}|j|ƒ}|dkr+dS|jƒ}||krGdS|j|ƒ|j|ƒdS(N(RRRR:t SetCurGradIDtNotify_PlayerChangeDienstgrad(RRRRt curOldGradID((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytPlayerFitOnDienstgradês      cCsF|jƒ}|jƒ}|dkr(dS|jdƒ|jdƒdS(Ni(RR:R=R>(RRR?((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyR;ýs     cCs9|jƒ}|jƒ}|dkr(tS|jdƒtS(Ni(Rt GetUseGradIDRt SetUseGradIDR(RRR?((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytUnUseDienstgrad s     cCsX|jƒ}|j|ƒ}|dkr+tS|jƒ}||krGtS|j|ƒtS(N(RRRRRARBR(RRRRR?((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyt UseDienstgrads     cCs"tjƒj|ƒ}t||ƒS(N(R$tGetPlayerManagertGetPlayerByIndexR(tindexRR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyR0scCs"tjƒj|ƒ}t||ƒS(N(R$RERFR(RGRR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyR8scCs&tjƒj|ƒ}t||ƒdS(N(R$RERFR(RGRR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyt DelDienstgrad@scCs&tjƒj|ƒ}t||ƒdS(N(R$RERFR@(RGRR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytFitOnDienstgradIscCs#tjƒj|ƒ}t|ƒdS(N(R$RERFR;(RGR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytTakeOffDienstgradPs
cCs3tjƒj|ƒ}|dkr%dSt|ƒdS(N(R$RERFRtSync_AllDienstgradOnLogin(RGttickR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytOnCPlayerDienstgradRefresh\s
 
cCs-|jƒ}|jƒ|j|jƒƒdS(N(RtSync_AllDienstgradR>R:(RR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyRKds 
cCsdS(N((RGt
clientDataRL((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytUseDienstgradPacksscCsbtjƒ}|jƒ}|jƒ}|dkr>t|ƒdS|rTt||ƒn
t|ƒdS(Ni(t IPY_GameWorldtIPY_CPlayerChangeDienstgradt    GetGradIDtGetStateRJRI(RGRLtsendPackt    curGradIDt curGradState((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytOnCPlayerChangeDienstgrads    
cCsgg}|jƒjƒ}xHt|ƒD]:}|jƒj|ƒ}|dkrRq%n|j|ƒq%W|S(Ni(RtGetCounttxrangetAtGradIDtappend(RttitleActiveListtgradCnttiRV((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytGetDienstgradActiveInfo£s c
CsógtdƒD] }i^q }|jƒ}|jƒ}xŸt|ƒD]‘}|j|ƒ}|dkrkqDnt|ƒ}|dkr‰qDn|jƒ}|jƒ}x1t    |ƒD]#\}}    t
j |    |||ƒq®WqDWt
j |t j|ƒdS(Nii(trangeRRYRZR[R Rt GetLightTypetGetLightAttributet    enumerateRtCalcAttrDict_TypetSetCalcAttrListValuetChConfigtDef_CalcAttrFunc_Dienstgrad(
RR_t allAttrListtdienstgradManagerR^RVR!t attrTypeListt attrValueListtattrID((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyR®s        cCsdS(N((R((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytOnDayÈsc Csyttjƒƒ}|jtjƒ}||tjtjkrBdS|jtj|ƒ|jƒjƒ}g}xçt    |ƒD]Ù}|jƒj
|ƒ}|s¡qzn|j ƒ}|dkr¿qznt |ƒ}|dkrÝqzn|jƒ}    |    s|jƒ}    |    dkrqzqn|jƒj|ƒ}
tj|
ƒ} | |    krFqzn|j|ƒqzWx|D]}t||ƒq^WdS(Ni(tintttimet GetTickByTypeRgtTYPE_Player_Tick_DienstgradtTYPE_Player_Tick_Timet SetTickByTypeRRYRZtAtRSR Rt GetExpireTimet AtCreateTimeR$tGetPastSecondsR\R( RRLtlastTickR^t needClearListR_tcurGradRVR!t curExpireTimet curCreateTimet pastSeconds((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytCheckDienstgradTimeoutÎs<             cCsjtjdƒ}tj|ƒ}|j|ƒ}|sH|jdgƒ}nx|D]}t||ƒqOWdS(NtFirstLogin_GiveDienstgradi(t ReadChConfigtGetEvalChConfigR$tGetPlayerPlatformtgetR(RtdienstgradIDDictt platFormNametdienstgradIDListR((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pytGiveFirstLoginDienstgradûs (%t__doc__R$RRQRgRR    R(R*R/RpRR RRRRR9RR@R;RCRDRRRHRIRJRMRKRPRXR`RRnRRˆ(((sa.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDienstgrad.pyt<module>sF                              B         +                                                                          -