This commit is contained in:
@@ -87,13 +87,17 @@ func (h Controller) ArenaFightOwner(data *fight.ARENA_FIGHT_OWENR, c *player.Pla
|
||||
UseEV: int32(addev),
|
||||
})
|
||||
} else {
|
||||
c.GetSpace().Owner.ARENA_Player.GetInfo().MaxArenaWins += 1
|
||||
oper := c.GetSpace().Owner.ARENA_Player.GetInfo()
|
||||
if oper != nil {
|
||||
c.GetSpace().Owner.ARENA_Player.GetInfo().MaxArenaWins += 1
|
||||
|
||||
c.GetSpace().Owner.ARENA_Player.GetInfo().EVPool += addev
|
||||
c.GetSpace().Owner.ARENA_Player.GetInfo().EVPool += addev
|
||||
|
||||
c.GetSpace().Owner.ARENA_Player.SendPackCmd(50001, &pet.S2C_50001{
|
||||
UseEV: int32(addev),
|
||||
})
|
||||
}
|
||||
|
||||
c.GetSpace().Owner.ARENA_Player.SendPackCmd(50001, &pet.S2C_50001{
|
||||
UseEV: int32(addev),
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,17 +30,14 @@ func (h Controller) EnterMap(data *space.InInfo, c *player.Player) (result *info
|
||||
println("进入地图", c.Info.UserID, c.Info.MapID)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if data.MapId > 10000 && data.MapId != c.Info.UserID {
|
||||
|
||||
c.Service.Done.UpdateRoom(1, 0)
|
||||
service.NewDoneService(data.MapId).UpdateRoom(0, 1)
|
||||
}
|
||||
}()
|
||||
// copier.CopyWithOption(result, c.Info, copier.Option{DeepCopy: true})
|
||||
|
||||
c.GetSpace().EnterMap(c)
|
||||
if data.MapId > 10000 && data.MapId != c.Info.UserID {
|
||||
|
||||
c.Service.Done.UpdateRoom(1, 0)
|
||||
service.NewDoneService(data.MapId).UpdateRoom(0, 1)
|
||||
}
|
||||
return nil, -1
|
||||
}
|
||||
func (h Controller) GetMapHot(data *maphot.InInfo, c *player.Player) (result *maphot.OutInfo, err errorcode.ErrorCode) {
|
||||
|
||||
Reference in New Issue
Block a user