26 lines
912 B
Go
Raw Normal View History

2025-06-04 18:17:39 +08:00
package data
type Drop struct {
Id int `json:"id"` //索引(ID)
DropId int `json:"drop_id"` //掉落ID(其他引用这个ID)
BoxId int `json:"box_id"` //箱子
BoxRate int `json:"box_rate"` //箱子概率(万分比)
MinDropNum int `json:"min_drop_num"` //最小掉落次数
MaxDropNum int `json:"max_drop_num"` //最大掉落次数
ItemId int `json:"item_id"` //物品id
ItemNum int `json:"item_num"` //物品数量
IsBind int `json:"is_bind"` //是否绑定
RecordId int `json:"record_id"` //计数id
DayMaxNum int `json:"day_max_num"` //个人每日最大掉落数
ItemRate int `json:"item_rate"` //物品權重(万分比)
DropNum string `json:"drop_num"` //掉落个数
}
func (data *Drop) id() int {
return data.Id
}
type DropTable struct {
table[int, *Drop]
}