aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_clean.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_clean.go')
-rw-r--r--internal/game/cmd_clean.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/game/cmd_clean.go b/internal/game/cmd_clean.go
index b3d8408..70dedb9 100644
--- a/internal/game/cmd_clean.go
+++ b/internal/game/cmd_clean.go
@@ -1,6 +1,7 @@
package game
import (
+ "fmt"
"strings"
"thehouseoficarus/internal/action"
@@ -62,6 +63,14 @@ func (g *Game) doClean(sess *net.Session, input string) {
}
p.BackgroundActionState = &ActionState{Type: ActionCleaning}
+ if g.Hub != nil {
+ for _, other := range g.Hub.PlayersInRoom(p.RoomID) {
+ if other != sess && other.Player != nil {
+ other.WriteLine(g.colorize(other, "broadcast", fmt.Sprintf("\n%s starts cleaning herbs.", p.Name)))
+ }
+ }
+ }
+
sess.WriteLine("\nYou begin cleaning herbs.")
}