aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_verbs.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_verbs.go')
-rw-r--r--internal/game/cmd_verbs.go4
1 files changed, 2 insertions, 2 deletions
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(&sectionObjs, &seen, "steal "+name)
}
@@ -130,7 +130,7 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) {
if m.IsTalkable() {
addUnique(&sectionMobs, &seen, "talk "+mName)
}
- if m.StealTable != "" {
+ if len(m.StealDrops) > 0 {
addUnique(&sectionMobs, &seen, "steal "+mName)
}
addUnique(&sectionMobs, &seen, "look "+mName)