From 843fa6db681e494bf46e191655323a40577542b5 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 5 Jul 2026 20:06:53 -0400 Subject: feat: remove deprecated use/station interaction model --- internal/object/object.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/object') 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" } -- cgit v1.2.3