总结算的时候记录通关数据
This commit is contained in:
parent
7d2f1dfcc8
commit
058f3b5ffd
@ -401,8 +401,8 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
}
|
||||
}
|
||||
// 记录首通
|
||||
stone.Reward[stone.StageID] = true
|
||||
update["reward"] = stone.Reward
|
||||
// stone.Reward[stone.StageID] = true
|
||||
// update["reward"] = stone.Reward
|
||||
}
|
||||
if len(eventConf.CostItem) > 0 {
|
||||
if errdata = this.module.ConsumeRes(session, eventConf.CostItem, true); errdata != nil { //真正的消耗
|
||||
|
@ -45,6 +45,9 @@ func (this *apiComp) Finish(session comm.IUserSession, req *pb.StonehengeFinishR
|
||||
}
|
||||
}
|
||||
|
||||
stone.Reward[stone.StageID] = true
|
||||
update["reward"] = stone.Reward
|
||||
|
||||
stone.StageID = 0
|
||||
update["stageID"] = stone.StageID
|
||||
stone.CurRoomIndes = 0
|
||||
|
Loading…
Reference in New Issue
Block a user