from django.db import models


class Monster(models.Model):
    name = models.CharField(max_length=50, unique=True,
                            help_text='Using an existing name will overwrite that entry. <br>Using a new name will create a new entry<br>')
    size = models.CharField(max_length=20, null=True, blank=True)
    type = models.CharField(max_length=20, null=True, blank=True)
    alignment = models.CharField(max_length=20, null=True, blank=True)
    ac = models.IntegerField(null=True, blank=True)
    hp = models.CharField(max_length=12, null=True, blank=True)
    speed = models.TextField(null=True, blank=True)
    strength = models.IntegerField(null=True, blank=True)
    dexterity = models.IntegerField(null=True, blank=True)
    constitution = models.IntegerField(null=True, blank=True)
    intelligence = models.IntegerField(null=True, blank=True)
    wisdom = models.IntegerField(null=True, blank=True)
    charisma = models.IntegerField(null=True, blank=True)
    saving_throws = models.TextField(null=True, blank=True)
    skills = models.TextField(null=True, blank=True)
    vulnerabilies = models.TextField(null=True, blank=True)
    resistances = models.TextField(null=True, blank=True)
    immunities = models.TextField(null=True, blank=True)
    senses = models.TextField(null=True, blank=True)
    languages = models.TextField(null=True, blank=True)
    cr = models.FloatField(null=True, blank=False)
    xp = models.IntegerField(null=True, blank=False)
    traits = models.TextField(null=True, blank=True)
    actions = models.TextField(null=True, blank=True)
    legendary_actions = models.TextField(null=True, blank=True)
