Skip to content

Commit 1191c1b

Browse files
committed
updated srd-2014/2024 class data to match new format
1 parent 3c0d42a commit 1191c1b

File tree

5 files changed

+398
-153
lines changed

5 files changed

+398
-153
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.1 on 2025-09-26 11:00
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api_v2', '0062_classfeature_feature_type'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='classfeature',
15+
name='feature_type',
16+
field=models.CharField(choices=[('CORE_TRAITS_TABLE', 'CORE_TRAITS_TABLE'), ('CLASS_LEVEL_FEATURE', 'CLASS_LEVEL_FEATURE'), ('CLASS_TABLE_DATA', 'CLASS_TABLE_DATA'), ('PROFICIENCIES', 'PROFICIENCIES'), ('PROFICIENCY_BONUS', 'PROFICIENCY_BONUS'), ('SPELL_SLOTS', 'SPELL_SLOTS')], default='CLASS_FEATURE', help_text='The type that best represents this Class Feature', max_length=32),
17+
),
18+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.1 on 2025-09-26 18:10
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api_v2', '0063_alter_classfeature_feature_type'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='classfeature',
15+
name='feature_type',
16+
field=models.CharField(choices=[('CORE_TRAITS_TABLE', 'CORE_TRAITS_TABLE'), ('CLASS_LEVEL_FEATURE', 'CLASS_LEVEL_FEATURE'), ('CLASS_TABLE_DATA', 'CLASS_TABLE_DATA'), ('PROFICIENCIES', 'PROFICIENCIES'), ('PROFICIENCY_BONUS', 'PROFICIENCY_BONUS'), ('STARTING_EQUIPMENT', 'STARTING_EQUIPMENT'), ('SPELL_SLOTS', 'SPELL_SLOTS')], default='CLASS_LEVEL_FEATURE', help_text='The type that best represents this Class Feature', max_length=32),
17+
),
18+
]

api_v2/models/characterclass.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ class ClassFeature(HasName, HasDescription, FromDocument):
5656
('CLASS_TABLE_DATA', 'CLASS_TABLE_DATA'),
5757
('PROFICIENCIES', 'PROFICIENCIES'),
5858
('PROFICIENCY_BONUS', 'PROFICIENCY_BONUS'),
59+
('STARTING_EQUIPMENT', 'STARTING_EQUIPMENT'),
5960
('SPELL_SLOTS', 'SPELL_SLOTS'),
6061
]
6162

6263
feature_type = models.CharField(
63-
default='CLASS_FEATURE',
64+
default='CLASS_LEVEL_FEATURE',
6465
choices=FEATURE_TYPES,
6566
max_length=32,
6667
help_text="The type that best represents this Class Feature",

0 commit comments

Comments
 (0)