From 97138b44cf3a1dc987e56e728c22c1dba4adf3e0 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 09 十二月 2021 11:18:40 +0800 Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加吃喜糖增加繁荣度提示) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerLove.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerLove.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerLove.py index 78e3e0c..395be4e 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerLove.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerLove.py @@ -973,6 +973,14 @@ if canBuy: addProsperityValue = IpyGameDataPY.GetFuncCfg("LoveCandy", 3) # 喜糖每次增加繁荣度 AddProsperity(candyObj, addProsperityValue) + PlayerControl.NotifyCode(curPlayer, "EatCandyProsperity", [curPlayer.GetName(), addProsperityValue]) + for pID in [playerIDA, playerIDB]: + if playerID == pID: + continue + player = GameWorld.GetPlayerManager().FindPlayerByID(pID) + if not player or PlayerControl.GetIsTJG(player): + continue + PlayerControl.NotifyCode(player, "EatCandyProsperity", [curPlayer.GetName(), addProsperityValue]) if isFree: candyObj.playerFreeEatCountDict[playerID] = playerFreeEatCount + 1 Sync_CandyList(None, [candyObj]) -- Gitblit v1.8.0