aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_use.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/game/cmd_use.go
parent7b5ed92e003d8a4bf9bdc69d43b7354eb2260dfa (diff)
downloadthehouseoficarus-843fa6db681e494bf46e191655323a40577542b5.tar.gz
feat: remove deprecated use/station interaction model
Diffstat (limited to 'internal/game/cmd_use.go')
-rw-r--r--internal/game/cmd_use.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_use.go b/internal/game/cmd_use.go
index 8540074..22fc169 100644
--- a/internal/game/cmd_use.go
+++ b/internal/game/cmd_use.go
@@ -68,7 +68,7 @@ func (g *Game) doUse(sess *net.Session, input string) {
return
}
- g.startAction(sess, "use", input)
+ sess.WriteLine("You can't use that.")
}
func (g *Game) useRoomObject(sess *net.Session, p *player.Player, input string) bool {
@@ -214,7 +214,7 @@ func (g *Game) doUseItemOnTarget(sess *net.Session, p *player.Player, itemAName,
objSt := &objInstances[0]
def, _ := g.ObjectStore.Load(objSt.DefID)
if def == nil {
- g.startAction(sess, "use", itemBName)
+ sess.WriteLine("You can't use that.")
return
}
@@ -305,7 +305,7 @@ func (g *Game) doUseItemOnTarget(sess *net.Session, p *player.Player, itemAName,
return
}
- g.startAction(sess, "use", itemBName)
+ sess.WriteLine("You can't use that.")
return
}