rune.go 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package model
  2. func RuneTypeToWearPos(typ int64) int64 {
  3. if typ >= 1 && typ <= 6 {
  4. return typ - 1
  5. }
  6. return -1
  7. }
  8. // 符文表-Rune exported from 符文配置.xlsx
  9. type Rune struct {
  10. Uid int64 `json:"Uid"` // 唯一ID
  11. Type int64 `json:"Type"` // 类型 1-攻击符文 2-均衡符文 3-防御符文 4-战争符文 5-戒律符文 6-潜能符文
  12. Name string `json:"Name"` // 名称
  13. FortModeLv int64 `json:"FortModeLv"` // 要塞等级要求 0--不限(且不显示)
  14. Res string `json:"Res"` // 资源
  15. Grade int64 `json:"Grade"` // 品阶
  16. Quality int64 `json:"Quality"` // 品质 1--白 2--绿 3--蓝 4--紫 5--橙 6--红
  17. EntrySkill1 [][]int64 `json:"EntrySkill1"` // 第一基础词条 要塞攻击力增加 【【技能类型】,【参数】】
  18. EntrySkill2 [][]float64 `json:"EntrySkill2"` // 第二基础词条 【【技能类型】,【参数】】
  19. Num int64 `json:"Num"` // 词条数量
  20. Disintegration []int64 `json:"Disintegration"` // 分解道具 【道具ID,数量】
  21. }
  22. // 符文升级表-RuneUp exported from 符文配置.xlsx
  23. type RuneLevel struct {
  24. Uid int64 `json:"Uid"` // 唯一ID
  25. Type int64 `json:"Type"` // 部位类型 1-攻击符文 2-均衡符文 3-防御符文 4-战争符文 5-戒律符文 6-潜能符文
  26. FortModeLv int64 `json:"FortModeLv"` // 要塞等级要求 该部位升级要求
  27. Lv int64 `json:"Lv"` // 等级 符文所在坑位等级 初始从【0】级开始
  28. EntrySkill1 [][]int64 `json:"EntrySkill1"` // 第一基础词条 要塞攻击力增加 【【技能类型】,【参数】】
  29. EntrySkill2 [][]float64 `json:"EntrySkill2"` // 第二基础词条 【【技能类型】,【参数】】
  30. Consume [][]int64 `json:"Consume"` // 升级消耗 【【道具ID,数量】,【道具ID,数量】】
  31. }
  32. // 符文重铸词条表-RuneEntry exported from 符文配置.xlsx
  33. type RuneEntry struct {
  34. Uid int64 `json:"Uid"` // 唯一ID
  35. Type int64 `json:"Type"` // 部位类型 1-攻击符文 2-均衡符文 3-防御符文 4-战争符文 5-戒律符文 6-潜能符文
  36. SkillType int64 `json:"SkillType"` // 属性类型
  37. Down int64 `json:"Down"` // 品阶下限
  38. Up int64 `json:"Up"` // 品阶上限
  39. Range []float64 `json:"Range"` // 数值范围 小数值保留4位 【最小值,最大值】
  40. Weight int64 `json:"Weight"` // 权重
  41. }
  42. // 符文重铸消耗表-RuneUse exported from 符文配置.xlsx
  43. type RuneUse struct {
  44. Uid int64 `json:"Uid"` // 唯一ID
  45. Grade int64 `json:"Grade"` // 品阶
  46. Quality int64 `json:"Quality"` // 品质
  47. RuneUse [][]int64 `json:"RuneUse"` // 重铸消耗
  48. LockUse []int64 `json:"LockUse"` // 锁定消耗 (每锁定1条的消耗)
  49. }
  50. // 品阶套装-RuneGrade exported from 符文配置.xlsx
  51. type RuneGrade struct {
  52. Uid int64 `json:"Uid"` // 唯一ID
  53. Grade int64 `json:"Grade"` // 品阶
  54. Quality int64 `json:"Quality"` // 品质
  55. EntrySkill [][]int64 `json:"EntrySkill"` // 要塞攻击力增加 【【技能类型】,【参数】】
  56. }