Bug fixes. Migrations.

This commit is contained in:
tcaxle 2020-04-11 13:56:12 +01:00
parent 160bf51552
commit 54ab35444e
4 changed files with 40 additions and 11 deletions

View File

@ -0,0 +1,29 @@
# Generated by Django 3.0.5 on 2020-04-11 12:55
import app.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0007_auto_20200411_0302'),
]
operations = [
migrations.AddField(
model_name='modifierability',
name='ability',
field=app.models.SingleChoiceField(blank=True, choices=[('War', (('ARCHERY', 'Archery'), ('ATHLETICS', 'Athletics'), ('AWARENESS', 'Awareness'), ('BRAWL', 'Brawl'), ('DODGE', 'Dodge'), ('INTEGRITY', 'Integrity'), ('MELEE', 'Melee'), ('RESISTANCE', 'Resistance'), ('THROWN', 'Thrown'), ('WAR', 'War'))), ('Life', (('CRAFT', 'Craft'), ('LARCENY', 'Larceny'), ('LINGUISTICS', 'Linguistics'), ('PERFORMANCE', 'Performance'), ('PRESENCE', 'Presence'), ('RIDE', 'Ride'), ('SAIL', 'Sail'), ('SOCIALISE', 'Socialise'), ('STEALTH', 'Stealth'), ('SURVIVAL', 'Survival'))), ('Wisdom', (('BUREAUCRACY', 'Bureaucracy'), ('INVESTIGATION', 'Investigation'), ('LORE', 'Lore'), ('MEDICINE', 'Medicine'), ('OCCULT', 'Occult')))], max_length=100, verbose_name='Ability'),
),
migrations.AddField(
model_name='modifierattribute',
name='attribute',
field=app.models.SingleChoiceField(blank=True, choices=[('Physical', (('STR', 'Srength'), ('DEX', 'Dexterity'), ('STA', 'Stamina'))), ('Social', (('CHA', 'Charisma'), ('MAN', 'Manipulation'), ('APP', 'Appearance'))), ('Mental', (('PER', 'Perception'), ('INT', 'Intelligence'), ('WIT', 'Wits')))], max_length=100, verbose_name='Attribute'),
),
migrations.AddField(
model_name='modifierstatic',
name='static',
field=app.models.SingleChoiceField(blank=True, choices=[('SOAK NATURAL', 'Natural Soak'), ('SOAK ARMORED', 'Armored Soak'), ('SOAK TOTAL', 'Total Soak'), ('HARDNESS', 'Hardness'), ('PARRY', 'Parry'), ('EVASION', 'Evasion'), ('RESOLVE', 'Resolve'), ('GUILE', 'Guile'), ('RUSH', 'Rush'), ('DISENGAGE', 'Disengage'), ('JOIN BATTLE', 'Join Battle')], max_length=100, verbose_name='Static'),
),
]

View File

@ -5,21 +5,21 @@ from django.db import models
#==============================================================================# #==============================================================================#
ATTRIBUTES = [ ATTRIBUTES = [
( (
"Physical" ( "Physical", (
("STR", "Srength"), ("STR", "Srength"),
("DEX", "Dexterity"), ("DEX", "Dexterity"),
("STA", "Stamina"), ("STA", "Stamina"),
), ),
), ),
( (
"Social" ( "Social", (
("CHA", "Charisma"), ("CHA", "Charisma"),
("MAN", "Manipulation"), ("MAN", "Manipulation"),
("APP", "Appearance"), ("APP", "Appearance"),
), ),
), ),
( (
"Mental" ( "Mental", (
("PER", "Perception"), ("PER", "Perception"),
("INT", "Intelligence"), ("INT", "Intelligence"),
("WIT", "Wits"), ("WIT", "Wits"),
@ -29,7 +29,7 @@ ATTRIBUTES = [
ABILITIES = [ ABILITIES = [
( (
"War" ( "War", (
("ARCHERY", "Archery"), ("ARCHERY", "Archery"),
("ATHLETICS", "Athletics"), ("ATHLETICS", "Athletics"),
("AWARENESS", "Awareness"), ("AWARENESS", "Awareness"),
@ -43,7 +43,7 @@ ABILITIES = [
), ),
), ),
( (
"Life" ( "Life", (
("CRAFT", "Craft"), ("CRAFT", "Craft"),
("LARCENY", "Larceny"), ("LARCENY", "Larceny"),
("LINGUISTICS", "Linguistics"), ("LINGUISTICS", "Linguistics"),
@ -57,7 +57,7 @@ ABILITIES = [
), ),
), ),
( (
"Wisdom" ( "Wisdom", (
("BUREAUCRACY", "Bureaucracy"), ("BUREAUCRACY", "Bureaucracy"),
("INVESTIGATION", "Investigation"), ("INVESTIGATION", "Investigation"),
("LORE", "Lore"), ("LORE", "Lore"),
@ -89,7 +89,7 @@ CATEGORIES = [
TAGS_WEAPON = [ TAGS_WEAPON = [
( (
"General" ( "General", (
("ONE HANDED", "One Handed"), ("ONE HANDED", "One Handed"),
("TWO HANDED", "Two Handed"), ("TWO HANDED", "Two Handed"),
("BASHING", "Bashing"), ("BASHING", "Bashing"),
@ -101,7 +101,7 @@ TAGS_WEAPON = [
), ),
), ),
( (
"Melee" ( "Melee", (
("MELEE", "Melee"), ("MELEE", "Melee"),
("BALANCED", "Balanced"), ("BALANCED", "Balanced"),
("BRAWL", "Brawl"), ("BRAWL", "Brawl"),
@ -119,7 +119,7 @@ TAGS_WEAPON = [
), ),
), ),
( (
"Thrown" ( "Thrown", (
("THROWN", "Occult"), ("THROWN", "Occult"),
("CUTTING", "Cutting"), ("CUTTING", "Cutting"),
("POISONABLE", "Poisonable"), ("POISONABLE", "Poisonable"),
@ -127,7 +127,7 @@ TAGS_WEAPON = [
), ),
), ),
( (
"Archery" ( "Archery", (
("ARCHERY", "Archery"), ("ARCHERY", "Archery"),
("CROSSBOW", "Crossbow"), ("CROSSBOW", "Crossbow"),
("FLAME", "Flame"), ("FLAME", "Flame"),
@ -208,7 +208,7 @@ class modifierAttribute(modifierBase):
attribute = SingleChoiceField("Attribute", ATTRIBUTES) attribute = SingleChoiceField("Attribute", ATTRIBUTES)
class modifierAbility(modifierBase): class modifierAbility(modifierBase):
ability = SingleChoiceField("Ability", ABIILITIES) ability = SingleChoiceField("Ability", ABILITIES)
class modifierStatic(modifierBase): class modifierStatic(modifierBase):
static = SingleChoiceField("Static", STATICS) static = SingleChoiceField("Static", STATICS)