记录是否首通
This commit is contained in:
parent
aee41b80f9
commit
892168f020
@ -399,8 +399,10 @@ func (this *apiComp) Event(session comm.IUserSession, req *pb.StonehengeEventReq
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// 记录首通
|
||||
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 { //真正的消耗
|
||||
|
@ -38,6 +38,8 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.StonehengeGetLis
|
||||
update["curRoomIndes"] = stone.CurRoomIndes
|
||||
stone.Rooms = &pb.RoomData{}
|
||||
update["rooms"] = stone.Rooms
|
||||
stone.Reward = make(map[int32]bool)
|
||||
update["reward"] = stone.Reward
|
||||
stone.Webuff = make([]int32, 0)
|
||||
update["webuff"] = stone.Webuff
|
||||
stone.Enemybuff = make([]int32, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user