diff options
| author | historia <[not public]> | 2026-07-08 02:23:59 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-08 02:23:59 -0400 |
| commit | 2bbe6b8e912bbc5f4a61a33988fb27aca7bd5eb3 (patch) | |
| tree | ef4aef5a7393de51d765b24d565b414ddac4b9fe /internal/game/cmd_verbs.go | |
| parent | 71f0f381de64e045f91da19450adacf10fbc7902 (diff) | |
| download | thehouseoficarus-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.go | 4 |
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(§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) |
