All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
fix(game): 修复寒流枪技能中宠物ID错误 - 将寒流枪技能中第二个宠物的ID从505修正为1905 - 移除了未使用的Effect138效果代码(先出手反弹伤害效果) ```
42 lines
942 B
Go
42 lines
942 B
Go
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"`
|
||
}
|