2019-08-02 23:01:17 -04:00
|
|
|
-- -*- mode:sql sql-product:sqlite -*-
|
|
|
|
|
|
|
|
/* Decide on format of flavor text; probably markdown? */
|
|
|
|
|
2019-08-02 23:14:58 -04:00
|
|
|
/* Decide on whether to break out the flavor text to another table? */
|
|
|
|
|
2019-08-02 23:32:03 -04:00
|
|
|
/* Probably need to model Half-Elf and Half-Orc as a whole separate
|
|
|
|
ancestry? NO. They are separate heritages, not separate ancestries. */
|
2019-08-02 23:14:58 -04:00
|
|
|
|
2019-08-06 00:03:25 -04:00
|
|
|
|
|
|
|
INSERT INTO ancestries (ancestry_id, short_name, flavor_text, hp, size_id, speed, vision_id)
|
|
|
|
VALUES
|
|
|
|
(1, 'Dwarf', 'TODO', 10, 3, 20, 1),
|
|
|
|
(2, 'Elf', 'TODO', 6, 3, 30, 2),
|
|
|
|
(3, 'Gnome', 'TODO', 8, 2, 25, 2),
|
|
|
|
(4, 'Goblin', 'TODO', 6, 2, 25, 1),
|
|
|
|
(5, 'Halfling', 'TODO', 6, 2, 25, 3),
|
|
|
|
(6, 'Human', 'TODO', 8, 3, 25, 4);
|
|
|
|
|
|
|
|
|
|
|
|
/* TODO insert remaining data into ancestries_boosts and ancestries_flaws */
|
|
|
|
|
|
|
|
/* Example Query to get boosts in text representation:
|
|
|
|
|
|
|
|
sqlite> select ancestries.short_name, abilityscores.short_name FROM ancestries INNER JOIN ancestries_boosts on ancestries_boosts.ancestry_id = ancestries.ancestry_id INNER JOIN abilityscores on ancestries_boosts.abilityscores_id = abilityscores.abilityscores_id;
|
|
|
|
short_name short_name
|
|
|
|
---------- ----------
|
|
|
|
Dwarf CON
|
|
|
|
Dwarf WIS
|
|
|
|
Dwarf Free1
|
|
|
|
*/
|
|
|
|
|
|
|
|
INSERT INTO ancestries_boosts (ancestry_id, abilityscores_id)
|
|
|
|
VALUES
|
|
|
|
(1, 3), -- dwarf CON
|
|
|
|
(1, 5), -- dwarf WIS
|
|
|
|
(1, 7), -- dwarf free 1
|
|
|
|
(2, 2), -- elf DEX
|
|
|
|
(2, 4), -- elf INT
|
|
|
|
(2, 7), -- elf free 1
|
|
|
|
(3, 3), -- gnome CON
|
|
|
|
(3, 6), -- gnome CHA
|
|
|
|
(3, 7), -- gnome free 1
|
|
|
|
(4, 2), -- goblin DEX
|
|
|
|
(4, 6), -- goblin CHA
|
|
|
|
(4, 7), -- goblin free 1
|
|
|
|
(5, 2), -- halfling DEX
|
|
|
|
(5, 5), -- halfling WIS
|
|
|
|
(5, 7), -- halfling free 1
|
|
|
|
(6, 7), -- human free 1
|
|
|
|
(6, 8), -- human free 2
|
|
|
|
|
|
|
|
INSERT INTO ancestries_flaws (ancestry_id, abilityscores_id)
|
2019-08-02 23:01:17 -04:00
|
|
|
VALUES
|
2019-08-06 00:03:25 -04:00
|
|
|
(1, 6), -- dwarf CHA
|
|
|
|
(2, 3), -- elf CON
|
|
|
|
(3, 1), -- gnome STR
|
|
|
|
(4, 5), -- goblin WIS
|
|
|
|
(5, 1), -- halfling STR
|
2019-08-02 23:32:03 -04:00
|
|
|
|
|
|
|
/* TODO flesh out the ancestry-trait pairs */
|
|
|
|
|
2019-08-05 15:40:39 -04:00
|
|
|
/* ancestries 7 = half elf and 8 = half orc.
|
|
|
|
(8,91),
|
|
|
|
|
|
|
|
(8,124),
|
|
|
|
|
|
|
|
(7,58),
|
|
|
|
|
|
|
|
(7,91),
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
2019-08-02 23:32:03 -04:00
|
|
|
INSERT INTO ancestries_traits (ancestry_id, trait_id)
|
|
|
|
VALUES
|
2019-08-05 15:40:39 -04:00
|
|
|
(4,81),
|
|
|
|
(4,91),
|
|
|
|
(6,90),
|
|
|
|
(6,91),
|
|
|
|
(2,58),
|
|
|
|
(2,91),
|
|
|
|
(1,54),
|
|
|
|
(1,91),
|
|
|
|
(5,87),
|
|
|
|
(5,91),
|
|
|
|
(3,80),
|
|
|
|
(3,91);
|