horsegen: generate skill groups in go

This commit is contained in:
2026-01-16 21:26:30 -05:00
parent dc2094bd50
commit 19fb713aaa
3 changed files with 260 additions and 0 deletions

View File

@@ -52,4 +52,10 @@ var SkillNameToID = map[string]SkillID{
{{ printf "%q" $s.Name }}{{ if ne $s.InheritID 0 }} + " (Inherited)"{{ end }}: {{ $s.ID }},
{{- end }}
}
var SkillGroups = map[int32][4]SkillID{
{{- range $g := $.Groups }}
{{ $g.ID }}: { {{- range $s := index $.Related $g.ID }}Skill{{ goenum $s.Name }}{{ if ne $s.InheritID 0 }}Inherit{{ end }}, {{ end -}} },
{{- end }}
}
{{ end }}