diff options
Diffstat (limited to 'internal/game/cmd_look.go')
| -rw-r--r-- | internal/game/cmd_look.go | 11 |
1 files changed, 11 insertions, 0 deletions
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 } |
