Files
bl/logic/controller/active_寒流枪.go
昔念 2860bcfa5c
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
1
2026-02-09 01:29:33 +08:00

26 lines
576 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/fight"
"blazing/logic/service/pet"
"blazing/logic/service/player"
)
// CatchPet 传送仓抓稀有宠物
// data: 空输入结构
// c: 当前玩家对象
// 返回: 捕捉结果消耗的EV值和错误码
func (h Controller) HanLiuQiang(data *pet.C2S_2608, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
if c.ItemAdd(100245, 1) {
return
}
if cool.Config.ServerInfo.IsVip != 0 {
c.ItemAdd(500655, 1)
}
return result, -1
}