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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_verbs.go b/internal/game/cmd_verbs.go
index 6c20004..24957ab 100644
--- a/internal/game/cmd_verbs.go
+++ b/internal/game/cmd_verbs.go
@@ -76,7 +76,7 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) {
}
for _, ui := range def.OnUse {
- if ui.Item == "" && (ui.Condition == nil || g.checkCondition(sess, ui.Condition)) {
+ if ui.ItemID == "" && (ui.Condition == nil || g.checkCondition(sess, ui.Condition)) {
addUnique(&sectionObjs, &seen, "use "+name)
break
}
@@ -107,8 +107,8 @@ func (g *Game) executeVerbs(sess *net.Session, args []string, rawInput string) {
}
for _, ui := range def.OnUse {
- if ui.Item != "" && (ui.Condition == nil || g.checkCondition(sess, ui.Condition)) {
- if itemDef, err := g.ItemStore.Load(ui.Item); err == nil {
+ if ui.ItemID != "" && (ui.Condition == nil || g.checkCondition(sess, ui.Condition)) {
+ if itemDef, err := g.ItemStore.Load(ui.ItemID); err == nil {
addUnique(&sectionObjs, &seen, "use "+itemDef.Name+" on "+name)
}
}