aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_mods.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 02:29:55 -0400
committerhistoria <[not public]>2026-06-27 02:29:55 -0400
commit6f3d21d6e7f01155ce0c461857a053b43d329392 (patch)
tree51e96b62deb5f99a3d70c3a15ab94c520a1ee8e8 /internal/game/cmd_mods.go
parent3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (diff)
downloadthehouseoficarus-6f3d21d6e7f01155ce0c461857a053b43d329392.tar.gz
feat: recall/home cmd, line break option
Diffstat (limited to 'internal/game/cmd_mods.go')
-rw-r--r--internal/game/cmd_mods.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/game/cmd_mods.go b/internal/game/cmd_mods.go
index 54c8067..2fe9ae5 100644
--- a/internal/game/cmd_mods.go
+++ b/internal/game/cmd_mods.go
@@ -67,8 +67,15 @@ func (g *Game) doMods(sess *net.Session, showAll bool) {
levelStr := fmt.Sprintf("Lv %d", m.Level)
costStr := g.junkCostString(p, m)
xpStr := fmt.Sprintf("%d XP", m.BaseXP)
-
- if unlocked {
+ if m.ID == "transport_home" && p.HomeTransportCooldown > 0 {
+ nameStr := fmt.Sprintf("%s (%d ticks)", m.Name, p.HomeTransportCooldown)
+ t.Rows = append(t.Rows, []string{
+ g.colorize(sess, "dim", nameStr),
+ g.colorize(sess, "dim", levelStr),
+ g.colorize(sess, "dim", costStr),
+ g.colorize(sess, "dim", xpStr),
+ })
+ } else if unlocked {
t.Rows = append(t.Rows, []string{
color.Render(mode, color.Parse("75"), m.Name),
color.Render(mode, color.Parse("245"), levelStr),