From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/look_target.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'internal/game/look_target.go') diff --git a/internal/game/look_target.go b/internal/game/look_target.go index 1c3d112..0ddd8f4 100644 --- a/internal/game/look_target.go +++ b/internal/game/look_target.go @@ -48,7 +48,14 @@ func (g *Game) doLookTarget(sess *net.Session, input string) { return } - if g.lookCasinoTable(sess, lower, casino.GameCashHunt) || g.lookPlinkoTable(sess, lower) || g.lookBigSixTable(sess, lower) || g.lookBlackjackTable(sess, lower) || g.lookBaccaratTable(sess, lower) || g.lookRouletteTable(sess, lower) || g.lookCrapsTable(sess, lower) || g.lookPaiGowTable(sess, lower) || g.lookVideoPokerCabinet(sess, lower) { + // Felt tables resolve through one data-driven loop; the video-poker cabinet + // has its own cabinet-id/pay-table handling. + for _, game := range []casino.GameName{casino.GameCashHunt, casino.GamePlinko, casino.GameBigSix, casino.GameBlackjack, casino.GameBaccarat, casino.GameRoulette, casino.GameCraps, casino.GamePaiGow} { + if g.lookCasinoTable(sess, lower, game) { + return + } + } + if g.lookVideoPokerCabinet(sess, lower) { return } -- cgit v1.2.3