aboutsummaryrefslogtreecommitdiff
path: root/internal/object/object.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 19:20:17 -0400
committerhistoria <[not public]>2026-10-05 19:20:17 -0400
commit1091d0fae96d152c11aec1bb2dd949f51ed5aa1e (patch)
tree0d867d42726cd3910c9851ec69e15b9a4b031001 /internal/object/object.go
parent9d8c43cd68c960b9a6b8f781684f763e204a4498 (diff)
downloadthehouseoficarus-1091d0fae96d152c11aec1bb2dd949f51ed5aa1e.tar.gz
feat: shared tls cert, validation fixes
Diffstat (limited to 'internal/object/object.go')
-rw-r--r--internal/object/object.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/object/object.go b/internal/object/object.go
index fc34e7b..376f4be 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -42,6 +42,16 @@ type SafespotConfig struct {
Levels []SafespotLevel `yaml:"levels"`
}
+// MobSizeRank orders the mob/safespot size vocabulary. A typo'd size falls
+// back to rank 0, which silently disables safespot cover, so the validator
+// checks membership. Shared so the game and validator cannot disagree.
+var MobSizeRank = map[string]int{
+ "small": 1,
+ "medium": 2,
+ "large": 3,
+ "massive": 4,
+}
+
type SafespotLevel struct {
Message string `yaml:"message"`
DegradeMessage string `yaml:"degrade_message"`