aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_safespot.go
diff options
context:
space:
mode:
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
}