Skip to content

Commit 3ca9d3f

Browse files
Merge pull request #832 from calumbell/825/srd-2024-backgrounds
[DATA / V2 BLOCKER] Added `srd-2024` Backgrounds
2 parents 7f2d662 + cf482d3 commit 3ca9d3f

File tree

4 files changed

+269
-0
lines changed

4 files changed

+269
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 5.2.1 on 2025-11-08 10:30
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('api_v2', '0066_alter_classfeature_feature_type'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='backgroundbenefit',
15+
name='type',
16+
field=models.CharField(blank=True, choices=[('ability_score', 'Ability Score Increase or Decrease'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('feat', 'Feat'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Modification type.', max_length=200, null=True),
17+
),
18+
migrations.AlterField(
19+
model_name='creaturetrait',
20+
name='type',
21+
field=models.CharField(blank=True, choices=[('ability_score', 'Ability Score Increase or Decrease'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('feat', 'Feat'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Modification type.', max_length=200, null=True),
22+
),
23+
migrations.AlterField(
24+
model_name='featbenefit',
25+
name='type',
26+
field=models.CharField(blank=True, choices=[('ability_score', 'Ability Score Increase or Decrease'), ('skill_proficiency', 'Skill Proficiency'), ('tool_proficiency', 'Tool Proficiency'), ('language', 'Language'), ('equipment', 'Equipment'), ('feature', 'Feature'), ('feat', 'Feat'), ('suggested_characteristics', 'Suggested Characteristics'), ('adventures_and_advancement', 'Adventures and Advancement'), ('connection_and_memento', 'Connection and Memento')], help_text='Modification type.', max_length=200, null=True),
27+
),
28+
]

api_v2/models/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
("language", "Language"),
8383
("equipment", "Equipment"),
8484
("feature", "Feature"), # Used in Backgrounds
85+
("feat", "Feat"), # Used in D&D 2024 Backgrounds
8586
("suggested_characteristics", "Suggested Characteristics"), # Used in Backgrounds
8687
("adventures_and_advancement", "Adventures and Advancement"), # Used in A5e Backgrounds
8788
("connection_and_memento", "Connection and Memento")] # Used in A5e Backgrounds
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"fields": {
4+
"desc": "",
5+
"document": "srd-2024",
6+
"name": "Acolyte"
7+
},
8+
"model": "api_v2.background",
9+
"pk": "srd-2024_acolyte"
10+
},
11+
{
12+
"fields": {
13+
"desc": "",
14+
"document": "srd-2024",
15+
"name": "Criminal"
16+
},
17+
"model": "api_v2.background",
18+
"pk": "srd-2024_criminal"
19+
},
20+
{
21+
"fields": {
22+
"desc": "",
23+
"document": "srd-2024",
24+
"name": "Sage"
25+
},
26+
"model": "api_v2.background",
27+
"pk": "srd-2024_sage"
28+
},
29+
{
30+
"fields": {
31+
"desc": "",
32+
"document": "srd-2024",
33+
"name": "Soldier"
34+
},
35+
"model": "api_v2.background",
36+
"pk": "srd-2024_soldier"
37+
}
38+
]
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
[
2+
{
3+
"fields": {
4+
"desc": "Intelligence, Wisdom, Charisma",
5+
"name": "Ability Scores",
6+
"parent": "srd-2024_acolyte",
7+
"type": "ability_score"
8+
},
9+
"model": "api_v2.backgroundbenefit",
10+
"pk": "srd-2024_acolyte_ability-scores"
11+
},
12+
{
13+
"fields": {
14+
"desc": "Insight and Religion",
15+
"name": "Skill Proficiencies",
16+
"parent": "srd-2024_acolyte",
17+
"type": "skill_proficiency"
18+
},
19+
"model": "api_v2.backgroundbenefit",
20+
"pk": "srd-2024_acolyte_skill-proficiencies"
21+
},
22+
{
23+
"fields": {
24+
"desc": "Calligrapher's Supplies",
25+
"name": "Tool Proficiency",
26+
"parent": "srd-2024_acolyte",
27+
"type": "tool_proficiency"
28+
},
29+
"model": "api_v2.backgroundbenefit",
30+
"pk": "srd-2024_acolyte_tool-proficiencies"
31+
},
32+
{
33+
"fields": {
34+
"desc": "*Choose A or B:* (A) Calligrapher's Supplies, Book (prayers), Holy Symbol, Parchment (10 sheets), Robe, 8 GP; or (B) 50 GP",
35+
"name": "Equipment",
36+
"parent": "srd-2024_acolyte",
37+
"type": "equipment"
38+
},
39+
"model": "api_v2.backgroundbenefit",
40+
"pk": "srd-2024_acolyte_equipment"
41+
},
42+
{
43+
"fields": {
44+
"desc": "Magic Initiate (Cleric)",
45+
"name": "Feat",
46+
"parent": "srd-2024_acolyte",
47+
"type": "feat"
48+
},
49+
"model": "api_v2.backgroundbenefit",
50+
"pk": "srd-2024_acolyte_feat"
51+
},
52+
{
53+
"fields": {
54+
"desc": "Dexterity, Constitution, Intelligence",
55+
"name": "Ability Scores",
56+
"parent": "srd-2024_criminal",
57+
"type": "ability_score"
58+
},
59+
"model": "api_v2.backgroundbenefit",
60+
"pk": "srd-2024_criminal_ability-scores"
61+
},
62+
{
63+
"fields": {
64+
"desc": "Sleight of Hand and Stealth",
65+
"name": "Skill Proficiencies",
66+
"parent": "srd-2024_criminal",
67+
"type": "skill_proficiency"
68+
},
69+
"model": "api_v2.backgroundbenefit",
70+
"pk": "srd-2024_criminal_skill-proficiencies"
71+
},
72+
{
73+
"fields": {
74+
"desc": "Thieves' Tools",
75+
"name": "Tool Proficiency",
76+
"parent": "srd-2024_criminal",
77+
"type": "tool_proficiency"
78+
},
79+
"model": "api_v2.backgroundbenefit",
80+
"pk": "srd-2024_criminal_tool-proficiencies"
81+
},
82+
{
83+
"fields": {
84+
"desc": "*Choose A or B:* (A) 2 Daggers, Thieves' Tools, Crowbar, 2 Pouches, Traveler's Clothes, 16 GP; or (B) 50 GP",
85+
"name": "Equipment",
86+
"parent": "srd-2024_criminal",
87+
"type": "equipment"
88+
},
89+
"model": "api_v2.backgroundbenefit",
90+
"pk": "srd-2024_criminal_equipment"
91+
},
92+
{
93+
"fields": {
94+
"desc": "Alert",
95+
"name": "Feat",
96+
"parent": "srd-2024_criminal",
97+
"type": "feat"
98+
},
99+
"model": "api_v2.backgroundbenefit",
100+
"pk": "srd-2024_criminal_feat"
101+
},
102+
{
103+
"fields": {
104+
"desc": "Constitution, Intelligence, Wisdom",
105+
"name": "Ability Scores",
106+
"parent": "srd-2024_sage",
107+
"type": "ability_score"
108+
},
109+
"model": "api_v2.backgroundbenefit",
110+
"pk": "srd-2024_sage_ability-scores"
111+
},
112+
{
113+
"fields": {
114+
"desc": "Arcana and History",
115+
"name": "Skill Proficiencies",
116+
"parent": "srd-2024_sage",
117+
"type": "skill_proficiency"
118+
},
119+
"model": "api_v2.backgroundbenefit",
120+
"pk": "srd-2024_sage_skill-proficiencies"
121+
},
122+
{
123+
"fields": {
124+
"desc": "Calligrapher's Supplies",
125+
"name": "Tool Proficiency",
126+
"parent": "srd-2024_sage",
127+
"type": "tool_proficiency"
128+
},
129+
"model": "api_v2.backgroundbenefit",
130+
"pk": "srd-2024_sage_tool-proficiencies"
131+
},
132+
{
133+
"fields": {
134+
"desc": "*Choose A or B:* (A) Quarterstaff, Calligrapher's Supplies, Book (history), Parchment (8 sheets), Robe, 8 GP; or (B) 50 GP",
135+
"name": "Equipment",
136+
"parent": "srd-2024_sage",
137+
"type": "equipment"
138+
},
139+
"model": "api_v2.backgroundbenefit",
140+
"pk": "srd-2024_sage_equipment"
141+
},
142+
{
143+
"fields": {
144+
"desc": "Magic Initiate (Wizard)",
145+
"name": "Feat",
146+
"parent": "srd-2024_sage",
147+
"type": "feat"
148+
},
149+
"model": "api_v2.backgroundbenefit",
150+
"pk": "srd-2024_sage_feat"
151+
},
152+
{
153+
"fields": {
154+
"desc": "Strength, Dexterity, Constitution",
155+
"name": "Ability Scores",
156+
"parent": "srd-2024_soldier",
157+
"type": "ability_score"
158+
},
159+
"model": "api_v2.backgroundbenefit",
160+
"pk": "srd-2024_soldier_ability-scores"
161+
},
162+
{
163+
"fields": {
164+
"desc": "Athletics and Intimidation",
165+
"name": "Skill Proficiencies",
166+
"parent": "srd-2024_soldier",
167+
"type": "skill_proficiency"
168+
},
169+
"model": "api_v2.backgroundbenefit",
170+
"pk": "srd-2024_soldier_skill-proficiencies"
171+
},
172+
{
173+
"fields": {
174+
"desc": "Choose one kind of Gaming Set",
175+
"name": "Tool Proficiency",
176+
"parent": "srd-2024_soldier",
177+
"type": "tool_proficiency"
178+
},
179+
"model": "api_v2.backgroundbenefit",
180+
"pk": "srd-2024_soldier_tool-proficiencies"
181+
},
182+
{
183+
"fields": {
184+
"desc": "*Choose A or B:* (A) Spear, Shortbow, 20 Arrows, Gaming Set (same as above), Healer's Kit, Quiver, Traveler's Clothes, 14 GP; or (B) 50 GP",
185+
"name": "Equipment",
186+
"parent": "srd-2024_soldier",
187+
"type": "equipment"
188+
},
189+
"model": "api_v2.backgroundbenefit",
190+
"pk": "srd-2024_soldier_equipment"
191+
},
192+
{
193+
"fields": {
194+
"desc": "Savage Attacker",
195+
"name": "Feat",
196+
"parent": "srd-2024_soldier",
197+
"type": "feat"
198+
},
199+
"model": "api_v2.backgroundbenefit",
200+
"pk": "srd-2024_soldier_feat"
201+
}
202+
]

0 commit comments

Comments
 (0)