| | |
| | | import SkillCommon
|
| | | import SkillShell
|
| | | import PassiveBuffEffMng
|
| | | import DataRecordPack
|
| | | import CrossPlayerData
|
| | |
|
| | | import time
|
| | | #-------------------------------------------------------------
|
| | |
| | | for skillID in skillList:
|
| | | __GiveSkill(curPlayer, skillID)
|
| | |
|
| | | CrossPlayerData.OnDienstgradChange(curPlayer, dienstgradID, 1)
|
| | | |
| | | #重新刷新角色属性
|
| | | if isRefreshAttr:
|
| | | CalcAllDienstgradAttr(curPlayer)
|
| | |
| | | if curDienstgradData:
|
| | | # 删除对应技能
|
| | | __DelSkill(curPlayer, curDienstgradData)
|
| | | DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_Title, {'dienstgradID':dienstgradID})
|
| | |
|
| | | CrossPlayerData.OnDienstgradChange(curPlayer, dienstgradID, 0)
|
| | | #重新刷新角色属性
|
| | | if isRefreshAttr:
|
| | | CalcAllDienstgradAttr(curPlayer)
|
| | |
| | | # @return None
|
| | | def GiveFirstLoginDienstgrad(curPlayer):
|
| | | dienstgradIDDict = ReadChConfig.GetEvalChConfig('FirstLogin_GiveDienstgrad')
|
| | | platFormName = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
|
| | | platFormName = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | dienstgradIDList = dienstgradIDDict.get(platFormName)
|
| | | if not dienstgradIDList: #未配置的平台默认取key为0的内容
|
| | | dienstgradIDList = dienstgradIDDict.get(0, [])
|