remove vocation choice (all chars start as none on tutorial island)
This commit is contained in:
parent
e7b78f418a
commit
55c1f788a7
|
@ -21,6 +21,6 @@ class LoginForm(forms.Form):
|
||||||
|
|
||||||
class CreateCharacterForm(forms.Form):
|
class CreateCharacterForm(forms.Form):
|
||||||
name = forms.CharField()
|
name = forms.CharField()
|
||||||
vocation = forms.ChoiceField(
|
#vocation = forms.ChoiceField(
|
||||||
choices=VocationHelper.get_base_vocation_choices())
|
# choices=VocationHelper.get_base_vocation_choices())
|
||||||
sex = forms.ChoiceField(choices=((0, 'female'), (1, 'male')))
|
sex = forms.ChoiceField(choices=((0, 'female'), (1, 'male')))
|
|
@ -66,7 +66,7 @@ class CreateCharView(LoginRequiredMixin, FormView):
|
||||||
success_url = reverse_lazy('accounts:characters')
|
success_url = reverse_lazy('accounts:characters')
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
rookgaard = Towns.objects.get(name='Rookgaard')
|
rookgaard = Towns.objects.get(name='Rookgaard Tutorial Island')
|
||||||
start_health = 150
|
start_health = 150
|
||||||
start_mana = 55
|
start_mana = 55
|
||||||
start_cap = 400
|
start_cap = 400
|
||||||
|
@ -75,7 +75,8 @@ class CreateCharView(LoginRequiredMixin, FormView):
|
||||||
player = Players.objects.create(
|
player = Players.objects.create(
|
||||||
name=form.cleaned_data['name'],
|
name=form.cleaned_data['name'],
|
||||||
level=1,
|
level=1,
|
||||||
vocation=int(form.cleaned_data['vocation']),
|
#vocation=int(form.cleaned_data['vocation']),
|
||||||
|
vocation=0,
|
||||||
sex=int(form.cleaned_data['sex']),
|
sex=int(form.cleaned_data['sex']),
|
||||||
posx=rookgaard.posx,
|
posx=rookgaard.posx,
|
||||||
posy=rookgaard.posy,
|
posy=rookgaard.posy,
|
||||||
|
|
Loading…
Reference in New Issue