From 2bbe6b8e912bbc5f4a61a33988fb27aca7bd5eb3 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 8 Jul 2026 02:23:59 -0400 Subject: feat: object and mob steal tables can include both tables and items --- internal/game/cmd_verbs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_verbs.go') diff --git a/internal/game/cmd_verbs.go b/internal/game/cmd_verbs.go index b5c69ce..e32910a 100644 --- a/internal/game/cmd_verbs.go +++ b/internal/game/cmd_verbs.go @@ -114,7 +114,7 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) { } } - if def.Steal != nil && def.Steal.Table != "" { + if def.Steal != nil && len(def.Steal.Drops) > 0 { addUnique(§ionObjs, &seen, "steal "+name) } @@ -130,7 +130,7 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) { if m.IsTalkable() { addUnique(§ionMobs, &seen, "talk "+mName) } - if m.StealTable != "" { + if len(m.StealDrops) > 0 { addUnique(§ionMobs, &seen, "steal "+mName) } addUnique(§ionMobs, &seen, "look "+mName) -- cgit v1.2.3