Actually show options for enabling event phases.

history/short-polling-only
Daniel Perelman 4 lat temu
rodzic 28ab47e5e4
commit 8ea70a1e1c

@ -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+)")

@ -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

Ładowanie…
Anuluj
Zapisz