aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_safespot.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/game/sys_safespot.go
parent9d8c43cd68c960b9a6b8f781684f763e204a4498 (diff)
downloadthehouseoficarus-1091d0fae96d152c11aec1bb2dd949f51ed5aa1e.tar.gz
feat: shared tls cert, validation fixes
Diffstat (limited to 'internal/game/sys_safespot.go')
-rw-r--r--internal/game/sys_safespot.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/internal/game/sys_safespot.go b/internal/game/sys_safespot.go
index 7876b38..539f69d 100644
--- a/internal/game/sys_safespot.go
+++ b/internal/game/sys_safespot.go
@@ -11,13 +11,6 @@ import (
"thehouseoficarus/internal/world"
)
-var sizeRank = map[string]int{
- "small": 1,
- "medium": 2,
- "large": 3,
- "massive": 4,
-}
-
func (g *Game) isSafespotted(playerName string) bool {
return g.safespot.IsActive(playerName)
}
@@ -34,10 +27,10 @@ func blocksMob(maxBlockSize, mobSize string) bool {
if maxBlockSize == "" {
return true
}
- max := sizeRank[maxBlockSize]
- mob := sizeRank[mobSize]
+ max := object.MobSizeRank[maxBlockSize]
+ mob := object.MobSizeRank[mobSize]
if mob == 0 {
- mob = sizeRank["medium"]
+ mob = object.MobSizeRank["medium"]
}
return mob <= max
}