aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_gather.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-12 18:59:22 -0400
committerhistoria <[not public]>2026-06-12 18:59:22 -0400
commitf3a6ae488bbd2128af8356b0da016699c5abb70e (patch)
tree76965c30baa5d6ab92d1fa9c371d7ca3f08349ba /internal/game/action_gather.go
parentd6ab0e93a64525ce34f89e26d5272efbac513c32 (diff)
downloadthehouseoficarus-f3a6ae488bbd2128af8356b0da016699c5abb70e.tar.gz
feat: commands automatically target if unambiguous, depleted node improvements
Diffstat (limited to 'internal/game/action_gather.go')
-rw-r--r--internal/game/action_gather.go8
1 files changed, 7 insertions, 1 deletions
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))