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