aboutsummaryrefslogtreecommitdiff
path: root/internal/world/objects.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 15:40:48 -0400
committerhistoria <[not public]>2026-06-25 15:40:48 -0400
commitabd612c15799f604e671e83dc7c410ed2b44185f (patch)
tree0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/world/objects.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/world/objects.go')
-rw-r--r--internal/world/objects.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/world/objects.go b/internal/world/objects.go
index a7e0605..849c47a 100644
--- a/internal/world/objects.go
+++ b/internal/world/objects.go
@@ -6,7 +6,7 @@ import (
"sort"
"strings"
- "thehouseoficarus/internal/object"
+ "thehouseoficarus/internal/behavior"
)
type ObjState struct {
@@ -25,9 +25,9 @@ type ObjState struct {
SharedTimer int
Quality float64
- SafespotLevel int
+ SafespotLevel int
SafespotTicksAtLevel int
- SafespotOccupants []string
+ SafespotOccupants []string
}
type ObjMove struct {
@@ -187,11 +187,11 @@ func (w *World) FindObjInstances(roomID int, name string) []ObjState {
}
func wordMatchesObj(lower, defID, objName string, aliases []string) bool {
- if object.WordPrefixMatch(lower, objName) {
+ if behavior.WordPrefixMatch(lower, objName) {
return true
}
for _, alias := range aliases {
- if object.WordPrefixMatch(lower, alias) {
+ if behavior.WordPrefixMatch(lower, alias) {
return true
}
}