aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_burn.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 13:28:06 -0400
committerhistoria <[not public]>2026-06-19 13:28:06 -0400
commit3a58125d14bb307f861b38c6c5b0a63babde7e08 (patch)
treebd89e866447d55e6dffd447d8ef5fabf9b8fbe9d /internal/game/action_burn.go
parent575a71dcfed3b9fa44af244836f638a23df05a9a (diff)
downloadthehouseoficarus-3a58125d14bb307f861b38c6c5b0a63babde7e08.tar.gz
feat: all skills kind of implemented, random prototype content added
Diffstat (limited to 'internal/game/action_burn.go')
-rw-r--r--internal/game/action_burn.go16
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,