Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions api_v2/migrations/0027_creature_armor_detail_item_armor_detail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.1.2 on 2025-03-31 08:32

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api_v2', '0026_delete_searchresult'),
]

operations = [
migrations.AddField(
model_name='creature',
name='armor_detail',
field=models.CharField(default=False, help_text='Represents parathetical text that follows an objects AC', max_length=64, null=True),
),
migrations.AddField(
model_name='item',
name='armor_detail',
field=models.CharField(default=False, help_text='Represents parathetical text that follows an objects AC', max_length=64, null=True),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.1.2 on 2025-03-31 08:39

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api_v2', '0027_creature_armor_detail_item_armor_detail'),
]

operations = [
migrations.AlterField(
model_name='creature',
name='armor_detail',
field=models.CharField(default='', help_text='Represents parathetical text that follows an objects AC', max_length=64, null=True),
),
migrations.AlterField(
model_name='item',
name='armor_detail',
field=models.CharField(default='', help_text='Represents parathetical text that follows an objects AC', max_length=64, null=True),
),
]
7 changes: 7 additions & 0 deletions api_v2/models/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ class Object(HasName):
MaxValueValidator(OBJECT_ARMOR_CLASS_MAXIMUM)],
help_text='Integer representing the armor class of the object.')

armor_detail = models.CharField(
default="",
null=True,
help_text='Represents parathetical text that follows an objects AC',
max_length=64,
)

hit_points = models.IntegerField(
default=0,
null=False, # Allow an unspecified hit point value.
Expand Down
1 change: 1 addition & 0 deletions api_v2/serializers/creature.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Meta:
'alignment',
'languages',
'armor_class',
'armor_detail',
'hit_points',
'hit_dice',
'challenge_rating_decimal',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
],
"alignment": "chaotic evil",
"armor_class": 22,
"armor_detail": "natural armor",
"blindsight_range": 60.0,
"category": "Monsters",
"challenge_rating_decimal": "24.000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
],
"alignment": "neutral evil",
"armor_class": 15,
"armor_detail": "leather armor, shield",
"blindsight_range": null,
"category": "Monsters",
"challenge_rating_decimal": "0.250",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
],
"alignment": "any alignment",
"armor_class": 16,
"armor_detail": "chain shirt, shield",
"blindsight_range": null,
"category": "Monsters",
"challenge_rating_decimal": "0.125",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
],
"alignment": "unaligned",
"armor_class": 9,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.125",
Expand Down Expand Up @@ -202,6 +203,7 @@
"actions": [],
"alignment": "unaligned",
"armor_class": 10,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.000",
Expand Down Expand Up @@ -371,6 +373,7 @@
],
"alignment": "unaligned",
"armor_class": 10,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.250",
Expand Down Expand Up @@ -584,6 +587,7 @@
],
"alignment": "unaligned",
"armor_class": 12,
"armor_detail": "natural armor",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "4.000",
Expand Down Expand Up @@ -793,6 +797,7 @@
],
"alignment": "unaligned",
"armor_class": 12,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.125",
Expand Down Expand Up @@ -1002,6 +1007,7 @@
],
"alignment": "unaligned",
"armor_class": 10,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.125",
Expand Down Expand Up @@ -1219,6 +1225,7 @@
],
"alignment": "unaligned",
"armor_class": 10,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.125",
Expand Down Expand Up @@ -1409,6 +1416,7 @@
],
"alignment": "unaligned",
"armor_class": 10,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.250",
Expand Down Expand Up @@ -1599,6 +1607,7 @@
],
"alignment": "unaligned",
"armor_class": 11,
"armor_detail": "",
"blindsight_range": null,
"category": "Miscellaneous Creatures",
"challenge_rating_decimal": "0.500",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"armor": "http://localhost:8000/v2/armor/srd_splint/",
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/armor/",
"cost": "200.00",
"damage_immunities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/wondrous-item/",
"cost": "0.00",
"damage_immunities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/weapon/",
"cost": "10.00",
"damage_immunities": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/weapon/",
"cost": "50.00",
"damage_immunities": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/adventuring-gear/",
"cost": "10.00",
"damage_immunities": [
Expand Down Expand Up @@ -44,6 +45,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/adventuring-gear/",
"cost": "20.00",
"damage_immunities": [
Expand Down Expand Up @@ -83,6 +85,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/rod/",
"cost": "10.00",
"damage_immunities": [
Expand Down Expand Up @@ -122,6 +125,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/staff/",
"cost": "5.00",
"damage_immunities": [
Expand Down Expand Up @@ -161,6 +165,7 @@
{
"armor": null,
"armor_class": 0,
"armor_detail": "",
"category": "http://localhost:8000/v2/itemcategories/wand/",
"cost": "10.00",
"damage_immunities": [
Expand Down
4 changes: 2 additions & 2 deletions data/v2/en-publishing/mmenag/Creature.json
Original file line number Diff line number Diff line change
Expand Up @@ -8320,7 +8320,7 @@
"hit_dice": "12d10+48",
"nonmagical_attack_resistance": false,
"nonmagical_attack_immunity": false,
"languages_desc": "—",
"languages_desc": "",
"telepathy_range": null,
"walk": 30.0,
"unit": null,
Expand Down Expand Up @@ -45189,4 +45189,4 @@
"environments": []
}
}
]
]
11 changes: 7 additions & 4 deletions data/v2/green-ronin/tdcs/Creature.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"fire"
],
"condition_immunities": [],
"environments": []
"environments": [],
"armor_detail": "red dragon scale mail"
}
},
{
Expand Down Expand Up @@ -225,7 +226,8 @@
"condition_immunities": [
"petrified"
],
"environments": []
"environments": [],
"armor_detail": "granite half plate"
}
},
{
Expand Down Expand Up @@ -302,7 +304,8 @@
"cold"
],
"condition_immunities": [],
"environments": []
"environments": [],
"armor_detail": "hide armor of cold resistance"
}
}
]
]
Loading