From d9e7f6f2442dc61a0bffd9a8dc9fcd6cdeee5c48 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 30 八月 2024 21:28:23 +0800 Subject: [PATCH] 10256 【越南】【砍树】排行榜名次加入积分限制(修复特殊排名规则跨服榜单报错bug;) --- ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py index 50dc7d3..7d042ca 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py @@ -29,6 +29,7 @@ GameWorld.DebugAnswer(curPlayer, "设置成亲: Couple 1 伴侣ID [可选聘礼ID]") GameWorld.DebugAnswer(curPlayer, "设亲密度: Couple 2 目标ID 亲密度") GameWorld.DebugAnswer(curPlayer, "增加密度: Couple 3 目标ID 亲密度") + GameWorld.DebugAnswer(curPlayer, "添加喜宴: Couple 4 聘礼ID 宴会个数") return #逻辑实现 @@ -93,7 +94,7 @@ PyGameData.g_marryReqInfo[tagPlayerID] = reqData reqPlayer = GameWorld.GetPlayerManager().FindPlayerByID(tagPlayerID) - isOK = PlayerLove.__DoMarryResponse(curPlayer, reqPlayer, tagPlayerID, 1) + isOK = PlayerLove.__DoMarryResponse(curPlayer, playerID, reqPlayer, tagPlayerID, 1) GameWorld.DebugAnswer(curPlayer, "设置伴侣【%s】 %s" % (tagPlayerID, isOK)) return @@ -118,7 +119,14 @@ PyDataManager.GetIntimacyManager().AddIntimacyBoth(playerID, tagPlayerID, addValue) intimacys = PyDataManager.GetIntimacyManager().GetIntimacys(playerID) if intimacys: - GameWorld.DebugAnswer(curPlayer, "更新目标【%s】亲密度: %s" % (tagPlayerID, intimacys.GetTagIntimacy(tagPlayerID))) + GameWorld.DebugAnswer(curPlayer, "更新目标【%s】亲密度: %s" % (tagPlayerID, intimacys.GetTagIntimacy(tagPlayerID))) + + # 增加亲密度 + elif value1 == 4: + bridePriceID = gmList[1] if len(gmList) > 1 else 1 + addCount = gmList[2] if len(gmList) > 2 else 1 + addCount = PlayerLove.GMAddCandy(curPlayer, bridePriceID, addCount) + GameWorld.DebugAnswer(curPlayer, "添加喜宴数:%s" % addCount) else: __Help(curPlayer) return -- Gitblit v1.8.0