Browse Source

Actually show options for enabling event phases.

history/short-polling-only
Daniel Perelman 2 years ago
parent
commit
8ea70a1e1c
2 changed files with 8 additions and 0 deletions
  1. +6
    -0
      fear_tracker/forms.py
  2. +2
    -0
      fear_tracker/views.py

+ 6
- 0
fear_tracker/forms.py View File

@@ -35,6 +35,12 @@ class NewGameForm(forms.Form):
combined_growth_spirit = forms.BooleanField(
required=False, initial=True,
label="Combine Growth and Spirit phases into a single phase")
enable_events = forms.BooleanField(
required=False, initial=False,
label="Enable event phase (Branch and Claw expansion)")
combined_event = forms.BooleanField(
required=False, initial=False,
label="Combine three event phase steps into one phase")
england_build = forms.BooleanField(
required=False, initial=False,
label="High Immigration (extra build phase for England level 3+)")


+ 2
- 0
fear_tracker/views.py View File

@@ -54,6 +54,8 @@ def new_game(request):
game = Game()
game.combined_growth_spirit =\
form.cleaned_data.get('combined_growth_spirit')
game.enable_events = form.cleaned_data.get('enable_events')
game.combined_event = form.cleaned_data.get('combined_event')
game.england_build = form.cleaned_data.get('england_build')
game.fear_per_card =\
form.cleaned_data.get('fear_per_player') * num_players


Loading…
Cancel
Save