上传商店闪避次数
This commit is contained in:
parent
908053a7c8
commit
7cfb501c2d
@ -46,7 +46,7 @@ func (this *apiComp) ChallengeFinish(session comm.IUserSession, req *pb.GuildGve
|
||||
if errdata, _ = this.module.battle.CheckBattleReport(session, req.Report); errdata != nil {
|
||||
return
|
||||
}
|
||||
if score, err = this.module.configure.getguildbossscore(conf.Group, req.Report.Harm); err != nil {
|
||||
if score, err = this.module.configure.getguildbossscore(conf.Group, req.Report.Score); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
|
@ -68,7 +68,7 @@ func (this *apiComp) Complete(session comm.IUserSession, req *pb.IsLandCompleteR
|
||||
if errdata, _ = this.module.battle.CheckBattleReport(session, req.Report); errdata != nil {
|
||||
return
|
||||
}
|
||||
if sconf, err = this.module.configure.getGamePuggsyScoreDatas(item.Level[req.Level], req.Report.Harm); err != nil {
|
||||
if sconf, err = this.module.configure.getGamePuggsyScoreDatas(item.Level[req.Level], req.Report.Score); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
|
@ -376,6 +376,10 @@ func (this *Parkour) avoid(id string, uid string, distance float32, atype int32,
|
||||
} else {
|
||||
member.Scores += conf.Value
|
||||
member.Energy += conf.Energy
|
||||
member.Weekintegral += conf.Matchvalue
|
||||
if conf.Num == 1 {
|
||||
member.Dodge++
|
||||
}
|
||||
teamScores += conf.Matchvalue
|
||||
if winSide == 1 {
|
||||
battle.RedScore = teamScores
|
||||
|
Loading…
Reference in New Issue
Block a user