Files
bl/logic/service/item/item.go
昔念 4a5a7727b5
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
```
feat(boss_fight): 完善宠物捕获和战斗奖励机制

- 在宠物捕获时记录当前地图ID作为CatchMap
- 将经验值奖励改为通过道具系统发放,统一使用ItemAdd方法处理
- 调整EXP奖励的计算方式,移除原有S2C_GET_BOSS_MONSTER中的EXP字段

feat(arena): 优化竞技场对战奖励和EV分配

- 将竞技场胜利奖励的EV值
2026-02-18 22:07:50 +08:00

47 lines
1.3 KiB
Go
Raw Permalink 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 item
import (
"blazing/logic/service/common"
"blazing/modules/player/model"
)
// 实现了入站消息接口Go中通过方法集隐式实现
type ItemListInboundInfo struct {
Head common.TomeeHeader `cmd:"2605|4475" struc:"skip"`
// 查询物品id的开始
Param1 uint32
// 查询物品id的结尾
Param2 uint32
// 默认值2
Param3 uint32
}
type ItemListOutboundInfo struct {
// 物品列表,
ItemListLen uint32 `struc:"sizeof=ItemList"`
ItemList []model.SingleItemInfo
}
type GoldOnlineRemainInboundInfo struct {
Head common.TomeeHeader `cmd:"1105|1106" struc:"skip"`
}
type GoldOnlineRemainOutboundInfo struct {
// GoldNumber 金豆数量(后端返回实际数量需要*100
GoldNumber uint32 `json:"goldNumber" `
Coin int64 `struc:"uint32"`
}
// ExpTotalRemainInboundInfo 累计经验相关的入站信息
type ExpTotalRemainInboundInfo struct {
// Head 消息头部信息cmd保持原标识如需调整可根据实际需求修改
Head common.TomeeHeader `cmd:"2319" struc:"skip"`
}
// ExpTotalRemainOutboundInfo 累计经验相关的出站信息
type ExpTotalRemainOutboundInfo struct {
// TotalExp 累计经验值(根据实际业务需求确定是否需要倍率转换)
TotalExp uint32 `json:"totalExp" `
TotalEv uint32 `json:"totalEv" `
}