上传代码
This commit is contained in:
parent
749b210ded
commit
57d52b1fd3
@ -128,9 +128,12 @@ func (this *apiComp) ChallengeFinish(session comm.IUserSession, req *pb.GuildGve
|
||||
}
|
||||
v.Record = append(v.Record, record)
|
||||
go this.module.modelGuildGve.booshpchangepush(req.Guildid, info)
|
||||
if v.Hp < 0 {
|
||||
if v.Hp <= 0 {
|
||||
v.Hp = 0
|
||||
info.Kills++
|
||||
if info.Fire == v.Boosid {
|
||||
info.Fire = 0
|
||||
}
|
||||
info.Lastkilltime = configure.Now().Unix()
|
||||
this.module.modelRank.updateRank(info)
|
||||
go this.module.modelGuildGve.booskill(req.Guildid, req.Boosid, info)
|
||||
|
@ -249,7 +249,7 @@ func (this *ModelUniongve) booskill(unionid string, boosid int32, info *pb.DBGui
|
||||
return
|
||||
}
|
||||
v.Boosid = conf.BossId
|
||||
v.Hp = v.Hp
|
||||
v.Hp = conf.Hp
|
||||
v.Record = make([]*pb.DBGveRecord, 0)
|
||||
}
|
||||
if err = this.updateGuildGve(info); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user