mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 06:13:55 +01:00
Fix character creation
This commit is contained in:
parent
6158002796
commit
c43c33f06f
3 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,6 @@ class CharacterCreateForm(forms.ModelForm):
|
|||
"armor",
|
||||
"shield",
|
||||
"defense_misc",
|
||||
"initiative_misc",
|
||||
"equipment",
|
||||
"money_pp",
|
||||
"money_po",
|
||||
|
|
|
@ -318,7 +318,7 @@ class Character(models.Model):
|
|||
|
||||
@property
|
||||
def luck_points_max(self) -> int:
|
||||
return 3 + self.modifier_charisma
|
||||
return max([3 + self.modifier_charisma, 0])
|
||||
|
||||
@property
|
||||
def health_remaining_percent(self) -> float:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
{% block content %}
|
||||
<h1>Création de personnage</h1>
|
||||
<form action="" method="post">
|
||||
{% bootstrap_form_errors form %}
|
||||
{% csrf_token %}
|
||||
<h2>Identité</h2>
|
||||
{% bootstrap_field form.name %}
|
||||
|
|
Loading…
Reference in a new issue