From 5ee2813c4ef96ff0f425a730dcf9bfe6d805d695 Mon Sep 17 00:00:00 2001 From: tcaxle Date: Sat, 11 Apr 2020 14:03:04 +0100 Subject: [PATCH] Armor. Migrations. --- app/__pycache__/models.cpython-38.pyc | Bin 10335 -> 10399 bytes app/migrations/0010_auto_20200411_1302.py | 24 ++++++++++++++++++ .../0010_auto_20200411_1302.cpython-38.pyc | Bin 0 -> 838 bytes app/models.py | 4 +-- 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 app/migrations/0010_auto_20200411_1302.py create mode 100644 app/migrations/__pycache__/0010_auto_20200411_1302.cpython-38.pyc diff --git a/app/__pycache__/models.cpython-38.pyc b/app/__pycache__/models.cpython-38.pyc index dffe3f5c777ec3c2a27ab146dff633df9b2e248f..6a5766c99a021c4492804ec5ce4ca4247b1540f0 100644 GIT binary patch delta 660 zcmYk4%TE(g6vlhoVVG%|;-qS)cAzoR5=aQ$7~L2g<=Chss_;@*m#kNr<6niI4ivbImn*w{W5wymKiJMJ`CeP!p#}nDAAQ z@RMOGP@&dN`aPi@B*R|JjL-~HZRMvCHN*^J4`Lspj%WqF(}@wIW7c1U4UZZtL;)&N z2w}T8czpqrJ0n@TDcPEcCo&=OL}XE964FV}coWl)y{X%Gr|2o)DvqjWtXwyrQP^i6 z9EM6`7}22R=xpDL_1r4ZMe%5nM_05OpZm>)HKZ;J(_;p@7SU?K!U_(uILqjD)8s3?{iT5Ic!mm|%={7-ul>(A6up@zG?-yiG3XOE)jAtCGWc}N5>DVR!t3% zD_cEu1=Kug_|Ga&N<=LXd-lglP{2K31V6eY<@_IefN#EGZG+CjCPCP;U`)+qKXpm&!2!Q7V9tidsxL4q&fO~)g{PbV_0Og8xH2?qr diff --git a/app/migrations/0010_auto_20200411_1302.py b/app/migrations/0010_auto_20200411_1302.py new file mode 100644 index 0000000..57dabaf --- /dev/null +++ b/app/migrations/0010_auto_20200411_1302.py @@ -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'), + ), + ] diff --git a/app/migrations/__pycache__/0010_auto_20200411_1302.cpython-38.pyc b/app/migrations/__pycache__/0010_auto_20200411_1302.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16392f8bacc04e5af03be60c1132491dad99f3a5 GIT binary patch literal 838 zcmZWn&2G~`5cbbHaoiMIBn09Gz#L+y<${Dz)2L9SBt4`(;6trVW^f$VcCekQIm5LF z9)qXgJ@(3}Z-6QxnBBB$B-YyT%*sHa6zXxeE*&Xh1Wu!G#uhR}8kU?l5hQX%S`{9>7D5*}20c zR^-7hDS9MZ!#gFuC2hV~$R}YKzK;2_F5_)A$#*CL)QA&5pYfOrA zbxNnqfpi9GGOLw8l#L-my3AB?ES+QI7prTaQl#6zJ>)a#Oa#wA%jR@eq*JWuLilAY zFi+~4Y+qnGDJqO}o}q8kUI8d{B$-;1&ZiUwNLKTtBA({q*~!P==#-pgvEsQBveiEs z^^bak-r?Ygf+C+H7kna+_8Q|4gCl}B#wk(OlAThXk-sI~ShK{j^x~LUmjcOe$MKgX z7m8U$fD6n4^J$7zY3agx0PmEdQgw!GXuXx(9jAFBu&+zh`*LTv6m`0};uQ|9`8!&SF(k=Ne6#)iW}#ZT)2q zGcEd_{@L(uG|qP-k1}`G%GYJIV9xWT=)go*sd4uL*WL?CE!{Wkt9q*#D|H2~*|z@y DrTXd5 literal 0 HcmV?d00001 diff --git a/app/models.py b/app/models.py index 5004b27..656f4eb 100644 --- a/app/models.py +++ b/app/models.py @@ -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")