aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_toggle.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-14 22:38:23 -0400
committerhistoria <[not public]>2026-06-14 22:38:23 -0400
commita6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch)
tree89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/game/action_toggle.go
parent1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff)
downloadthehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
Diffstat (limited to 'internal/game/action_toggle.go')
-rw-r--r--internal/game/action_toggle.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/game/action_toggle.go b/internal/game/action_toggle.go
index 3818d0d..f20d03c 100644
--- a/internal/game/action_toggle.go
+++ b/internal/game/action_toggle.go
@@ -34,6 +34,8 @@ func (g *Game) startToggle(sess *net.Session, p *player.Player, obj *object.Obje
g.WorldFlags[flag] = val
}
+ p.ActionState = &ActionState{Type: ActionToggling, TargetName: obj.Name}
+
sess.WriteLine(fmt.Sprintf("\n%s", cfg.Message))
if g.Hub != nil {