|  |  |  | 
|---|
|  |  |  | #未达到升级经验 | 
|---|
|  |  |  | if curTotalExp < lvUpNeedExp: | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | needSyncTalentPoint = False | 
|---|
|  |  |  | playerNeedDoLVUp = False | 
|---|
|  |  |  | curLV = curPlayer.GetLV() | 
|---|
|  |  |  | maxLV = IpyGameDataPY.GetFuncCfg("PlayerMaxLV", 1) | 
|---|
|  |  |  | 
|---|
|  |  |  | lvIpyData = GetPlayerLVIpyData(curPlayer.GetLV()) | 
|---|
|  |  |  | # 大师天赋点 | 
|---|
|  |  |  | if lvIpyData: | 
|---|
|  |  |  | PlayerGreatMaster.AddGreatMasterSkillPointByLV(curPlayer, lvIpyData.GetTalentPoint()) | 
|---|
|  |  |  | addTalentPoint = lvIpyData.GetTalentPoint() | 
|---|
|  |  |  | if addTalentPoint: | 
|---|
|  |  |  | needSyncTalentPoint = True | 
|---|
|  |  |  | PlayerGreatMaster.AddGreatMasterSkillPointByLV(curPlayer, addTalentPoint) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | EventShell.EventResponse_LVUp(curPlayer)  # 升级触发事件 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | #    NotifyCode(curPlayer, "GeRen_liubo_127574") | 
|---|
|  |  |  |  | 
|---|
|  |  |  | #=================================================================== | 
|---|
|  |  |  |  | 
|---|
|  |  |  | # 天赋点通知 | 
|---|
|  |  |  | if needSyncTalentPoint: | 
|---|
|  |  |  | PlayerGreatMaster.Sync_GreatMasterFreeSkillPoint(curPlayer) | 
|---|
|  |  |  | # 升级需要执行的游戏功能处理 | 
|---|
|  |  |  | GameFuncComm.DoFuncOpenLogic(curPlayer) | 
|---|
|  |  |  | ChEquip.CalcEquips_OutOfPrint(curPlayer)    # 缓存绝版属性 | 
|---|
|  |  |  | 
|---|
|  |  |  | speed = int(speed * (ShareDefine.Def_MaxRateValue + buffSpeedPer) / float(ShareDefine.Def_MaxRateValue) + buffSpeed) | 
|---|
|  |  |  | GameWorld.DebugLog("    buff影响后速度值: speed=%s,buffSpeedPer=%s,buffSpeed=%s" % (speed, buffSpeedPer, buffSpeed)) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | speed = max(speed, 0)   #防小于0错误 | 
|---|
|  |  |  | if GetSpeedValue(curPlayer) != speed: | 
|---|
|  |  |  | SetSpeedValue(curPlayer, speed) | 
|---|
|  |  |  | moveSpeed = eval(FormulaControl.GetCompileFormula("MoveSpeed", moveSpeedFormat)) | 
|---|