aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_gather.go
diff options
context:
space:
mode:
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))