Files
bl/logic/controller/active_寒流枪.go
xinian d83cf365ac
Some checks failed
ci/woodpecker/push/my-first-workflow Pipeline failed
更新说明
2026-04-05 23:13:06 +08:00

42 lines
980 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"
)
// 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, 0)
// 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
}
// C2S_2608 定义请求或响应数据结构。
type C2S_2608 struct {
Head common.TomeeHeader `cmd:"2608" struc:"skip"`
}