aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_target.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/look_target.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/look_target.go')
-rw-r--r--internal/game/look_target.go9
1 files changed, 8 insertions, 1 deletions
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
}