秘境随机事件修复
This commit is contained in:
parent
322d0130c7
commit
5d95f02dbe
@ -28,10 +28,10 @@ func (this *apiComp) EnterLevel(session comm.IUserSession, req *pb.StonehengeEnt
|
||||
portal int32 // 生成传送门 构造房间数据
|
||||
confStage *cfg.GameStoneStageData
|
||||
curRoomConf *cfg.GameStoneRoomData // 当前房间
|
||||
szBuff []int32
|
||||
err error
|
||||
szEvent []int32
|
||||
roles []*pb.BattleRole
|
||||
//szBuff []int32
|
||||
err error
|
||||
szEvent []int32
|
||||
roles []*pb.BattleRole
|
||||
)
|
||||
update = make(map[string]interface{})
|
||||
if errdata = this.EnterLevelCheck(session, req); errdata != nil {
|
||||
@ -135,11 +135,11 @@ func (this *apiComp) EnterLevel(session comm.IUserSession, req *pb.StonehengeEnt
|
||||
}
|
||||
|
||||
if len(szEvent) > 0 {
|
||||
szBuff = this.module.configure.GetEventGroupDataByLottery(szEvent...)
|
||||
for _, v := range szBuff {
|
||||
event := this.module.configure.GetEventGroupDataByLottery(szEvent...)
|
||||
for _, v := range event {
|
||||
stone.Rooms.Eventid[v] = false
|
||||
}
|
||||
this.module.modelStonehenge.AddNewEvent(szEvent, stone)
|
||||
this.module.modelStonehenge.AddNewEvent(event, stone)
|
||||
}
|
||||
// 特权校验
|
||||
for _, v := range stone.Privilege {
|
||||
|
@ -115,11 +115,11 @@ func (this *apiComp) GotoRoom(session comm.IUserSession, req *pb.StonehengeGotoR
|
||||
stone.Rooms.Eventid[curRoomConf.BossEvent] = false
|
||||
}
|
||||
if len(szEvent) > 0 {
|
||||
szEvent = this.module.configure.GetEventGroupDataByLottery(szEvent...)
|
||||
for _, v := range szEvent {
|
||||
event := this.module.configure.GetEventGroupDataByLottery(szEvent...)
|
||||
for _, v := range event {
|
||||
stone.Rooms.Eventid[v] = false
|
||||
}
|
||||
this.module.modelStonehenge.AddNewEvent(szEvent, stone)
|
||||
this.module.modelStonehenge.AddNewEvent(event, stone)
|
||||
}
|
||||
|
||||
//stone.Rooms.Portal = this.module.configure.GetRoomGroupDataByLottery(req.Portal)
|
||||
|
Loading…
Reference in New Issue
Block a user