赛季通行证兑换开关

This commit is contained in:
sk 2024-07-06 01:28:45 +08:00
parent 279b5b84cb
commit 4d1e89cf91
6 changed files with 39 additions and 30 deletions

View File

@ -704,6 +704,7 @@ const (
TaskTypeCostDiamond = 27 // 消耗钻石数量 TaskTypeCostDiamond = 27 // 消耗钻石数量
TaskTypeTienlenLoseCoin = 28 // Tienlen输的金币数量 TaskTypeTienlenLoseCoin = 28 // Tienlen输的金币数量
TaskTypeTienlenWinCoin = 29 // Tienlen赢取金币数量 TaskTypeTienlenWinCoin = 29 // Tienlen赢取金币数量
TaskTypeRankMatchWinTimes = 30 // 排位胜利次数
) )
const ( const (

Binary file not shown.

Binary file not shown.

View File

@ -867,7 +867,7 @@
"Id": 11006, "Id": 11006,
"Order": 6, "Order": 6,
"ActivityType": 6, "ActivityType": 6,
"TaskType": 6, "TaskType": 30,
"TargetTimes": 3, "TargetTimes": 3,
"FinishTimes": 1, "FinishTimes": 1,
"Award": { "Award": {

View File

@ -454,6 +454,14 @@ func init() {
GameFreeID: scene.dbGameFree.GetId(), GameFreeID: scene.dbGameFree.GetId(),
Num: 1, Num: 1,
}) })
if scene.IsRankMatch() {
TaskSubjectSingleton.Touch(common.TaskTypeRankMatchWinTimes, &TaskData{
SnId: player.SnId,
GameID: scene.gameId,
GameFreeID: scene.dbGameFree.GetId(),
Num: 1,
})
}
// 大众场 // 大众场
if common.IsDaZhong(scene.gameId) { if common.IsDaZhong(scene.gameId) {
TaskSubjectSingleton.Touch(common.TaskTypeDaZhong, &TaskData{ TaskSubjectSingleton.Touch(common.TaskTypeDaZhong, &TaskData{

Binary file not shown.