Rtype212 商队到达指定城市

This commit is contained in:
meixiongfeng 2023-08-29 15:46:22 +08:00
parent 338607d7ce
commit fc8826511e
3 changed files with 5 additions and 20 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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
}