feat(game): 完善宠物融合逻辑和野外BOSS战斗机制 - 在玩家挑战野外BOSS时添加新的ger变量控制捕捉状态 - 当BOSS被标记为已捕捉(isCapture==1)时同步设置ger为-1 - 将怪物等级参数改为使用ger变量传递 - 重构宠物融合服务的数据处理逻辑 - 优化融合结果的权重随机算法 - 添加默认融合配置的查询方法 - 统一错误处理和返回值逻辑 ```
This commit is contained in:
@@ -49,8 +49,10 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
|
||||
return nil, errorcode.ErrorCodes.ErrPokemonNotExists
|
||||
}
|
||||
dv := 24
|
||||
ger := 0
|
||||
if bosinfo[0].IsCapture == 1 {
|
||||
dv = -1
|
||||
ger = -1
|
||||
}
|
||||
for i, bm := range bosinfo {
|
||||
|
||||
@@ -59,7 +61,7 @@ func (Controller) PlayerFightBoss(data1 *fight.ChallengeBossInboundInfo, p *play
|
||||
-1,
|
||||
0, //野怪没特性
|
||||
|
||||
int(bm.Lv), nil, 0)
|
||||
int(bm.Lv), nil, ger)
|
||||
monster.CatchTime = uint32(i)
|
||||
monster.ConfigBoss(bm.PetBaseConfig)
|
||||
effects := service.NewEffectService().Args(bm.Effect)
|
||||
|
||||
Reference in New Issue
Block a user