diff options
| author | historia <[not public]> | 2026-09-15 14:18:14 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-15 14:18:14 -0400 |
| commit | 396c3facb8287b9a34076cae8f3d7b300d366d99 (patch) | |
| tree | 941f280d051fac474fa68ca08318a8d16adc8d0f /internal/validate/checks.go | |
| parent | b3568f03e4103dd46db2ccc680fbab0a6454d604 (diff) | |
| download | thehouseoficarus-396c3facb8287b9a34076cae8f3d7b300d366d99.tar.gz | |
fix: atomic saves, casino RNG/config isolation, tick lifecycle
Diffstat (limited to 'internal/validate/checks.go')
| -rw-r--r-- | internal/validate/checks.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/validate/checks.go b/internal/validate/checks.go index 527b558..344df3a 100644 --- a/internal/validate/checks.go +++ b/internal/validate/checks.go @@ -8,6 +8,7 @@ import ( "strings" "thehouseoficarus/internal/behavior" + "thehouseoficarus/internal/casino" "thehouseoficarus/internal/color" "thehouseoficarus/internal/combat" "thehouseoficarus/internal/world" @@ -31,6 +32,12 @@ func validateRooms(s Source) []Issue { }) continue } + if err := casino.ValidateRoomConfigs(room.CasinoTables, room.CasinoMachines); err != nil { + issues = append(issues, Issue{ + Level: "ERROR", Type: "casino", + Message: fmt.Sprintf("Room %d: %v", id, err), + }) + } if room.Name == "" { issues = append(issues, Issue{ Level: "WARN", |
