aboutsummaryrefslogtreecommitdiff
path: root/internal/object/object.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-05 20:06:53 -0400
committerhistoria <[not public]>2026-07-05 20:07:50 -0400
commit843fa6db681e494bf46e191655323a40577542b5 (patch)
treecf32ec18d50434c14a1152147ff6e5e8b3576998 /internal/object/object.go
parent7b5ed92e003d8a4bf9bdc69d43b7354eb2260dfa (diff)
downloadthehouseoficarus-843fa6db681e494bf46e191655323a40577542b5.tar.gz
feat: remove deprecated use/station interaction model
Diffstat (limited to 'internal/object/object.go')
-rw-r--r--internal/object/object.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/object/object.go b/internal/object/object.go
index 5b45a91..89f01a4 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -31,7 +31,6 @@ type ObjectDef struct {
Gather *behavior.GatherConfig `yaml:"gather,omitempty"`
Talk *behavior.TalkConfig `yaml:"talk,omitempty"`
- Use *behavior.UseConfig `yaml:"use,omitempty"`
Safespot *SafespotConfig `yaml:"safespot,omitempty"`
OnLook *behavior.NodeAction `yaml:"on_look,omitempty"`
}
@@ -55,10 +54,9 @@ type SafespotLevel struct {
func (d *ObjectDef) IsGatherable() bool { return d.Gather != nil }
func (d *ObjectDef) IsTalkable() bool { return d.Talk != nil }
-func (d *ObjectDef) IsUsable() bool { return d.Use != nil }
func (d *ObjectDef) IsSafespot() bool { return d.Safespot != nil }
func (d *ObjectDef) IsInteractable() bool {
- return d.Gather != nil || d.Talk != nil || d.Use != nil || d.Safespot != nil
+ return d.Gather != nil || d.Talk != nil || d.Safespot != nil
}
func (d *ObjectDef) BehaviorType() string {
@@ -67,8 +65,6 @@ func (d *ObjectDef) BehaviorType() string {
return "gather"
case d.Talk != nil:
return "talk"
- case d.Use != nil:
- return "use"
case d.Safespot != nil:
return "safespot"
}