6607 【2.0】【后端】技能升级功能改版(加等级限制)
| | |
| | | {
|
| | | DWORD _ElementSkillID; //专精技能ID
|
| | | DWORD MainSkillID; //主技能ID
|
| | | DWORD NeedLV; //选择需要等级
|
| | | }; |
| | |
| | | "SkillElement":(
|
| | | ("DWORD", "ElementSkillID", 1),
|
| | | ("DWORD", "MainSkillID", 0),
|
| | | ("DWORD", "NeedLV", 0),
|
| | | ),
|
| | | }
|
| | |
|
| | |
| | | |
| | | def __init__(self): |
| | | self.ElementSkillID = 0
|
| | | self.MainSkillID = 0 |
| | | self.MainSkillID = 0
|
| | | self.NeedLV = 0 |
| | | return |
| | | |
| | | def GetElementSkillID(self): return self.ElementSkillID # 专精技能ID
|
| | | def GetMainSkillID(self): return self.MainSkillID # 主技能ID |
| | | def GetMainSkillID(self): return self.MainSkillID # 主技能ID
|
| | | def GetNeedLV(self): return self.NeedLV # 选择需要等级 |
| | |
|
| | |
|
| | | def Log(msg, playerID=0, par=0):
|
| | |
| | | if not ipyData:
|
| | | return
|
| | | mainSkillID = ipyData.GetMainSkillID()
|
| | | |
| | | if curPlayer.GetLV() < ipyData.GetNeedLV():
|
| | | GameWorld.DebugLog('选择技能五行专精等级不足!')
|
| | | return
|
| | | |
| | | curElementSkillID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_SkillElementID % mainSkillID)
|
| | | if selectSkillID == curElementSkillID:
|
| | | GameWorld.DebugLog('已经是该专精技能!')
|
| | |
| | | #更新新技能
|
| | | RefreshElementSkill(curPlayer, selectSkillID)
|
| | | # 重刷被动技能
|
| | | PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer) |
| | | PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer)
|
| | | # 重刷技能战力
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshAllSkill()
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | |
|
| | | NotifyElementSkillInfo(curPlayer, mainSkillID)
|
| | | return
|
| | |
| | | # 重刷被动技能
|
| | | PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer)
|
| | | # 重刷技能战力
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshAllSkill()
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | | return
|
| | |
|
| | | def GetElementSkillCnt(curPlayer):
|