39 lines
2.0 KiB
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package data
type Item struct {
Id int `json:"id"` //物品索引道具id唯一
ItemType int `json:"item_type"` //道具大类型
Subtype int `json:"subtype"` //道具小类型
Value int `json:"value"` //数值
Quality int `json:"quality"` //品质颜色
MaxStack int `json:"max_stack"` //叠加数量上限
MultiUse int `json:"multi_use"` //是否可多个使用
BagSortKey int `json:"bag_sort_key"` //背包排序越小越靠前默认为0最大相同的根据id排
Level int `json:"level"` //最低使用等级
Professional []int `json:"professional"` //职业需求
ElementRequire int `json:"element_require"` //元素类型需求
CanSale int `json:"can_sale"` //是否可出售
SalePriceType int `json:"sale_price_type"` //出售货币类型索引
SalePrice int `json:"sale_price"` //出售货币数量
SaleItemId int `json:"sale_item_id"` //出售物品索引
SaleItemNum int `json:"sale_item_num"` //出售物品数量
IsGainNotice int `json:"is_gain_notice"` //获取是否公告
IsStatistics int `json:"is_statistics"` //是否掉落统计
ExpireTime int `json:"expire_time"` //物品有效时间(秒)
Widen int `json:"widen"` //tips是否特殊处理宽度
Operate int `json:"operate"` //操作(客户端用)
FeedExp int `json:"feed_exp"` //装备经验0表示不可作为装备材料吞噬
TokenType int `json:"token_type"` //信物道具类型
TokenPercent int `json:"token_percent"` //信物提高炼金偏向属性概率(万.png比
UseItem bool `json:"use_item"` //是否直接使用
Cost int `json:"cost"` //道具使用消耗
}
func (data *Item) id() int {
return data.Id
}
type ItemTable struct {
table[int, *Item]
}