25 lines
998 B
Go
25 lines
998 B
Go
package data
|
|
|
|
type Warship struct {
|
|
Id int `json:"id"` //索引(ID)
|
|
ItemId int `json:"item_id"` //道具ID
|
|
Type int `json:"type"` //战舰等级类型
|
|
InherentSkillId int `json:"inherent_skill_id"` //固有技能ID
|
|
RandomSkillNum int `json:"random_skill_num"` //出生随机技能个数
|
|
ConsumeItem int `json:"consume_item"` //洗练消耗道具
|
|
ItemQuantities int `json:"item_quantities"` //洗练消耗道具数量
|
|
LockItem int `json:"lock_item"` //洗练锁定道具
|
|
Lock1Quantities int `json:"lock1_quantities"` //锁定1个技能消耗数量
|
|
Lock2Quantities int `json:"lock2_quantities"` //锁定2个技能消耗数量
|
|
Lock3Quantities int `json:"lock3_quantities"` //锁定3个技能消耗数量
|
|
ReturnPercent int `json:"return_percent"` //吞噬返还比例万分比
|
|
}
|
|
|
|
func (data *Warship) id() int {
|
|
return data.Id
|
|
}
|
|
|
|
type WarshipTable struct {
|
|
table[int, *Warship]
|
|
}
|