Skip to content

Commit

Permalink
Add draw pullup penalty preference.
Browse files Browse the repository at this point in the history
  • Loading branch information
teymour-aldridge committed Jan 27, 2025
1 parent 590cf37 commit d5dae9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tabbycat/options/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ class DrawOddBracket(ChoicePreference):
section = draw_rules
name = 'draw_odd_bracket'
choices = (
('pullup_lowest_ds_rank', _("Pull up from the lowest draw strength by rank.")),
('pullup_top', _("Pull up from top")),
('pullup_bottom', _("Pull up from bottom")),
('pullup_middle', _("Pull up from middle")),
Expand Down Expand Up @@ -288,6 +289,15 @@ class DrawPullupRestriction(ChoicePreference):
default = 'none'


@tournament_preferences_registry.register
class DrawPullupPenalty(IntegerPreference):
help_text = _("Penalty applied by minimum cost matching to prefer pullups.")
verbose_name = _("Pullup penalty")
section = draw_rules
name = 'draw_pullup_penalty'
default = 0


@tournament_preferences_registry.register
class BPPullupDistribution(ChoicePreference):
help_text = _("In BP, how pullups are distributed. Only \"Anywhere\" is WUDC-compliant.")
Expand Down

0 comments on commit d5dae9b

Please sign in to comment.