From fc8826511e04c01ff3b9c6ddeb3ee8350f164a43 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 29 Aug 2023 15:46:22 +0800 Subject: [PATCH] =?UTF-8?q?Rtype212=20=E5=95=86=E9=98=9F=E5=88=B0=E8=BE=BE?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E5=9F=8E=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 19 ------------------- modules/caravan/api_buyorsell.go | 2 +- modules/caravan/api_gotocity.go | 4 ++++ 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/comm/const.go b/comm/const.go index 4fc3b74f1..37742fec5 100644 --- a/comm/const.go +++ b/comm/const.go @@ -934,25 +934,6 @@ const ( ChatSystem15 ChatSystemType = 15 ///狩猎 【玩家名称】通关了巨型猩猩难度8! ) -// 巨兽列车 -const ( - TrollBuyCount int32 = iota + 1 // 单日最大交易次数 - - TrollAIBuyCount //离线最多交易次数 - - TrollItemCount //货物最大存储上限 - - TrollGridCount //背包格子 - - TrollBuy //挂机卖出标准/千分比 - - TrollSell //挂机进货标准/千分比 - - TrollCantSell //不让交易的前后时间/S - - TrollSurprise //惊喜货物售价系数 -) - // 邮件ID const ( Yueka_1 string = "Activity_PrivilegeCardDailyReward_lv1" //月卡1 diff --git a/modules/caravan/api_buyorsell.go b/modules/caravan/api_buyorsell.go index 69ab25a9e..ba069ede9 100644 --- a/modules/caravan/api_buyorsell.go +++ b/modules/caravan/api_buyorsell.go @@ -247,7 +247,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe // Rtype211 TaskType = 211 // 向指定X城市,贩卖价值X虚拟币以上的对应城市急需货物 szTask = append(szTask, comm.GetBuriedParam(comm.Rtype211, req.City, sellSpValue)) } - szTask = append(szTask, comm.GetBuriedParam(comm.Rtype212, req.City)) // 接取任务后,商队抵达指定城市 + go this.module.ModuleBuried.TriggerBuried(session.Clone(), szTask...) return } diff --git a/modules/caravan/api_gotocity.go b/modules/caravan/api_gotocity.go index fab7b2e67..df915b3e4 100644 --- a/modules/caravan/api_gotocity.go +++ b/modules/caravan/api_gotocity.go @@ -127,5 +127,9 @@ func (this *apiComp) GotoCity(session comm.IUserSession, req *pb.CaravanGotoCity resp.Data = list resp.Newtask = bNewTask session.SendMsg(string(this.module.GetType()), "gotocity", resp) + // 任务统计 + var szTask []*pb.BuriedParam + szTask = append(szTask, comm.GetBuriedParam(comm.Rtype212, req.City)) // 接取任务后,商队抵达指定城市 + go this.module.ModuleBuried.TriggerBuried(session.Clone(), szTask...) return }