总结算的时候记录通关数据

This commit is contained in:
meixiongfeng 2023-08-17 18:37:00 +08:00
parent 7d2f1dfcc8
commit 058f3b5ffd
2 changed files with 5 additions and 2 deletions

View File

@ -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 { //真正的消耗

View File

@ -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