aboutsummaryrefslogtreecommitdiff
path: root/internal/game/hacking
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 17:05:17 -0400
committerhistoria <[not public]>2026-09-16 17:05:17 -0400
commit1dad15698845d370e998f7cc5feb8aece3fab58f (patch)
tree8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/game/hacking
parenta6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff)
downloadthehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/game/hacking')
-rw-r--r--internal/game/hacking/hacking.go2
-rw-r--r--internal/game/hacking/liars_dice.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/hacking/hacking.go b/internal/game/hacking/hacking.go
index f022ee1..fe6089b 100644
--- a/internal/game/hacking/hacking.go
+++ b/internal/game/hacking/hacking.go
@@ -1,3 +1,5 @@
+// Package hacking implements the Hacking skill minigames (liar's dice,
+// mastermind, …) played against terminals around Vesta.
package hacking
type Minigame interface {
diff --git a/internal/game/hacking/liars_dice.go b/internal/game/hacking/liars_dice.go
index 8e21b94..3c7ac31 100644
--- a/internal/game/hacking/liars_dice.go
+++ b/internal/game/hacking/liars_dice.go
@@ -250,11 +250,9 @@ func (l *LiarsDiceGame) doStatus() string {
sb.WriteString(fmt.Sprintf("Your fragments: %s (You: %d, System: %d)\n",
l.diceStr(l.playerDice), len(l.playerDice), len(l.aiDice)))
if l.hasBid {
- who := "System"
+ who := "you"
if !l.playerTurn {
who = "System"
- } else {
- who = "you"
}
sb.WriteString(fmt.Sprintf("Current bid: %d %s (by %s)\n", l.currentBid.Quantity, faceNamePlural(l.currentBid.Face), who))
}