From dbcdbf7daf12e2a94ea4d3f1c37c10f998deb8c6 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 24 十二月 2019 16:16:23 +0800 Subject: [PATCH] 8359 【主干】活跃兑换(快速完成增加可指定次数) 8346 【恺英】【后端】协助系统(增加每日协助活跃令上限及社交加成记录) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py index ec0f2e2..37017c2 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py @@ -742,7 +742,6 @@ self.__assistAwardItemID = liheItemID fbType = GameWorld.GetMap().GetMapFBTypeByMapID(mapID) - friendAddAssistMoneyPer = IpyGameDataPY.GetFuncCfg("AssistAward", 3) GameWorld.DebugLog("执行协助奖励逻辑", self.npcID, self.lineID) copyPlayerManager = GameWorld.GetMapCopyPlayerManager() for playerID, assistPlayerIDList in self.__noAssitPlayerIDDict.items(): @@ -764,16 +763,14 @@ GameWorld.DebugLog("协助方离线或不在本地图,不给活跃令奖励: assistPlayerID=%s" % assistPlayerID, self.npcID, self.lineID) continue isFriend = assistHurtPlayer.GetIsFriend() - addAssistMoney = assistMoney - if isFriend and friendAddAssistMoneyPer: - addAssistMoney += int(assistMoney * friendAddAssistMoneyPer / 100.0) + assistMoneyType = ShareDefine.TYPE_Price_FamilyActivity + addAssistMoney = PlayerAssist.AddTodayAssistMoney(assistPlayer, assistMoneyType, assistMoney, isFriend) GameWorld.DebugLog("协助方给活跃令奖励: assistPlayerID=%s,assistMoney=%s,isFriend=%s,addAssistMoney=%s" % (assistPlayerID, assistMoney, isFriend, addAssistMoney), self.npcID, self.lineID) - PlayerControl.GiveMoney(assistPlayer, ShareDefine.TYPE_Price_FamilyActivity, addAssistMoney) # 给活跃令无视发布方是否在线 if fbType == IPY_GameWorld.fbtNull: PlayerControl.NotifyCode(assistPlayer, "AssistSuccess") else: - overDict = {FBCommon.Over_isAssist:1, FBCommon.Over_money:FBCommon.GetJsonMoneyList({ShareDefine.TYPE_Price_FamilyActivity:addAssistMoney}), + overDict = {FBCommon.Over_isAssist:1, FBCommon.Over_money:FBCommon.GetJsonMoneyList({assistMoneyType:addAssistMoney}), FBCommon.Over_itemInfo:[]} FBCommon.NotifyFBOver(assistPlayer, mapID, PlayerControl.GetFBFuncLineID(assistPlayer), 1, overDict) -- Gitblit v1.8.0