From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/game/hacking/hacking.go | 2 ++ internal/game/hacking/liars_dice.go | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/game/hacking') 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)) } -- cgit v1.2.3