Browse Source

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

Gesche 10 months ago
parent
commit
55c1f788a7
2 changed files with 5 additions and 4 deletions
  1. 2
    2
      accounts/forms.py
  2. 3
    2
      accounts/views.py

+ 2
- 2
accounts/forms.py View File

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

+ 3
- 2
accounts/views.py View File

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

Loading…
Cancel
Save