From 25eeca1e480713b0083a2aa4cc778e310ab87ec7 Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Thu, 28 Oct 2010 19:52:33 -0400 Subject: [PATCH] Everleaf support for 8-max --- pyfpdb/EverleafToFpdb.py | 8 +++++--- pyfpdb/HUD_config.xml.example | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 26875070..3f87a21c 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008-2010, Carl Gherardi @@ -174,8 +174,10 @@ or None if we fail to get the info """ for a in m: seatnum = int(a.group('SEAT')) hand.addPlayer(seatnum, a.group('PNAME'), a.group('CASH')) - if seatnum > 6: - hand.maxseats = 10 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. + if seatnum > 8: + hand.maxseats = 10 # they added 8-seat games now + elif seatnum > 6: + hand.maxseats = 8 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. # TODO: implement lookup list by table-name to determine maxes, then fall back to 6 default/10 here, if there's no entry in the list? diff --git a/pyfpdb/HUD_config.xml.example b/pyfpdb/HUD_config.xml.example index 9afad9dc..3fd354a1 100644 --- a/pyfpdb/HUD_config.xml.example +++ b/pyfpdb/HUD_config.xml.example @@ -290,6 +290,18 @@ Left-Drag to Move" + + + + + + + + + + + +