消耗钻石比赛开始再统计
This commit is contained in:
parent
b9fbedee9e
commit
515de3a987
|
@ -1913,10 +1913,14 @@ func (this *Player) AddDiamond(num, add int64, gainWay int32, oper, remark strin
|
||||||
} else {
|
} else {
|
||||||
this.Diamond += num
|
this.Diamond += num
|
||||||
}
|
}
|
||||||
TaskSubjectSingleton.Touch(common.TaskTypeCostDiamond, &TaskData{
|
switch gainWay {
|
||||||
SnId: this.SnId,
|
case common.GainWay_MatchSignup: // 排除的
|
||||||
Num: -num,
|
default:
|
||||||
})
|
TaskSubjectSingleton.Touch(common.TaskTypeCostDiamond, &TaskData{
|
||||||
|
SnId: this.SnId,
|
||||||
|
Num: -num,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.SendDiffData()
|
this.SendDiffData()
|
||||||
|
|
|
@ -732,6 +732,12 @@ func (this *Tournament) Start(platform string, tmId int32) {
|
||||||
GameFreeID: tm.dbGameFree.GetId(),
|
GameFreeID: tm.dbGameFree.GetId(),
|
||||||
Num: 1,
|
Num: 1,
|
||||||
})
|
})
|
||||||
|
if matchInfo.GetSignupCostDiamond() > 0 {
|
||||||
|
TaskSubjectSingleton.Touch(common.TaskTypeCostDiamond, &TaskData{
|
||||||
|
SnId: v.SnId,
|
||||||
|
Num: matchInfo.GetSignupCostDiamond(),
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.signupPlayers[platform][tmId].signup = make(map[int32]*TmPlayer)
|
this.signupPlayers[platform][tmId].signup = make(map[int32]*TmPlayer)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue