aboutsummaryrefslogtreecommitdiff
path: root/internal/validate
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-14 03:05:42 -0400
committerhistoria <[not public]>2026-07-14 03:05:42 -0400
commit430c81bd2056769e1326df9d1dff983afe7f33df (patch)
tree83b7a7695c60519023b7634a3f552f66b34f7dbf /internal/validate
parentd72957499f1e25741b8f7a91746fbe132fa68161 (diff)
downloadthehouseoficarus-430c81bd2056769e1326df9d1dff983afe7f33df.tar.gz
fix(admin): tech tab loading yaml and css
Diffstat (limited to 'internal/validate')
-rw-r--r--internal/validate/checks.go7
-rw-r--r--internal/validate/validate.go6
2 files changed, 0 insertions, 13 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go
index 7ac6fa1..527b558 100644
--- a/internal/validate/checks.go
+++ b/internal/validate/checks.go
@@ -1068,13 +1068,6 @@ func validateTechs(s Source) []Issue {
Message: fmt.Sprintf("Tech %q: has no name", def.ID),
})
}
- if def.Category != "" && !knownTechCategories[def.Category] {
- issues = append(issues, Issue{
- Level: "WARN",
- Type: "reference",
- Message: fmt.Sprintf("Tech %q: unknown category %q", def.ID, def.Category),
- })
- }
if def.DrainRate < 0 {
issues = append(issues, Issue{
Level: "ERROR",
diff --git a/internal/validate/validate.go b/internal/validate/validate.go
index 234651e..735c9ef 100644
--- a/internal/validate/validate.go
+++ b/internal/validate/validate.go
@@ -36,7 +36,6 @@ type CourseView struct {
type TechView struct {
ID string
Name string
- Category string
DrainRate float64
}
@@ -151,11 +150,6 @@ func LogIssues(issues []Issue) {
}
}
-var knownTechCategories = map[string]bool{
- "accuracy": true, "strength": true, "defense": true, "ranged": true,
- "science": true, "protection": true, "utility": true, "combo": true,
-}
-
// reservedTechIDs are tech IDs whose semantics are coupled to code logic and
// must exist in YAML (damage protection mapping + death retribution).
var reservedTechIDs = map[string]bool{