diff options
| author | workhorse <workhorse@localhost.localdomain> | 2026-06-19 11:51:17 -0400 |
|---|---|---|
| committer | workhorse <workhorse@localhost.localdomain> | 2026-06-19 11:51:17 -0400 |
| commit | 575a71dcfed3b9fa44af244836f638a23df05a9a (patch) | |
| tree | eb5eff16eab86247a3dd93ff4d7fd3781f291b64 /internal/game/cmd_look.go | |
| parent | 52a3ce6a4b4a254dc5d3067979a09e93c060fa20 (diff) | |
| download | thehouseoficarus-575a71dcfed3b9fa44af244836f638a23df05a9a.tar.gz | |
feat: farming roughly implemented
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 } |
