From e463972e32a6c06dd215a55e1d7799be2bc6f1c5 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 14 一月 2019 13:47:37 +0800
Subject: [PATCH] 5768 【后端】【1.5】新增8-14天活动功能(增加提前显示)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py
index 813fb9d..aee55dc 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py
@@ -37,6 +37,22 @@
         return False
     return True
 
+def DoTalentOpen(curPlayer):
+    '''天赋功能开启处理天赋点 '''
+    curLV = curPlayer.GetLV()
+    openLV = GameFuncComm.GetFuncLimitLV(ShareDefine.GameFuncID_Talent)
+    setTalentPoint = 0
+    for lv in xrange(openLV, curLV+1):
+        lvIpyData = PlayerControl.GetPlayerLVIpyData(lv)
+        addTalentPoint = lvIpyData.GetTalentPoint() if lvIpyData else 0
+        setTalentPoint += addTalentPoint
+    curFreeSkillPoint = GetGreatMasterFreeSkillPoint(curPlayer)
+    if setTalentPoint != curFreeSkillPoint:
+        SetGreatMasterFreeSkillPoint(curPlayer, setTalentPoint)
+        Sync_GreatMasterFreeSkillPoint(curPlayer)
+        GameWorld.Log('    天赋功能开启处理天赋点 beforeTalentPoint=%s,setTalentPoint=%s, curLV=%s'%(curFreeSkillPoint, setTalentPoint, curLV), curPlayer.GetID())
+    return
+
 ## 登录处理
 #  @param curPlayer
 #  @return
@@ -338,9 +354,13 @@
     # 重新刷新被动技能
     passiveEff = PassiveBuffEffMng.GetPassiveEffManager().InitObjPassiveEff(curPlayer)
     passiveEff.RefreshPassiveSkill()
-    
+    DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_ResetTalent, {'resetPoint':resetPoint})
     if isRefreshAttr:
-        curControl = PlayerControl.PlayerControl(curPlayer)
-        curControl.RefreshPlayerAttrState()
+        # 重刷被动技能
+        PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer)
+    # 重刷技能战力
+    curControl = PlayerControl.PlayerControl(curPlayer)
+    curControl.RefreshAllSkill()
+    curControl.RefreshPlayerAttrState()
     return True
 

--
Gitblit v1.8.0