horsegen: add sp cost to skills
This commit is contained in:
@@ -189,6 +189,7 @@ type Skill struct {
|
||||
GradeValue int
|
||||
WitCheck bool
|
||||
Activations [2]SkillActivation
|
||||
SPCost int
|
||||
IconID int
|
||||
Index int
|
||||
}
|
||||
@@ -300,8 +301,9 @@ func Skills(ctx context.Context, db *sqlitex.Pool) ([]Skill, error) {
|
||||
},
|
||||
},
|
||||
},
|
||||
IconID: stmt.ColumnInt(47),
|
||||
Index: stmt.ColumnInt(48),
|
||||
SPCost: stmt.ColumnInt(47),
|
||||
IconID: stmt.ColumnInt(48),
|
||||
Index: stmt.ColumnInt(49),
|
||||
}
|
||||
r = append(r, s)
|
||||
}
|
||||
|
||||
@@ -109,13 +109,14 @@ pub struct skill-detail
|
||||
grade-value: int
|
||||
wit-check: bool
|
||||
activations: list<activation>
|
||||
sp-cost: int
|
||||
icon-id: int
|
||||
|
||||
// Automatically generated.
|
||||
// Shows a string representation of the `skill-detail` type.
|
||||
pub fun skill-detail/show(this : skill-detail) : e string
|
||||
match this
|
||||
Skill-detail(skill-id, name, description, group, rarity, group-rate, grade-value, wit-check, activations, icon-id) -> "Skill-detail(skill-id: " ++ skill-id.show ++ ", name: " ++ name.show ++ ", description: " ++ description.show ++ ", group: " ++ group.show ++ ", rarity: " ++ rarity.show ++ ", group-rate: " ++ group-rate.show ++ ", grade-value: " ++ grade-value.show ++ ", wit-check: " ++ wit-check.show ++ ", activations: " ++ activations.show ++ ", icon-id: " ++ icon-id.show ++ ")"
|
||||
Skill-detail(skill-id, name, description, group, rarity, group-rate, grade-value, wit-check, activations, sp-cost, icon-id) -> "Skill-detail(skill-id: " ++ skill-id.show ++ ", name: " ++ name.show ++ ", description: " ++ description.show ++ ", group: " ++ group.show ++ ", rarity: " ++ rarity.show ++ ", group-rate: " ++ group-rate.show ++ ", grade-value: " ++ grade-value.show ++ ", wit-check: " ++ wit-check.show ++ ", activations: " ++ activations.show ++ ", sp-cost: " ++ sp-cost.show ++ ", icon-id: " ++ icon-id.show ++ ")"
|
||||
|
||||
// Skill rarity.
|
||||
pub type rarity
|
||||
@@ -330,6 +331,7 @@ Skill-detail(skill-id = {{ $.ID -}}
|
||||
]),
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
], icon-id = {{ $.IconID -}}
|
||||
], sp-cost = {{ $.SPCost -}}
|
||||
,icon-id = {{ $.IconID -}}
|
||||
)
|
||||
{{- end -}}
|
||||
|
||||
@@ -61,9 +61,11 @@ SELECT
|
||||
d.float_ability_value_2_3 / 1e4 AS float_ability_value_2_3,
|
||||
d.target_type_2_3,
|
||||
d.target_value_2_3,
|
||||
IFNULL(p.need_skill_point, 0) AS sp_cost,
|
||||
d.icon_id,
|
||||
ROW_NUMBER() OVER (ORDER BY d.id) - 1 AS "index"
|
||||
FROM skill_data d
|
||||
JOIN skill_names n ON d.id = n.id
|
||||
JOIN skill_groups g ON d.group_id = g.group_id
|
||||
LEFT JOIN single_mode_skill_need_point p ON d.id = p.id
|
||||
ORDER BY d.id
|
||||
|
||||
Reference in New Issue
Block a user