From f3a6ae488bbd2128af8356b0da016699c5abb70e Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 12 Jun 2026 18:59:22 -0400 Subject: feat: commands automatically target if unambiguous, depleted node improvements --- internal/game/action_gather.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'internal/game/action_gather.go') diff --git a/internal/game/action_gather.go b/internal/game/action_gather.go index 62637c3..2ca2e82 100644 --- a/internal/game/action_gather.go +++ b/internal/game/action_gather.go @@ -26,7 +26,13 @@ func (g *Game) startGather(sess *net.Session, p *player.Player, obj *object.Obje } if st.Depleted { - if cfg.SharedDeplete > 0 { + if cfg.DepletedMessage != "" { + msg := cfg.DepletedMessage + if p.OptionBool("depletion") { + msg += fmt.Sprintf(" (%d ticks to respawn)", st.DepleteTimer) + } + sess.WriteLine(msg) + } else if cfg.SharedDeplete > 0 { sess.WriteLine(fmt.Sprintf("The %s has been cut down for %d more ticks.", obj.Name, st.DepleteTimer)) } else { sess.WriteLine(fmt.Sprintf("The %s is depleted for %d more ticks.", obj.Name, st.DepleteTimer)) -- cgit v1.2.3