From 44bcd51874e364012946b5f34dd7bb166d86edfb Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 31 八月 2024 00:16:46 +0800 Subject: [PATCH] 10130 【后端】福地争夺资源功能(剩余时间为0报错防范;) --- ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Couple.py index 1c90637..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 #逻辑实现 @@ -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