From 575a71dcfed3b9fa44af244836f638a23df05a9a Mon Sep 17 00:00:00 2001 From: workhorse Date: Fri, 19 Jun 2026 11:51:17 -0400 Subject: feat: farming roughly implemented --- internal/game/cmd_look.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'internal/game/cmd_look.go') diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go index 14bac11..4abd89e 100644 --- a/internal/game/cmd_look.go +++ b/internal/game/cmd_look.go @@ -112,6 +112,10 @@ func (g *Game) doLook(sess *net.Session) { continue } + if farmPatchDefIDs[objID] { + continue + } + type instInfo struct { idx int depleted bool @@ -212,6 +216,8 @@ func (g *Game) doLook(sess *net.Session) { } } + g.showFarmPatches(sess, p) + ground := g.World.GroundItemsDetailed(p.RoomID) if len(ground) > 0 { showDespawn := p.OptionBool("despawn") @@ -508,6 +514,11 @@ func (g *Game) doLookTarget(sess *net.Session, input string) { sess.WriteLine(fmt.Sprintf(" %s", desc)) } } + + farmSuffix := g.farmLookSuffixForObj(p, st.DefID, st.Index) + if farmSuffix != "" { + sess.WriteLine(farmSuffix) + } return } -- cgit v1.2.3