diff options
Diffstat (limited to 'internal/game/action_burn.go')
| -rw-r--r-- | internal/game/action_burn.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/game/action_burn.go b/internal/game/action_burn.go index 0b7db2c..0230f24 100644 --- a/internal/game/action_burn.go +++ b/internal/game/action_burn.go @@ -107,6 +107,14 @@ func (g *Game) startBurn(sess *net.Session, p *player.Player, itemID string, fro p.ActionState = &ActionState{Type: ActionBurning} + 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 building a fire.", p.Name))) + } + } + } + p.Action = &action.Action{ Type: "burn", TargetID: itemID, @@ -145,6 +153,14 @@ func (g *Game) startStoke(sess *net.Session, p *player.Player, itemID string) { p.ActionState = &ActionState{Type: ActionStoking} + 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 tends to the fire.", p.Name))) + } + } + } + p.Action = &action.Action{ Type: "stoke", TargetID: itemID, |
