aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_verbs.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-08 02:23:59 -0400
committerhistoria <[not public]>2026-07-08 02:23:59 -0400
commit2bbe6b8e912bbc5f4a61a33988fb27aca7bd5eb3 (patch)
treeef4aef5a7393de51d765b24d565b414ddac4b9fe /internal/game/cmd_verbs.go
parent71f0f381de64e045f91da19450adacf10fbc7902 (diff)
downloadthehouseoficarus-2bbe6b8e912bbc5f4a61a33988fb27aca7bd5eb3.tar.gz
feat: object and mob steal tables can include both tables and items
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)