ecs/servers/game/data_old/idle_profit.go
2025-06-04 18:17:39 +08:00

24 lines
1.0 KiB
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 data
type IdleProfit struct {
Index int `json:"index"` //序号
Id int `json:"id"` //场景关卡ID
ItemId []int `json:"item_id"` //固定收益道具
ItemNum []int `json:"item_num"` //固定收益道具数量
DropId int `json:"drop_id"` //掉落ID奖励
Interval int `json:"interval"` //掉落间隔(秒)
QuickRewardDuration int `json:"quick_reward_duration"` //快速战斗奖励时长(秒)
MoneyType int `json:"money_type"` //货币类型ID
MoneyNum int `json:"money_num"` //货币消耗数量
DailyTimes int `json:"daily_times"` //每日快速战斗次数
IdleLimit int `json:"idle_limit"` //挂机时长上限(秒)
}
func (data *IdleProfit) id() int {
return data.Id
}
type IdleProfitTable struct {
table[int, *IdleProfit]
}