aboutsummaryrefslogtreecommitdiff
path: root/internal/object
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object')
-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"`