remove vocation choice (all chars start as none on tutorial island)

This commit is contained in:
Gesche 2019-01-27 13:39:49 +01:00
parent e7b78f418a
commit 55c1f788a7
2 changed files with 5 additions and 4 deletions

View File

@ -21,6 +21,6 @@ class LoginForm(forms.Form):
class CreateCharacterForm(forms.Form):
name = forms.CharField()
vocation = forms.ChoiceField(
choices=VocationHelper.get_base_vocation_choices())
#vocation = forms.ChoiceField(
# choices=VocationHelper.get_base_vocation_choices())
sex = forms.ChoiceField(choices=((0, 'female'), (1, 'male')))

View File

@ -66,7 +66,7 @@ class CreateCharView(LoginRequiredMixin, FormView):
success_url = reverse_lazy('accounts:characters')
def form_valid(self, form):
rookgaard = Towns.objects.get(name='Rookgaard')
rookgaard = Towns.objects.get(name='Rookgaard Tutorial Island')
start_health = 150
start_mana = 55
start_cap = 400
@ -75,7 +75,8 @@ class CreateCharView(LoginRequiredMixin, FormView):
player = Players.objects.create(
name=form.cleaned_data['name'],
level=1,
vocation=int(form.cleaned_data['vocation']),
#vocation=int(form.cleaned_data['vocation']),
vocation=0,
sex=int(form.cleaned_data['sex']),
posx=rookgaard.posx,
posy=rookgaard.posy,