aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-08-03 14:08:09 -0400
committerhistoria <[not public]>2026-08-03 14:08:09 -0400
commit612e429de438821ae8e099d6b54f87c11ff6c1b5 (patch)
treead6f9edf74339b9b50f9c7c2cd314ee7b6e04b2c /internal/game/game.go
parentf51424c90dbce7191a31b6e675818c985f0f4539 (diff)
downloadthehouseoficarus-612e429de438821ae8e099d6b54f87c11ff6c1b5.tar.gz
refactor: casino game slop refactor
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index cac0ec9..23e0635 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -2,11 +2,13 @@ package game
import (
"fmt"
+ "path/filepath"
"sort"
"strings"
"sync"
"time"
+ "thehouseoficarus/internal/cardart"
"thehouseoficarus/internal/casino"
"thehouseoficarus/internal/combat"
"thehouseoficarus/internal/config"
@@ -42,6 +44,7 @@ type Deps struct {
Ticks *engine.Engine
ColorConfig *config.ColorsConfig
ConstantColorConfig *config.ColorsConfig
+ CardArt *cardart.Store
DataDir string
}
@@ -91,6 +94,7 @@ func New(dataDir string, colorConfig *config.ColorsConfig, constantColorConfig *
Ticks: engine.New(),
ColorConfig: colorConfig,
ConstantColorConfig: constantColorConfig,
+ CardArt: cardart.Load(filepath.Join(dataDir, "cards.yaml")),
DataDir: dataDir,
},
GlobalFlags: NewGlobalFlagStore(),