Armor. Migrations.

This commit is contained in:
tcaxle 2020-04-11 14:03:04 +01:00
parent 7b76481d1d
commit 5ee2813c4e
4 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,24 @@
# Generated by Django 3.0.5 on 2020-04-11 13:02
import app.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0009_auto_20200411_1301'),
]
operations = [
migrations.AddField(
model_name='itemarmor',
name='category',
field=app.models.SingleChoiceField(blank=True, choices=[('L', 'Light'), ('M', 'Medium'), ('H', 'Heavy')], max_length=100, verbose_name='Category'),
),
migrations.AddField(
model_name='itemarmor',
name='tags',
field=app.models.MultiChoiceField(blank=True, choices=[('BUOYANT', 'Buoyant'), ('CONCEALABLE', 'Concealable'), ('SILENT', 'Silent')], max_length=100, verbose_name='Tags'),
),
]

View File

@ -265,8 +265,8 @@ class itemWeaponRanged(itemWeaponBase):
#----------------------------------- ARMOR ------------------------------------#
#==============================================================================#
class itemArmor(itemBase):
# category
# tags
category = SingleChoiceField("Category", CATEGORIES)
tags = MultiChoiceField("Tags", TAGS_ARMOR)
soak = NamedIntegerField("Soak")
hardness = NamedIntegerField("Hardness")
mobilityPenalty = NamedIntegerField("Mobility Penalty")