Fix damage pet

This commit is contained in:
Gabriel Augendre 2023-03-09 18:06:52 +00:00
parent a91d613d72
commit baeca40a4c
3 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,17 @@
# Generated by Django 4.1.7 on 2023-03-09 18:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("character", "0041_pet"),
]
operations = [
migrations.AlterField(
model_name="pet",
name="damage",
field=models.CharField(max_length=20, verbose_name="dégâts"),
),
]

View file

@ -1 +1 @@
0041_pet 0042_alter_pet_damage

View file

@ -26,7 +26,7 @@ class Pet(models.Model):
) )
modifier_wisdom = models.IntegerField(verbose_name="modificateur sagesse") modifier_wisdom = models.IntegerField(verbose_name="modificateur sagesse")
modifier_charisma = models.IntegerField(verbose_name="modificateur charisme") modifier_charisma = models.IntegerField(verbose_name="modificateur charisme")
damage = models.PositiveIntegerField(verbose_name="dégâts") damage = models.CharField(max_length=20, verbose_name="dégâts")
initiative = models.PositiveIntegerField(verbose_name="initiative") initiative = models.PositiveIntegerField(verbose_name="initiative")
defense = models.PositiveIntegerField(verbose_name="défense") defense = models.PositiveIntegerField(verbose_name="défense")
attack = models.PositiveIntegerField(verbose_name="attaque") attack = models.PositiveIntegerField(verbose_name="attaque")