aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_use.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-15 02:57:35 -0400
committerhistoria <[not public]>2026-06-15 02:58:50 -0400
commit4cc1ddcd185509080b4b3e15d1646567edd51c9d (patch)
tree2a564846ad4fd159a2d7e55451bfa9569fe8c0b8 /internal/game/action_use.go
parent445c4612cc5cf2c226f85894b6ad1e2419a374e2 (diff)
downloadthehouseoficarus-4cc1ddcd185509080b4b3e15d1646567edd51c9d.tar.gz
removed game speed for being broken and an antifeature anyway. added color support.
Diffstat (limited to 'internal/game/action_use.go')
-rw-r--r--internal/game/action_use.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/game/action_use.go b/internal/game/action_use.go
index ec63723..d953521 100644
--- a/internal/game/action_use.go
+++ b/internal/game/action_use.go
@@ -5,6 +5,7 @@ import (
"math/rand"
"thirdcollapse/internal/action"
+ "thirdcollapse/internal/engine"
"thirdcollapse/internal/net"
"thirdcollapse/internal/object"
"thirdcollapse/internal/player"
@@ -39,7 +40,7 @@ func (g *Game) startUse(sess *net.Session, p *player.Player, obj *object.ObjectD
Type: "use",
TargetID: obj.ID,
TargetName: obj.Name,
- WaitLeft: g.computeTicks(1),
+ WaitLeft: engine.ToTicks(1),
Data: map[string]any{"step": 0, "behavior_id": obj.BehaviorID},
}
@@ -78,7 +79,7 @@ func (g *Game) advanceUse(sess *net.Session, p *player.Player) {
if cfg.FailMsg != "" {
sess.WriteLine(cfg.FailMsg)
}
- p.Action.WaitLeft = g.computeTicks(cfg.Wait)
+ p.Action.WaitLeft = engine.ToTicks(cfg.Wait)
return
}
}
@@ -119,5 +120,5 @@ func (g *Game) advanceUse(sess *net.Session, p *player.Player) {
return
}
- p.Action.WaitLeft = g.computeTicks(cfg.Wait)
+ p.Action.WaitLeft = engine.ToTicks(cfg.Wait)
}