From ccbc8e1929b2e844639c2bb1ac6da369a0875c5c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 03 十二月 2021 18:54:54 +0800 Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加魅力等级属性;伴侣亲密度等级属性;优化已成亲的伴侣再次提亲时直接成亲 主干冲突) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py index 9bcdbd5..92a5286 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerDuJie.py @@ -158,7 +158,6 @@ sendPack.PlayerID = curPlayer.GetPlayerID() sendPack.RealmLV = curPlayer.GetOfficialRank() sendPack.Job = curPlayer.GetJob() - sendPack.JobRank = PlayerControl.GetJobRank(curPlayer) sendPack.AtkAdd = atkAdd/100 NetPackCommon.SendFakePack(notifyPlayer, sendPack) return @@ -297,3 +296,18 @@ sendMsg = str(sendInfo) curPlayer.MapServer_QueryPlayerResult(0, 0, 'DuJieHelpInfo', sendMsg, len(sendMsg)) return + +def DoRealmUpAddBuff(sendMsg): + #境界提升给全服在线玩家加经验BUFF + minRealmLVLimit = IpyGameDataPY.GetFuncCfg('RadioExpRealm') + playerManager = GameWorld.GetPlayerManager() + for i in xrange(playerManager.GetActivePlayerCount()): + curPlayer = playerManager.GetActivePlayerAt(i) + if curPlayer == None or not curPlayer.GetInitOK(): + continue + if PlayerControl.GetIsTJG(curPlayer): + continue + if curPlayer.GetOfficialRank() < minRealmLVLimit: + continue + curPlayer.MapServer_QueryPlayerResult(0, 0, 'AddBuff', sendMsg, len(sendMsg)) + return \ No newline at end of file -- Gitblit v1.8.0