aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_target.go
diff options
context:
space:
mode:
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
}