Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tob1 2024 monsters #426

Merged
merged 15 commits into from
Apr 10, 2024
18 changes: 18 additions & 0 deletions api/migrations/0035_alter_monster_reactions_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2024-03-29 20:46

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0034_plane_parent'),
]

operations = [
migrations.AlterField(
model_name='monster',
name='reactions_json',
field=models.TextField(null=True),
),
]
18 changes: 18 additions & 0 deletions api/migrations/0036_alter_monster_legendary_actions_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2024-03-29 20:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0035_alter_monster_reactions_json'),
]

operations = [
migrations.AlterField(
model_name='monster',
name='legendary_actions_json',
field=models.TextField(null=True),
),
]
18 changes: 18 additions & 0 deletions api/migrations/0037_alter_monster_legendary_desc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2024-03-29 20:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0036_alter_monster_legendary_actions_json'),
]

operations = [
migrations.AlterField(
model_name='monster',
name='legendary_desc',
field=models.TextField(null=True),
),
]
18 changes: 18 additions & 0 deletions api/migrations/0038_alter_monster_bonus_actions_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2024-03-29 20:48

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0037_alter_monster_legendary_desc'),
]

operations = [
migrations.AlterField(
model_name='monster',
name='bonus_actions_json',
field=models.TextField(default=None, null=True),
),
]
8 changes: 4 additions & 4 deletions api/models/monster.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def skills(self):
def actions(self):
return json.loads(self.actions_json)

bonus_actions_json = models.TextField(default=None)
bonus_actions_json = models.TextField(default=None, null=True)

def bonus_actions(self):
return json.loads(self.bonus_actions_json)
Expand All @@ -99,13 +99,13 @@ def bonus_actions(self):

def special_abilities(self):
return json.loads(self.special_abilities_json)
reactions_json = models.TextField() # A list of reactions in json text.
reactions_json = models.TextField(null=True) # A list of reactions in json text.

def reactions(self):
return json.loads(self.reactions_json)
legendary_desc = models.TextField()
legendary_desc = models.TextField(null=True)
# a list of legendary actions in json.
legendary_actions_json = models.TextField()
legendary_actions_json = models.TextField(null=True)

def legendary_actions(self):
return json.loads(self.legendary_actions_json)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"count": 16,
"count": 17,
"next": null,
"previous": null,
"results": [
Expand Down Expand Up @@ -210,6 +210,19 @@
"title": "TODO",
"url": "https://a5esrd.com/a5esrd",
"version": "1.0"
},
{
"author": "Dan Dillon, Chris Harris, Rodrigo Garcia Carmona, Wolfgang Baur",
"copyright": "Tome of Beasts. 2023 Open Design LLC. All rights reserved.",
"created_at": "2014-07-16T00:00:0.000000",
"desc": "Tome of Beasts Open-Gaming License Content by Kobold Press",
"license": "Open Gaming License",
"license_url": "http://open5e.com/legal",
"organization": "Kobold Press",
"slug": "tob-2023",
"title": "Tome of Beasts 2023",
"url": "https://koboldpress.com/kpstore/product/tome-of-beasts-1-2023-edition/",
"version": "1.0"
}
]
}
19 changes: 19 additions & 0 deletions data/v1/tob-2023/Document.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"model": "api.document",
"pk": 47,
"fields": {
"slug": "tob-2023",
"title": "Tome of Beasts 2023",
"desc": "Tome of Beasts Open-Gaming License Content by Kobold Press",
"license": "Open Gaming License",
"author": "Dan Dillon, Chris Harris, Rodrigo Garcia Carmona, Wolfgang Baur",
"organization": "Kobold Press",
"version": "1.0",
"url": "https://koboldpress.com/kpstore/product/tome-of-beasts-1-2023-edition/",
"copyright": "Tome of Beasts. 2023 Open Design LLC. All rights reserved.",
"created_at": "2024-03-22T00:18:08.061",
"license_url": "http://open5e.com/legal"
}
}
]
20,810 changes: 20,810 additions & 0 deletions data/v1/tob-2023/Monster.json

Large diffs are not rendered by default.

Loading