From cd1c6abe4db4c87fbd7dcd827d2af58a36496cb0 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期五, 26 四月 2019 22:58:25 +0800 Subject: [PATCH] 6613 子 【开发】【2.0】增加重击字体战斗飘字 / 【后端】【2.0】增加重击属性 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py index 9a8a79b..138d117 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py @@ -116,6 +116,7 @@ import PlayerCoat import PlayerQuDaoDoubleBill import PlayerFB +import SkillShell import datetime import time @@ -259,7 +260,9 @@ if curPet: curPet.SetVisible(False) - curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 1) + curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 1) # 由于前端不一定有发mapID,所以这里额外记录这个状态,不能直接用mapID判断 + curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomSceneMapID, mapID) + curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomSceneLineID, lineID) GameWorld.Log("玩家开始自定义场景!", curPlayer.GetPlayerID()) if mapID: FBLogic.OnEnterCustomScene(curPlayer, mapID, lineID) @@ -277,6 +280,8 @@ if curPet: curPet.SetVisible(True) curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomScene, 0) + curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomSceneMapID, 0) + curPlayer.SetDict(ChConfig.Def_PlayerKey_ClientCustomSceneLineID, 0) GameWorld.Log("玩家退出自定义场景!", curPlayer.GetPlayerID()) return @@ -765,6 +770,8 @@ #缥缈仙域 PlayerFairyDomain.OnLogin(curPlayer) PlayerFB.OnLogin(curPlayer) + #技能专精信息 + SkillShell.NotifyElementSkillInfo(curPlayer) curPlayer.SetState(0) # 脱机挂恢复为正常上线 curPlayer.SetFacePic(0) # 通知数据库是否保存还是下线,做一次恢复,1为保存 0为正常下线 @@ -1088,7 +1095,8 @@ #切地图要清除的buff __CheckClearBuffOnMapChange(curPlayer, tick) #上线和切地图加有限无敌Buff - SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer, ChConfig.Def_SkillID_LimitSuperBuff, tick) + if curPlayer.GetLV() > 50: + SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer, ChConfig.Def_SkillID_LimitSuperBuff, tick) #刷新玩家的视野 if not GameWorld.IsCrossServer() and PlayerControl.GetCrossMapID(curPlayer): @@ -1765,6 +1773,8 @@ NotifyPlayerBasePoint(curPlayer, pointAttrIDList) playerControl = PlayerControl.PlayerControl(curPlayer) playerControl.RefreshPlayerAttrState() + #更新技能专精 + SkillShell.RefreshElementSkillByAttr(curPlayer, pointAttrIDList) return def NotifyPlayerBasePoint(curPlayer, syncAttrIDList=[]): -- Gitblit v1.8.0