style: 移除 Monster.go 中的多余空行
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"blazing/logic/service/fight/info"
|
||||
|
||||
"blazing/logic/service/player"
|
||||
configmodel "blazing/modules/config/model"
|
||||
"blazing/modules/config/service"
|
||||
"blazing/modules/player/model"
|
||||
|
||||
@@ -33,12 +34,17 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
|
||||
if mdata == nil {
|
||||
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
|
||||
}
|
||||
|
||||
if len(mdata.BossIds) == 0 {
|
||||
var bosinfo []configmodel.BossConfig
|
||||
switch len(mdata.BossIds) {
|
||||
case 0:
|
||||
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
|
||||
case 1:
|
||||
bosinfo = service.NewBossService().Get(mdata.BossIds[0])
|
||||
default:
|
||||
bosinfo = service.NewBossService().Get(mdata.BossIds[grand.Intn(len(mdata.BossIds))])
|
||||
}
|
||||
bosinfo := service.NewBossService().Get(mdata.BossIds[0])
|
||||
if bosinfo == nil {
|
||||
|
||||
if len(bosinfo) == 0 {
|
||||
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
|
||||
}
|
||||
dv := 24
|
||||
|
||||
@@ -64,6 +64,7 @@ func (p *Player) GenMonster() {
|
||||
if p.Data[i].ID != 0 {
|
||||
|
||||
p.Data[i].Lv = uint32(grand.N(v.MinLevel, v.MaxLevel))
|
||||
|
||||
|
||||
if len(v.RefreshID) == 1 { //说明这里只固定刷一个,概率变尼尔尼奥,不是稀有精灵
|
||||
|
||||
|
||||
Reference in New Issue
Block a user