diff options
| author | historia <[not public]> | 2026-07-08 19:59:14 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-08 19:59:14 -0400 |
| commit | 09d325dcf5e779eab5550d3fd3377bde50101428 (patch) | |
| tree | a433be903aabbf1d2eadce2aacdac12a9eb8dde0 /internal/game/look_target.go | |
| parent | 9184377301c2604e003f36426788c032fb0ca524 (diff) | |
| download | thehouseoficarus-09d325dcf5e779eab5550d3fd3377bde50101428.tar.gz | |
feat: unify on use, on look, and on kill. all support same conditions/actions now.
Diffstat (limited to 'internal/game/look_target.go')
| -rw-r--r-- | internal/game/look_target.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/look_target.go b/internal/game/look_target.go index 8b0a57c..24a1df5 100644 --- a/internal/game/look_target.go +++ b/internal/game/look_target.go @@ -154,8 +154,8 @@ func (g *Game) doLookTarget(sess *net.Session, input string) { sess.WriteLine(color.ExpandTags(g.colorMode(sess), objDescText)) } - if def.OnLook != nil { - g.applyNodeAction(sess, def.OnLook) + if len(def.OnLook) > 0 { + g.applyInteraction(sess, p, def.OnLook, p.RoomID, false, p.HasItem) } if def.Safespot != nil { |
