update schema to account for a trait type, data partial on adding types to traits data
parent
a7b7a3190d
commit
5813a49b07
|
@ -1,9 +1,29 @@
|
|||
INSERT INTO traits (trait_id,short_name,description)
|
||||
-- -*- mode:sql sql-product:sqlite -*-
|
||||
|
||||
INSERT INTO traittypes (traittype_id, name)
|
||||
VALUES
|
||||
(1, 'None'),
|
||||
(2, 'Alignment'),
|
||||
(3, 'Ancestry'),
|
||||
(4, 'Armor'),
|
||||
(5, 'Class'),
|
||||
(6, 'Creature Type'),
|
||||
(7, 'Elemental'),
|
||||
(8, 'Energy'),
|
||||
(9, 'Equipment'),
|
||||
(10, 'Monster'),
|
||||
(11, 'Poison'),
|
||||
(12, 'Rarity'),
|
||||
(13, 'School'),
|
||||
(14, 'Tradition'),
|
||||
(15, 'Weapon');
|
||||
|
||||
INSERT INTO traits (trait_id, traittype, short_name,description)
|
||||
|
||||
VALUES
|
||||
(1,"Aberration","Aberrations are creatures from beyond the planes or corruptions of the natural order."),
|
||||
(2,"Abjuration","Effects and magic items with this trait are associated with the abjuration school of magic, typically involving protection or wards."),
|
||||
(3,"Acid","Effects with this trait deal acid damage. Creatures with this trait have a magical connection to acid."),
|
||||
(1, 6, "Aberration","Aberrations are creatures from beyond the planes or corruptions of the natural order."),
|
||||
(2, 13, "Abjuration","Effects and magic items with this trait are associated with the abjuration school of magic, typically involving protection or wards."),
|
||||
(3, 8, "Acid","Effects with this trait deal acid damage. Creatures with this trait have a magical connection to acid."),
|
||||
(4,"Additive","Feats with the additive trait allow you to spend actions to add special substances to bombs or elixirs. You can add only one additive to a single alchemical item, and attempting to add another spoils the item. You can typically use actions with the additive trait only when you’re creating an infused alchemical item, and some can be used only with the Quick Alchemy action. The additive trait is always followed by a level, such as additive 2. An additive adds its level to the level of the alchemical item you’re modifying; the result is the new level of the mixture. The mixture’s item level must be no higher than your advanced alchemy level."),
|
||||
(5,"Air","Effects with the air trait either manipulate or conjure air. Those that manipulate air have no effect in a vacuum or an area without air. Creatures with this trait consist primarily of air or have a magical connection to that element."),
|
||||
(6,"Alchemical","Alchemical items are powered by reactions of alchemical reagents. Alchemical items aren’t magical and don’t radiate a magical aura."),
|
||||
|
|
|
@ -55,10 +55,19 @@ CREATE TABLE ancestries_heritages (
|
|||
/* has partial data done */
|
||||
CREATE TABLE traits (
|
||||
trait_id INTEGER PRIMARY KEY,
|
||||
short_name TEXT NOT NULL UNIQUE,
|
||||
description TEXT NOT NULL
|
||||
-- short_name TEXT NOT NULL UNIQUE,
|
||||
traittype INTEGER,
|
||||
short_name TEXT NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
FOREIGN KEY (traittype) REFERENCES traittypes(traittypes_id)
|
||||
);
|
||||
|
||||
CREATE TABLE traittypes (
|
||||
traittype_id INTEGER PRIMARY KEY,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE heritages_traits (
|
||||
id INTEGER PRIMARY KEY,
|
||||
heritage_id INTEGER NOT NULL,
|
||||
|
|
Loading…
Reference in New Issue