diff options
| author | historia <[not public]> | 2026-07-09 19:29:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-09 19:29:17 -0400 |
| commit | b3d4c616f59ad2519f3a0b77e3b47d6571cd2486 (patch) | |
| tree | 6f1f6a314e0550da68264a79381fc269db803312 /internal/game/act_use_interaction.go | |
| parent | 18c7af94b30c2767b6633d050324c1db34074ce2 (diff) | |
| download | thehouseoficarus-b3d4c616f59ad2519f3a0b77e3b47d6571cd2486.tar.gz | |
feat: message actions are now sequences of messages with settable delays
Diffstat (limited to 'internal/game/act_use_interaction.go')
| -rw-r--r-- | internal/game/act_use_interaction.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/game/act_use_interaction.go b/internal/game/act_use_interaction.go deleted file mode 100644 index 9c64b56..0000000 --- a/internal/game/act_use_interaction.go +++ /dev/null @@ -1,19 +0,0 @@ -package game - -import ( - "thehouseoficarus/internal/behavior" - "thehouseoficarus/internal/net" - "thehouseoficarus/internal/player" -) - -func (g *Game) advanceUseInteraction(sess *net.Session, p *player.Player) { - d, ok := p.Action.Data.(*behavior.UseInteractionData) - if !ok { - g.cancelAction(p) - return - } - g.writePlayerMessage(sess, d.Message, p.Name, nil) - g.applyStepAction(sess, p, d.Action, p.RoomID, scopePlayer, nil) - g.broadcastAction(sess, "%s uses the %s.", p.Name, d.ObjName) - g.cancelAction(p) -} |
