Files
bl/logic/controller/active_寒流枪.go
昔念 0961dc43e3
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
fix(game): 修复寒流枪技能中宠物ID错误

- 将寒流枪技能中第二个宠物的ID从505修正为1905
- 移除了未使用的Effect138效果代码(先出手反弹伤害效果)
```
2026-03-09 22:49:48 +08:00

42 lines
942 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package controller
import (
"blazing/common/socket/errorcode"
"blazing/cool"
"blazing/logic/service/common"
"blazing/logic/service/fight"
"blazing/logic/service/player"
"blazing/modules/player/model"
)
// CatchPet 传送仓抓稀有宠物
// data: 空输入结构
// c: 当前玩家对象
// 返回: 捕捉结果消耗的EV值和错误码
func (h Controller) HanLiuQiang(data *C2S_2608, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
if c.ItemAdd(100245, 1) {
return
}
if cool.Config.ServerInfo.IsVip == 0 {
return
}
c.ItemAdd(500655, 1)
pet := model.GenPetInfo(426, 31, -1, -1, 100, nil, 0)
c.Service.Pet.PetAdd(pet)
pet = model.GenPetInfo(1567, 31, -1, -1, 100, nil, 0)
c.Service.Pet.PetAdd(pet)
pet = model.GenPetInfo(1905, 31, -1, -1, 100, nil, 0)
c.Service.Pet.PetAdd(pet)
return result, -1
}
type C2S_2608 struct {
Head common.TomeeHeader `cmd:"2608" struc:"skip"`
}