From 38e6a2d0d6f452d488f04fe6457a04f1fefc10a3 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 14 Aug 2019 19:59:17 -0400 Subject: [PATCH 01/41] Create staves.csv --- src/staves/staves.csv | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/staves/staves.csv diff --git a/src/staves/staves.csv b/src/staves/staves.csv new file mode 100644 index 0000000..b75a637 --- /dev/null +++ b/src/staves/staves.csv @@ -0,0 +1,43 @@ +id,name,level,price,bulk,usage,cantrips,1,2,3,4,5,6,7,8,9,source_id,source_pg,description +,Animal Staff,4,90,1,,,,,,,,,,,,,, +,Animal Staff (Greater),8,460,1,,,,,,,,,,,,,, +,Animal Staff (Major),12,1900,1,,,,,,,,,,,,,, +,Mentalist's Staff,4,230,1,,,,,,,,,,,,,, +,Mentalist's Staff (Greater),8,900,1,,,,,,,,,,,,,, +,Mentalist's Staff (Major),12,4000,1,,,,,,,,,,,,,, +,Staff of Abjuration,6,230,1,,,,,,,,,,,,,, +,Staff of Abjuration (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Abjuration (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Conjuration,6,230,1,,,,,,,,,,,,,, +,Staff of Conjuration (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Conjuration (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Divination,6,230,1,,,,,,,,,,,,,, +,Staff of Divination (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Divination (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Enchantment,6,230,1,,,,,,,,,,,,,, +,Staff of Enchantment (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Enchantment (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Evocation,6,230,1,,,,,,,,,,,,,, +,Staff of Evocation (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Evocation (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Fire,3,60,1,held in 1 hand,produce flame,burning hands,,,,,,,,,1,595,"This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame. \n\n Activate Cast a Spell; Effect You expend a number of charges from the staff to cast a spell from its list. Craft Requirements Supply one casting of all listed levels of all listed spells." +,Staff of Fire (Greater),8,450,1,held in 1 hand,produce flame,burning hands,"burning hands, flaming sphere","flaming sphere, fireball",,,,,,,1,595,"This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame. \n\n Activate Cast a Spell; Effect You expend a number of charges from the staff to cast a spell from its list. Craft Requirements Supply one casting of all listed levels of all listed spells." +,Staff of Fire (Major),12,1800,1,held in 1 hand,produce flame,burning hands,"burning hands, flaming sphere","flaming sphere, fireball","fire shield, fireball, wall of fire","fireball, wall of fire",,,,,1,595,"This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame. \n\n Activate Cast a Spell; Effect You expend a number of charges from the staff to cast a spell from its list. Craft Requirements Supply one casting of all listed levels of all listed spells." +,Staff of Healing,4,90,1,,,,,,,,,,,,,, +,Staff of Healing (Greater),8,470,1,,,,,,,,,,,,,, +,Staff of Healing (Major),12,1800,1,,,,,,,,,,,,,, +,Staff of Healing (True),16,9200,1,,,,,,,,,,,,,, +,Staff of Illumination,8,425,1,,,,,,,,,,,,,, +,Staff of Illusion,6,230,1,,,,,,,,,,,,,, +,Staff of Illusion (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Illusion (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Necromancy,6,230,1,,,,,,,,,,,,,, +,Staff of Necromancy (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Necromancy (Major),14,4000,1,,,,,,,,,,,,,, +,Staff of Power,16,10000,1,,,,,,,,,,,,,, +,Staff of the Magi,20,90000,1,,,,,,,,,,,,,, +,Staff of Transmutation,6,230,1,,,,,,,,,,,,,, +,Staff of Transmutation (Greater),10,900,1,,,,,,,,,,,,,, +,Staff of Transmutation (Major),14,4000,1,,,,,,,,,,,,,, +,Verdant Staff,6,225,1,,,,,,,,,,,,,, +,Verdant Staff (Greater),12,1750,1,,,,,,,,,,,,,, From 7074ae489d45cedd8233fe3ed58c5dea04a1c9b0 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 23 Aug 2019 20:58:32 -0400 Subject: [PATCH 02/41] Schema for staff and staff_spell --- schema/staves.sql | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 schema/staves.sql diff --git a/schema/staves.sql b/schema/staves.sql new file mode 100644 index 0000000..dc856ad --- /dev/null +++ b/schema/staves.sql @@ -0,0 +1,33 @@ +-- -*- mode:sql sql-product:sqlite -*- + +CREATE TABLE staff ( + staff_id INTEGER PRIMARY KEY NOT NULL, + "name" TEXT NOT NULL UNIQUE, -- every staff should have a name -- + "level" INTEGER NOT NULL, -- every staff should have a level -- + price INTEGER, -- stored in GP -- + -- could add NOT NULL and store 0s -- + bulk INTEGER, -- could add NOT NULL and store 0s -- + usage TEXT, -- always "held in 1 hand" -- + -- Consider storing in another table -- + activate TEXT, -- always "Cast a spell;" -- + -- Should we store the ";"? -- + -- Consider storing in another table -- + activate_effect TEXT, -- always "You expend a number of charges from the staff to cast a spell from its list." -- + -- Consider storing in another table -- + craft_requirements TEXT, -- "Supply one casting of all listed levels of all listed spells." -- + -- Consider storing in another table -- + source_id INTEGER NOT NULL, + source_pages INTEGER NOT NULL, + "description" TEXT, + FOREIGN KEY (source_id) REFERENCES sources(sources_id) +); + +CREATE TABLE staff_spell ( + staff_spell_id INTEGER PRIMARY KEY NOT NULL, + staff_id INTEGER NOT NULL, + spell_id INTEGER NOT NULL, + "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- + -- Consider renaming this column -- + FOREIGN KEY (staff_id) REFERENCES staff(staff_id), + FOREIGN KEY spell_id REFERENCES spells(spells_id) +); \ No newline at end of file From d07facda3eaa11901b3fb9efb03f295a22ac38b3 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 23 Aug 2019 20:58:45 -0400 Subject: [PATCH 03/41] Insert for Animal Staff --- data/staves.sql | 212 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 212 insertions(+) create mode 100644 data/staves.sql diff --git a/data/staves.sql b/data/staves.sql new file mode 100644 index 0000000..2abe5fe --- /dev/null +++ b/data/staves.sql @@ -0,0 +1,212 @@ +PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned + -- on PER CONNECTION + +INSERT INTO staff ( + staff_id, + "name", + "level", + price, + bulk, + usage, + activate, + activate_effect, + craft_requirements, + source_id, + source_pages, + "description" +) +VALUES +( + 1, + 'Animal Staff', + 4, + 90, + 1, + 'held in one hand', + 'cast a spell', + NULL, + NULL, + "Supply one casting of all listed levels of all listed spells.", + 1, + 592, + "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +), +( + 1, + 'Animal Staff (Greater)', + 8, + 460, + 1, + 'held in one hand', + 'cast a spell', + NULL, + NULL, + "Supply one casting of all listed levels of all listed spells.", + 1, + 592, + "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +), +( + 1, + 'Animal Staff (Major)', + 12, + 900, + 1, + 'held in one hand', + 'cast a spell', + NULL, + NULL, + "Supply one casting of all listed levels of all listed spells.", + 1, + 592, + "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +), + +INSERT INTO staff_spell ( + staff_spell_id, + staff_id, + spell_id, + "level" +) +VALUES +-- Anmial Staff -- +( + 1, + 1, + -- know direction --, + 0 +), +( + 2, + 1, + -- magic fang --, + 1 +), +( + 3, + 1, + -- summon animal --, + 1 +), +-- Animal Staff (Greater) +( + 4, + 2, + -- know direction --, + 0 +), +( + 5, + 2, + -- magic fang --, + 1 +), +( + 6, + 2, + -- summon animal --, + 1 +), +( + 7, + 2, + -- animal messenger --, + 2 +), +( + 8, + 2, + -- speak with animals --, + 2 +), +( + 9, + 2, + -- summon animal --, + 2 +), +( + 10, + 2, + -- animal form --, + 3 +), +( + 11, + 2, + -- summon animal --, + 3 +), +-- Animal Staff (Major) +( + 12, + 3, + -- know direction --, + 0 +), +( + 13, + 3, + -- magic fang --, + 1 +), +( + 14, + 3, + -- summon animal --, + 1 +), +( + 15, + 3, + -- animal messenger --, + 2 +), +( + 16, + 3, + -- speak with animals --, + 2 +), +( + 17, + 3, + -- summon animal --, + 2 +), +( + 18, + 3, + -- animal form --, + 3 +), +( + 19, + 3, + -- summon animal --, + 3 +), +( + 20, + 3, + -- summon animal --, + 4 +), +( + 21, + 3, + -- animal form --, + 5 +), +( + 22, + 3, + -- moon frenzy --, + 5 +) +( + 23, + 3, + -- summon animal --, + 5 +) \ No newline at end of file From ff5b6d59a670796302909fe7ffd9be7c784f9ac3 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Sat, 24 Aug 2019 17:05:27 -0400 Subject: [PATCH 04/41] Remove primary key from staff spell intermediary table --- data/staves.sql | 23 ----------------------- schema/staves.sql | 1 - 2 files changed, 24 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 2abe5fe..c50088a 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -71,141 +71,118 @@ INSERT INTO staff_spell ( VALUES -- Anmial Staff -- ( - 1, 1, -- know direction --, 0 ), ( - 2, 1, -- magic fang --, 1 ), ( - 3, 1, -- summon animal --, 1 ), -- Animal Staff (Greater) ( - 4, 2, -- know direction --, 0 ), ( - 5, 2, -- magic fang --, 1 ), ( - 6, 2, -- summon animal --, 1 ), ( - 7, 2, -- animal messenger --, 2 ), ( - 8, 2, -- speak with animals --, 2 ), ( - 9, 2, -- summon animal --, 2 ), ( - 10, 2, -- animal form --, 3 ), ( - 11, 2, -- summon animal --, 3 ), -- Animal Staff (Major) ( - 12, 3, -- know direction --, 0 ), ( - 13, 3, -- magic fang --, 1 ), ( - 14, 3, -- summon animal --, 1 ), ( - 15, 3, -- animal messenger --, 2 ), ( - 16, 3, -- speak with animals --, 2 ), ( - 17, 3, -- summon animal --, 2 ), ( - 18, 3, -- animal form --, 3 ), ( - 19, 3, -- summon animal --, 3 ), ( - 20, 3, -- summon animal --, 4 ), ( - 21, 3, -- animal form --, 5 ), ( - 22, 3, -- moon frenzy --, 5 ) ( - 23, 3, -- summon animal --, 5 diff --git a/schema/staves.sql b/schema/staves.sql index dc856ad..f13995f 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -23,7 +23,6 @@ CREATE TABLE staff ( ); CREATE TABLE staff_spell ( - staff_spell_id INTEGER PRIMARY KEY NOT NULL, staff_id INTEGER NOT NULL, spell_id INTEGER NOT NULL, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- From 84e907f8359d343b9548b61a090b3b696f355f79 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Mon, 26 Aug 2019 20:40:41 -0400 Subject: [PATCH 05/41] Replace comments with spells_id --- data/staves.sql | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index c50088a..20544c6 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -72,118 +72,118 @@ VALUES -- Anmial Staff -- ( 1, - -- know direction --, + 253, 0 ), ( 1, - -- magic fang --, + 273, 1 ), ( 1, - -- summon animal --, + 442, 1 ), -- Animal Staff (Greater) ( 2, - -- know direction --, + 253, 0 ), ( 2, - -- magic fang --, + 273, 1 ), ( 2, - -- summon animal --, + 442, 1 ), ( 2, - -- animal messenger --, + 19, 2 ), ( 2, - -- speak with animals --, + 415, 2 ), ( 2, - -- summon animal --, + 442, 2 ), ( 2, - -- animal form --, + 18, 3 ), ( 2, - -- summon animal --, + 442, 3 ), -- Animal Staff (Major) ( 3, - -- know direction --, + 253, 0 ), ( 3, - -- magic fang --, + 273, 1 ), ( 3, - -- summon animal --, + 442, 1 ), ( 3, - -- animal messenger --, + 19, 2 ), ( 3, - -- speak with animals --, + 415, 2 ), ( 3, - -- summon animal --, + 442, 2 ), ( 3, - -- animal form --, + 18, 3 ), ( 3, - -- summon animal --, + 442, 3 ), ( 3, - -- summon animal --, + 442, 4 ), ( 3, - -- animal form --, + 18, 5 ), ( 3, - -- moon frenzy --, + 299, 5 ) ( 3, - -- summon animal --, + 442, 5 ) \ No newline at end of file From 5b5d1accc4bc1b130c57d39578add3b9ed742849 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Mon, 26 Aug 2019 20:41:09 -0400 Subject: [PATCH 06/41] Add temporary spells csv used to reference --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9e1c411..a5ce799 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Custom files pf2.db +spells_temp.csv ############################## # Standard python git ignore # From 6d23e8ed2071ed388813ce2089d6f21d369632e3 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 16:26:47 -0400 Subject: [PATCH 07/41] Fix staff_id --- data/staves.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 20544c6..1e59173 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -16,6 +16,7 @@ INSERT INTO staff ( "description" ) VALUES +-- Animal Staff -- ( 1, 'Animal Staff', @@ -32,7 +33,7 @@ VALUES "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- ), ( - 1, + 2, 'Animal Staff (Greater)', 8, 460, @@ -47,7 +48,7 @@ VALUES "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- ), ( - 1, + 3, 'Animal Staff (Major)', 12, 900, @@ -61,7 +62,10 @@ VALUES 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- ), +-- Mentalist's Staff -- +( +) INSERT INTO staff_spell ( staff_spell_id, staff_id, From c15833057d57584aa7edcb04afcf926cfbff429e Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 16:56:50 -0400 Subject: [PATCH 08/41] Moved spell level before page number for readability --- data/staves.sql | 197 ++++++++-------------------------------------- schema/staves.sql | 4 +- 2 files changed, 37 insertions(+), 164 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 1e59173..f9c7ddb 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -17,54 +17,18 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -( - 1, - 'Animal Staff', - 4, - 90, - 1, - 'held in one hand', - 'cast a spell', - NULL, - NULL, - "Supply one casting of all listed levels of all listed spells.", - 1, - 592, - "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- -), -( - 2, - 'Animal Staff (Greater)', - 8, - 460, - 1, - 'held in one hand', - 'cast a spell', - NULL, - NULL, - "Supply one casting of all listed levels of all listed spells.", - 1, - 592, - "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- -), -( - 3, - 'Animal Staff (Major)', - 12, - 900, - 1, - 'held in one hand', - 'cast a spell', - NULL, - NULL, - "Supply one casting of all listed levels of all listed spells.", - 1, - 592, - "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- -), +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +) +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +) +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +) -- Mentalist's Staff -- -( - +,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +) +,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +) +(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) INSERT INTO staff_spell ( staff_spell_id, @@ -74,120 +38,29 @@ INSERT INTO staff_spell ( ) VALUES -- Anmial Staff -- -( - 1, - 253, - 0 -), -( - 1, - 273, - 1 -), -( - 1, - 442, - 1 -), + (1, 0, 253) +,(1, 1, 273) +,(1, 1, 442) -- Animal Staff (Greater) -( - 2, - 253, - 0 -), -( - 2, - 273, - 1 -), -( - 2, - 442, - 1 -), -( - 2, - 19, - 2 -), -( - 2, - 415, - 2 -), -( - 2, - 442, - 2 -), -( - 2, - 18, - 3 -), -( - 2, - 442, - 3 -), +,(2, 0, 253) +,(2, 1, 273) +,(2, 1, 442) +,(2, 2, 19) +,(2, 2, 415) +,(2, 2, 442) +,(2, 3, 18) +,(2, 3, 442) -- Animal Staff (Major) -( - 3, - 253, - 0 -), -( - 3, - 273, - 1 -), -( - 3, - 442, - 1 -), -( - 3, - 19, - 2 -), -( - 3, - 415, - 2 -), -( - 3, - 442, - 2 -), -( - 3, - 18, - 3 -), -( - 3, - 442, - 3 -), -( - 3, - 442, - 4 -), -( - 3, - 18, - 5 -), -( - 3, - 299, - 5 -) -( - 3, - 442, - 5 -) \ No newline at end of file +,(3, 0, 253) +,(3, 1, 273) +,(3, 1, 442) +,(3, 2, 19) +,(3, 2, 415) +,(3, 2, 442) +,(3, 3, 18) +,(3, 3, 442) +,(3, 4, 442) +,(3, 5, 18) +,(3, 5, 299) +,(3, 5, 442) +-- Mentalist's Staff -- diff --git a/schema/staves.sql b/schema/staves.sql index f13995f..2410979 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -24,9 +24,9 @@ CREATE TABLE staff ( CREATE TABLE staff_spell ( staff_id INTEGER NOT NULL, - spell_id INTEGER NOT NULL, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- - -- Consider renaming this column -- + -- Consider renaming this column -- + spell_id INTEGER NOT NULL, FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY spell_id REFERENCES spells(spells_id) ); \ No newline at end of file From 96f236392afcc14003021e77cc3d70a455b9d1ff Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 17:02:32 -0400 Subject: [PATCH 09/41] Mentalist's Staff done --- data/staves.sql | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/data/staves.sql b/data/staves.sql index f9c7ddb..fbd92d6 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -64,3 +64,26 @@ VALUES ,(3, 5, 299) ,(3, 5, 442) -- Mentalist's Staff -- +,(4, 0, 88) +,(4, 1, 291) +,(4, 1, 322) +-- Mentalist's Staff (Greater) -- +,(5, 0, 88) +,(5, 1, 291) +,(5, 1, 322) +,(5, 2, 314) +,(5, 3, 230) +,(5, 3, 322) +-- Mentalist's Staff (Major) -- +,(6, 0, 88) +,(6, 1, 291) +,(6, 1, 322) +,(6, 2, 314) +,(6, 3, 230) +,(6, 3, 322) +,(6, 4, 296) +,(6, 4, 466) +,(6, 5, 322) +,(6, 5, 455) +,(6, 5, 456) + From d0309af75a357610fd1e0156a45c3b35f66e72dd Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 17:14:29 -0400 Subject: [PATCH 10/41] Assuming the broken link is the missing activate and effect for Anilal Staff --- data/staves.sql | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index fbd92d6..0f7be10 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -3,38 +3,39 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned INSERT INTO staff ( staff_id, - "name", - "level", - price, - bulk, - usage, - activate, - activate_effect, - craft_requirements, - source_id, - source_pages, - "description" + ,"name" + ,"level" + ,price + ,bulk + ,usage + ,activate + ,activate_effect + ,craft_requirements + ,source_id + ,source_pages + ,"description" ) VALUES -- Animal Staff -- -(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- https://2e.aonprd.com/Equipment.aspx?ID=349 -- See if they fix <%ACTIONS#197> unsure what it is -- +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -- Mentalist's Staff -- -,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', NULL, NULL, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) +-- Staff of Abjuration -- + INSERT INTO staff_spell ( - staff_spell_id, - staff_id, - spell_id, - "level" + staff_id + ,"level" + ,spell_id ) VALUES -- Anmial Staff -- @@ -86,4 +87,4 @@ VALUES ,(6, 5, 322) ,(6, 5, 455) ,(6, 5, 456) - +-- Staff of Abjuration -- From 54ba41e0e682ad113bbe7d4fe03cbbe4ad30a70d Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 17:22:07 -0400 Subject: [PATCH 11/41] Staff of Abjuration complete --- data/staves.sql | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 0f7be10..b7b4773 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -28,10 +28,15 @@ VALUES ) ,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -- Staff of Abjuration -- - +,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +) +,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +) +,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +) INSERT INTO staff_spell ( staff_id ,"level" @@ -88,3 +93,37 @@ VALUES ,(6, 5, 455) ,(6, 5, 456) -- Staff of Abjuration -- +,(7, 0, 399) +,(7, 1, 11) +,(7, 1, 167) +,(7, 2, 112) +,(7, 2, 148) +,(7, 2, 370) +-- Staff of Abjuration (Greater) +,(8, 0, 399) +,(8, 1, 11) +,(8, 1, 167) +,(8, 2, 112) +,(8, 2, 148) +,(8, 2, 370) +,(8, 3, 11) +,(8, 3, 202) +,(8, 4, 102) +,(8, 4, 112) +,(8, 4, 370) +-- Staff of Abjuration (Major) +,(9, 0, 399) +,(9, 1, 11) +,(9, 1, 167) +,(9, 2, 112) +,(9, 2, 148) +,(9, 2, 370) +,(9, 3, 11) +,(9, 3, 202) +,(9, 4, 102) +,(9, 4, 112) +,(9, 4, 370) +,(9, 5, 32) +,(9, 5, 148) +,(9, 6, 112) +,(9, 6, 368) \ No newline at end of file From 5f7f3e145f87ce18b21ecdc6f25c2474f7e57369 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 17:22:46 -0400 Subject: [PATCH 12/41] Missing parts of comments --- data/staves.sql | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index b7b4773..0be846a 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -37,6 +37,7 @@ VALUES ) ,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." ) +-- Staff of Conjuration -- INSERT INTO staff_spell ( staff_id ,"level" @@ -47,7 +48,7 @@ VALUES (1, 0, 253) ,(1, 1, 273) ,(1, 1, 442) --- Animal Staff (Greater) +-- Animal Staff (Greater) -- ,(2, 0, 253) ,(2, 1, 273) ,(2, 1, 442) @@ -56,7 +57,7 @@ VALUES ,(2, 2, 442) ,(2, 3, 18) ,(2, 3, 442) --- Animal Staff (Major) +-- Animal Staff (Major) -- ,(3, 0, 253) ,(3, 1, 273) ,(3, 1, 442) @@ -99,7 +100,7 @@ VALUES ,(7, 2, 112) ,(7, 2, 148) ,(7, 2, 370) --- Staff of Abjuration (Greater) +-- Staff of Abjuration (Greater) -- ,(8, 0, 399) ,(8, 1, 11) ,(8, 1, 167) @@ -111,7 +112,7 @@ VALUES ,(8, 4, 102) ,(8, 4, 112) ,(8, 4, 370) --- Staff of Abjuration (Major) +-- Staff of Abjuration (Major) -- ,(9, 0, 399) ,(9, 1, 11) ,(9, 1, 167) @@ -126,4 +127,5 @@ VALUES ,(9, 5, 32) ,(9, 5, 148) ,(9, 6, 112) -,(9, 6, 368) \ No newline at end of file +,(9, 6, 368) +-- Staff of Conjuration -- \ No newline at end of file From 9f5d077376ea8d26e97a44f698f594a8ab2ccfd5 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 19:14:11 -0400 Subject: [PATCH 13/41] Staff of Conjuration --- data/staves.sql | 52 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 0be846a..52b52f3 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -38,6 +38,13 @@ VALUES ,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." ) -- Staff of Conjuration -- +,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +) +,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +) +,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +) + INSERT INTO staff_spell ( staff_id ,"level" @@ -128,4 +135,47 @@ VALUES ,(9, 5, 148) ,(9, 6, 112) ,(9, 6, 368) --- Staff of Conjuration -- \ No newline at end of file +-- Staff of Conjuration -- +,(10, 0, 459) +,(10, 1, 444) +,(10, 1, 494) +,(10, 2, 309) +,(10, 2, 323) +,(10, 2, 444) +,(10, 2, 446) +-- Staff of Conjuration (Greater) -- +,(11, 0, 459) +,(11, 1, 444) +,(11, 1, 494) +,(11, 2, 309) +,(11, 2, 323) +,(11, 2, 444) +,(11, 2, 446) +,(11, 3, 432) +,(11, 3, 444) +,(11, 3, 446) +,(11, 4, 79) +,(11, 4, 232) +,(11, 4, 444) +,(11, 4, 446) +-- Staff of Conjuration (Major) -- +,(11, 0, 459) +,(11, 1, 444) +,(11, 1, 494) +,(11, 2, 309) +,(11, 2, 323) +,(11, 2, 444) +,(11, 2, 446) +,(11, 3, 432) +,(11, 3, 444) +,(11, 3, 446) +,(11, 4, 79) +,(11, 4, 232) +,(11, 4, 444) +,(11, 4, 446) +,(11, 5, 37) +,(11, 5, 444) +,(11, 5, 446) +,(11, 6, 323) +,(11, 6, 444) +,(11, 6, 446) \ No newline at end of file From ec7b9465f45c5be966f6ecf1cfa833779558d4b2 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 19:22:14 -0400 Subject: [PATCH 14/41] Staff of Divination --- data/staves.sql | 81 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 20 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 52b52f3..fea441a 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -44,6 +44,14 @@ VALUES ) ,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." ) +-- Staff of Divination -- +,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +) +,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +) +,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +) +-- Staff of Enchantment -- INSERT INTO staff_spell ( staff_id @@ -159,23 +167,56 @@ VALUES ,(11, 4, 444) ,(11, 4, 446) -- Staff of Conjuration (Major) -- -,(11, 0, 459) -,(11, 1, 444) -,(11, 1, 494) -,(11, 2, 309) -,(11, 2, 323) -,(11, 2, 444) -,(11, 2, 446) -,(11, 3, 432) -,(11, 3, 444) -,(11, 3, 446) -,(11, 4, 79) -,(11, 4, 232) -,(11, 4, 444) -,(11, 4, 446) -,(11, 5, 37) -,(11, 5, 444) -,(11, 5, 446) -,(11, 6, 323) -,(11, 6, 444) -,(11, 6, 446) \ No newline at end of file +,(12, 0, 459) +,(12, 1, 444) +,(12, 1, 494) +,(12, 2, 309) +,(12, 2, 323) +,(12, 2, 444) +,(12, 2, 446) +,(12, 3, 432) +,(12, 3, 444) +,(12, 3, 446) +,(12, 4, 79) +,(12, 4, 232) +,(12, 4, 444) +,(12, 4, 446) +,(12, 5, 37) +,(12, 5, 444) +,(12, 5, 446) +,(12, 6, 323) +,(12, 6, 444) +,(12, 6, 446) +-- Staff of Divination -- +,(13, 0, 97) +,(13, 1, 485) +,(13, 2, 70) +,(13, 2, 87) +,(13, 2, 466) +-- Staff of Divination (Greater) -- +,(14, 0, 97) +,(14, 1, 485) +,(14, 2, 70) +,(14, 2, 87) +,(14, 2, 466) +,(14, 3, 60) +,(14, 3, 87) +,(14, 4, 61) +,(14, 4, 70) +,(14, 4, 466) +-- Staff of Divination (Major) -- +,(15, 0, 97) +,(15, 1, 485) +,(15, 2, 70) +,(15, 2, 87) +,(15, 2, 466) +,(15, 3, 60) +,(15, 3, 87) +,(15, 4, 61) +,(15, 4, 70) +,(15, 4, 466) +,(15, 5, 348) +,(15, 5, 390) +,(15, 5, 466) +,(15, 5, 484) +-- Staff of Enchantment -- From a694fff525da53c203f95823a69a45d9c39bff5c Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 19:33:19 -0400 Subject: [PATCH 15/41] Staff of Enchantment --- data/staves.sql | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/data/staves.sql b/data/staves.sql index fea441a..c1f7587 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -52,6 +52,12 @@ VALUES ,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." ) -- Staff of Enchantment -- +,(13, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +) +,(14, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +) +,(15, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +) INSERT INTO staff_spell ( staff_id @@ -220,3 +226,32 @@ VALUES ,(15, 5, 466) ,(15, 5, 484) -- Staff of Enchantment -- +,(16, 0, 88) +,(16, 1, 53) +,(16, 1, 67) +,(16, 2, 221) +,(16, 2, 474) +-- Staff of Enchantment (Greater) -- +,(17, 0, 88) +,(17, 1, 53) +,(17, 1, 67) +,(17, 2, 221) +,(17, 2, 474) +,(17, 3, 313) +,(17, 4, 53) +,(17, 4, 72) +,(17, 4, 441) +-- Staff of Enchantment (Major) -- +,(18, 0, 88) +,(18, 1, 53) +,(18, 1, 67) +,(18, 2, 221) +,(18, 2, 474) +,(18, 3, 313) +,(18, 4, 53) +,(18, 4, 72) +,(18, 4, 441) +,(18, 5, 67) +,(18, 5, 82) +,(18, 6, 123) +,(18, 6, 168) From 87c85fb1cc134d87ec101e817d985534a550348b Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 19:39:12 -0400 Subject: [PATCH 16/41] Staff of Evocation --- data/staves.sql | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index c1f7587..8a8bcff 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -52,13 +52,19 @@ VALUES ,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." ) -- Staff of Enchantment -- -,(13, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." ) -,(14, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." ) -,(15, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +) +-- Staff of Evocation -- +,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." +) +,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." +) +,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." ) - INSERT INTO staff_spell ( staff_id ,"level" @@ -255,3 +261,33 @@ VALUES ,(18, 5, 82) ,(18, 6, 123) ,(18, 6, 168) +-- Staff of Evocation -- +,(19, 0, 357) +,(19, 1, 274) +,(19, 1, 403) +,(19, 2, 5) +,(19, 2, 199) +-- Staff of Evocation (Greater) -- +,(20, 0, 357) +,(20, 1, 274) +,(20, 1, 403) +,(20, 2, 5) +,(20, 2, 199) +,(20, 3, 259) +,(20, 3, 274) +,(20, 4, 178) +,(20, 4, 520) +-- Staff of Evocation (Major) -- +,(21, 0, 357) +,(21, 1, 274) +,(21, 1, 403) +,(21, 2, 5) +,(21, 2, 199) +,(21, 3, 259) +,(21, 3, 274) +,(21, 4, 178) +,(21, 4, 520) +,(21, 5, 71) +,(21, 5, 274) +,(21, 5, 51) +,(21, 5, 510) \ No newline at end of file From ddb2cb1028c794c992ea529b0e2e539ab601e107 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 19:43:28 -0400 Subject: [PATCH 17/41] Staff of Fire --- data/staves.sql | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 8a8bcff..bde4f12 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -65,6 +65,14 @@ VALUES ) ,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." ) +-- Staff of Fire -- +,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +) +,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +) +,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +) + INSERT INTO staff_spell ( staff_id ,"level" @@ -290,4 +298,26 @@ VALUES ,(21, 5, 71) ,(21, 5, 274) ,(21, 5, 51) -,(21, 5, 510) \ No newline at end of file +,(21, 5, 510) +-- Staff of Fire -- +,(22, 0, 342) +,(22, 1, 45) +-- Staff of Fire (Greater) -- +,(22, 0, 342) +,(22, 1, 45) +,(22, 2, 45) +,(22, 2, 181) +,(22, 3, 181) +,(22, 3, 178) +-- Staff of Fire (Major) -- +,(22, 0, 342) +,(22, 1, 45) +,(22, 2, 45) +,(22, 2, 181) +,(22, 3, 181) +,(22, 3, 178) +,(22, 4, 177) +,(22, 4, 178) +,(22, 4, 509) +,(22, 5, 178) +,(22, 5, 509) From b353e641a3b92af51008bb7e31b940bc85c7ee11 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 15:08:58 -0400 Subject: [PATCH 18/41] Add item bonus column and update inserts --- data/staves.sql | 50 ++++++++++++++++++++++++----------------------- schema/staves.sql | 1 + 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index bde4f12..7cd5961 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -8,6 +8,7 @@ INSERT INTO staff ( ,price ,bulk ,usage + ,item_bonus ,activate ,activate_effect ,craft_requirements @@ -17,60 +18,60 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- ) -- Mentalist's Staff -- -,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." +,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." ) -- Staff of Abjuration -- -,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." ) -,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." ) -,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." +,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." ) -- Staff of Conjuration -- -,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." ) -,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." ) -,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." +,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." ) -- Staff of Divination -- -,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." ) -,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." ) -,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." +,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." ) -- Staff of Enchantment -- -,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." ) -,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." ) -,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." +,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." ) -- Staff of Evocation -- -,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." +,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." ) -,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." +,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." ) -,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." +,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." ) -- Staff of Fire -- -,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." ) -,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." ) -,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." +,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." ) INSERT INTO staff_spell ( @@ -321,3 +322,4 @@ VALUES ,(22, 4, 509) ,(22, 5, 178) ,(22, 5, 509) +-- Staff of Healing -- \ No newline at end of file diff --git a/schema/staves.sql b/schema/staves.sql index 2410979..ab18444 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -9,6 +9,7 @@ CREATE TABLE staff ( bulk INTEGER, -- could add NOT NULL and store 0s -- usage TEXT, -- always "held in 1 hand" -- -- Consider storing in another table -- + item_bonus INTEGER, -- If the staff gives an item bonus -- activate TEXT, -- always "Cast a spell;" -- -- Should we store the ";"? -- -- Consider storing in another table -- From a0a3b7c43b2c20da455314b5cc760f9f567c8e13 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 15:14:09 -0400 Subject: [PATCH 19/41] Fix for Staff of Fire ids --- data/staves.sql | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 7cd5961..f95f139 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -304,22 +304,22 @@ VALUES ,(22, 0, 342) ,(22, 1, 45) -- Staff of Fire (Greater) -- -,(22, 0, 342) -,(22, 1, 45) -,(22, 2, 45) -,(22, 2, 181) -,(22, 3, 181) -,(22, 3, 178) +,(23, 0, 342) +,(23, 1, 45) +,(23, 2, 45) +,(23, 2, 181) +,(23, 3, 181) +,(23, 3, 178) -- Staff of Fire (Major) -- -,(22, 0, 342) -,(22, 1, 45) -,(22, 2, 45) -,(22, 2, 181) -,(22, 3, 181) -,(22, 3, 178) -,(22, 4, 177) -,(22, 4, 178) -,(22, 4, 509) -,(22, 5, 178) -,(22, 5, 509) --- Staff of Healing -- \ No newline at end of file +,(24, 0, 342) +,(24, 1, 45) +,(24, 2, 45) +,(24, 2, 181) +,(24, 3, 181) +,(24, 3, 178) +,(24, 4, 177) +,(24, 4, 178) +,(24, 4, 509) +,(24, 5, 178) +,(24, 5, 509) +-- Staff of Healing -- From fe46babb6fdd1ca289293601c934e1fb8ce6306d Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 15:26:01 -0400 Subject: [PATCH 20/41] Staff of Healing --- data/staves.sql | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/data/staves.sql b/data/staves.sql index f95f139..ae43899 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -73,6 +73,15 @@ VALUES ) ,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." ) +-- Staff of Healing -- +,(25, "Staff of Healing", 4, 90, 1, 'held in one hand', 1, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." +) +,(26, "Staff of Healing (Greater)", 8, 470, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." +) +,(27, "Staff of Healing (Major)", 12, 1800, 1, 'held in one hand', 3, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." +) +,(28, "Staff of Healing (True)", 16, 9200, 1, 'held in one hand', 4, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." +); INSERT INTO staff_spell ( staff_id @@ -323,3 +332,45 @@ VALUES ,(24, 5, 178) ,(24, 5, 509) -- Staff of Healing -- +,(25, 0, 430) +,(25, 1, 215) +-- Staff of Healing (Greater) -- +,(26, 0, 430) +,(26, 1, 215) +,(26, 2, 215) +,(26, 2, 372) +,(26, 2, 373) +,(26, 3, 215) +,(26, 3, 365) +-- Staff of Healing (Major) -- +,(27, 0, 430) +,(27, 1, 215) +,(27, 2, 215) +,(27, 2, 372) +,(27, 2, 373) +,(27, 3, 215) +,(27, 3, 365) +,(27, 4, 215) +,(27, 4, 372) +,(27, 5, 44) +,(27, 5, 215) +,(27, 5, 365) +-- Staff of Healing (True) -- +,(28, 0, 430) +,(28, 1, 215) +,(28, 2, 215) +,(28, 2, 372) +,(28, 2, 373) +,(28, 3, 215) +,(28, 3, 365) +,(28, 4, 215) +,(28, 4, 372) +,(28, 5, 44) +,(28, 5, 215) +,(28, 5, 365) +,(28, 6, 215) +,(28, 6, 372) +,(28, 6, 373) +,(28, 7, 215) +,(28, 7, 362) +,(28, 7, 365) \ No newline at end of file From 5ae008ed2e8fb00155013d451494b82b02892acb Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 16:14:21 -0400 Subject: [PATCH 21/41] Change schema add one-to-many table for activations --- data/staves.sql | 131 ++++++++++++++++++++++++++-------------------- schema/staves.sql | 17 ++++-- 2 files changed, 85 insertions(+), 63 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index ae43899..6353072 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -1,6 +1,9 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned -- on PER CONNECTION +------------------ +-- Staff insert -- +------------------ INSERT INTO staff ( staff_id, ,"name" @@ -9,8 +12,6 @@ INSERT INTO staff ( ,bulk ,usage ,item_bonus - ,activate - ,activate_effect ,craft_requirements ,source_id ,source_pages @@ -18,71 +19,85 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- -) -,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- -) -,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals." -- Assuming the bug is a missing activate and effect line since it is not present -- -) +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") -- Mentalist's Staff -- -,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." -) -,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." -) -,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic." -) +,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") +,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") +,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") -- Staff of Abjuration -- -,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." -) -,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." -) -,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic." -) +,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") +,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") +,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") -- Staff of Conjuration -- -,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." -) -,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." -) -,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic." -) +,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") +,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") +,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") -- Staff of Divination -- -,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." -) -,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." -) -,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic." -) +,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") +,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") +,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") -- Staff of Enchantment -- -,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." -) -,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." -) -,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic." -) +,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") +,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") +,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") -- Staff of Evocation -- -,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." -) -,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." -) -,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic." -) +,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") +,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") +,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") -- Staff of Fire -- -,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." -) -,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." -) -,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', NULL, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame." -) +,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") +,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") +,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") -- Staff of Healing -- -,(25, "Staff of Healing", 4, 90, 1, 'held in one hand', 1, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." -) -,(26, "Staff of Healing (Greater)", 8, 470, 1, 'held in one hand', 2, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." -) -,(27, "Staff of Healing (Major)", 12, 1800, 1, 'held in one hand', 3, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." -) -,(28, "Staff of Healing (True)", 16, 9200, 1, 'held in one hand', 4, 'Cast a spell', 'You expend a number of charges from the staff to cast a spell from its list.', "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff." -); +,(25, "Staff of Healing", 4, 90, 1, 'held in one hand', 1, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") +,(26, "Staff of Healing (Greater)", 8, 470, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") +,(27, "Staff of Healing (Major)", 12, 1800, 1, 'held in one hand', 3, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") +,(28, "Staff of Healing (True)", 16, 9200, 1, 'held in one hand', 4, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") +-- Staff of Illumination -- +------------------------------ +-- staff activations insert -- +------------------------------ +INSERT INTO staff_activations ( + staff_id, + "activation", + effect +) +VALUES + (1, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(2, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(3, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(4, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(5, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(6, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(7, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(8, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(9, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(10, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(11, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(12, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(13, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(14, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(15, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(16, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(17, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(18, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(19, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(20, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(21, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(22, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(23, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(24, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(25, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(26, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(27, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(28, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") + +------------------------ +-- staff_spell insert -- +------------------------ INSERT INTO staff_spell ( staff_id ,"level" diff --git a/schema/staves.sql b/schema/staves.sql index ab18444..7f3a460 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -1,5 +1,6 @@ -- -*- mode:sql sql-product:sqlite -*- +-- Parent table -- Table for Staves -- CREATE TABLE staff ( staff_id INTEGER PRIMARY KEY NOT NULL, "name" TEXT NOT NULL UNIQUE, -- every staff should have a name -- @@ -10,11 +11,6 @@ CREATE TABLE staff ( usage TEXT, -- always "held in 1 hand" -- -- Consider storing in another table -- item_bonus INTEGER, -- If the staff gives an item bonus -- - activate TEXT, -- always "Cast a spell;" -- - -- Should we store the ";"? -- - -- Consider storing in another table -- - activate_effect TEXT, -- always "You expend a number of charges from the staff to cast a spell from its list." -- - -- Consider storing in another table -- craft_requirements TEXT, -- "Supply one casting of all listed levels of all listed spells." -- -- Consider storing in another table -- source_id INTEGER NOT NULL, @@ -23,11 +19,22 @@ CREATE TABLE staff ( FOREIGN KEY (source_id) REFERENCES sources(sources_id) ); +-- Child table -- many-to-many -- staff-to-spells -- CREATE TABLE staff_spell ( staff_id INTEGER NOT NULL, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- -- Consider renaming this column -- spell_id INTEGER NOT NULL, + PRIMARY KEY (staff_id, "level", spell_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY spell_id REFERENCES spells(spells_id) +); + +-- Child table -- one-to-many +CREATE TABLE staff_activations ( + staff_id INTEGER NOT NULL, + "activation" TEXT NOT NULL, + effect TEXT NOT NULL, + PRIMARY KEY (staff_id, "activation", effect), + FOREIGN KEY staff_id REFERENCES staff(staff_id) ); \ No newline at end of file From e2c678c67431083b5583a6546004d99d0db44746 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 16:56:46 -0400 Subject: [PATCH 22/41] Staff of Illusion --- data/staves.sql | 58 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 6353072..67f990a 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -56,6 +56,11 @@ VALUES ,(27, "Staff of Healing (Major)", 12, 1800, 1, 'held in one hand', 3, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") ,(28, "Staff of Healing (True)", 16, 9200, 1, 'held in one hand', 4, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") -- Staff of Illumination -- +,(29, "Staff of Illumination", 18, 425, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This simple iron staff is capped with a faceted, clear gem.") +-- Staff of Illusion -- +,(30, "Staff of Illusion", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") +,(31, "Staff of Illusion (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") +,(32, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") ------------------------------ -- staff activations insert -- @@ -66,34 +71,50 @@ INSERT INTO staff_activations ( effect ) VALUES +-- Animal Staff -- (1, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(2, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(3, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Mentalist's Staff -- ,(4, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(5, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(6, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Abjuration -- ,(7, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(8, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(9, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Conjuration -- ,(10, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(11, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(12, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Divination - ,(13, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(14, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(15, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Enchantment -- ,(16, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(17, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(18, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Evocation -- ,(19, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(20, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(21, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Fire -- ,(22, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(23, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(24, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Healing -- ,(25, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(26, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(27, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(28, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Illumination -- +,(29, "Interact", "The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.") +,(29, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Illusion -- +,(30, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(31, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(32, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ------------------------ -- staff_spell insert -- @@ -388,4 +409,39 @@ VALUES ,(28, 6, 373) ,(28, 7, 215) ,(28, 7, 362) -,(28, 7, 365) \ No newline at end of file +,(28, 7, 365) +-- Staff of Illumination -- +,(29, 0, 258) +,(29, 2, 74) +,(29, 3, 74) +,(29, 3, 387) +-- Staff of Illusion -- +,(30, 0, 194) +,(30, 1, 233) +,(30, 1, 234) +,(30, 2, 232) +,(30, 2, 246) +-- Staff of Illusion (Greater) -- +,(31, 0, 194) +,(31, 1, 233) +,(31, 1, 234) +,(31, 2, 232) +,(31, 2, 246) +,(31, 3, 233) +,(31, 3, 146) +,(31, 4, 232) +,(31, 4, 498) +-- Staff of Illusion (Major) -- +,(32, 0, 194) +,(32, 1, 233) +,(32, 1, 234) +,(32, 2, 232) +,(32, 2, 246) +,(32, 3, 233) +,(32, 3, 146) +,(32, 4, 232) +,(32, 4, 498) +,(32, 5, 235) +,(32, 5, 498) +,(32, 6, 210) +,(32, 6, 295) \ No newline at end of file From d19effff6cddaa69f67badb240542d0997b6faea Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 17:06:27 -0400 Subject: [PATCH 23/41] Staff of Necromancy --- data/staves.sql | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 67f990a..bab7dd3 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -61,6 +61,10 @@ VALUES ,(30, "Staff of Illusion", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") ,(31, "Staff of Illusion (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") ,(32, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") +-- Staff of Necromancy -- +,(33, "Staff of Necromancy", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") +,(34, "Staff of Necromancy (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") +,(35, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") ------------------------------ -- staff activations insert -- @@ -115,6 +119,10 @@ VALUES ,(30, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(31, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(32, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Necromancy -- +,(33, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(34, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(35, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ------------------------ -- staff_spell insert -- @@ -444,4 +452,33 @@ VALUES ,(32, 5, 235) ,(32, 5, 498) ,(32, 6, 210) -,(32, 6, 295) \ No newline at end of file +,(32, 6, 295) +-- Staff of Necromancy -- +,(33, 0, 56) +,(33, 1, 207) +,(33, 1, 356) +,(33, 2, 90) +,(33, 2, 193) +-- Staff of Necromancy (Greater) -- +,(34, 0, 56) +,(34, 1, 207) +,(34, 1, 356) +,(34, 2, 90) +,(34, 2, 193) +,(34, 3, 41) +,(34, 3, 497) +,(34, 4, 207) +-- Placeholder for 4th level Enervation which is missing -- +-- Staff of Necromancy (Major) -- +,(35, 0, 56) +,(35, 1, 207) +,(35, 1, 356) +,(35, 2, 90) +,(35, 2, 193) +,(35, 3, 41) +,(35, 3, 497) +,(35, 4, 207) +,(35, 5, 64) +,(35, 5, 193) +,(35, 6, 207) +,(35, 6, 496) \ No newline at end of file From 92efe01e78908cba16f7b8bd3136d063c5417907 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 17:15:36 -0400 Subject: [PATCH 24/41] Staff of Power --- data/staves.sql | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index bab7dd3..5249dc3 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -65,6 +65,8 @@ VALUES ,(33, "Staff of Necromancy", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") ,(34, "Staff of Necromancy (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") ,(35, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") +-- Staff of Power -- +,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ------------------------------ -- staff activations insert -- @@ -123,6 +125,9 @@ VALUES ,(33, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(34, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(35, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Power -- +,(36, "Interact", "This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(36, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ------------------------ -- staff_spell insert -- @@ -481,4 +486,15 @@ VALUES ,(35, 5, 64) ,(35, 5, 193) ,(35, 6, 207) -,(35, 6, 496) \ No newline at end of file +,(35, 6, 496) +-- Staff of Power -- +,(36, 1, 356) +,(36, 2, 74) +,(36, 3, 256) +,(36, 4, 200) +,(36, 4, 313) +,(36, 5, 274) +,(36, 6, 510) +,(36, 7, 71) +,(36, 7, 178) +,(36, 7, 259) \ No newline at end of file From 84de5fabd0eea28a08de4f16898735b4b0b0c035 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 17:34:39 -0400 Subject: [PATCH 25/41] Missing traits --- data/staves.sql | 131 ++++++++++++++++++++++++++++++++++++++++++++++ schema/staves.sql | 11 +++- 2 files changed, 141 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 5249dc3..0ae0e2b 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -129,6 +129,137 @@ VALUES ,(36, "Interact", "This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ,(36, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +------------------------ +-- staff_trait insert -- +------------------------ +INSERT INTO staff_trait ( + staff_id, + trait_id +) +VALUES +-- Animal Staff -- + (1, 207) +,(1, 41) +,(1, 142) +,(2, 207) +,(2, 41) +,(2, 142) +,(3, 207) +,(3, 41) +,(3, 142) +-- Mentalist's Staff -- +,(4, 207) +,(4, 41) +,(4, 142) +,(5, 207) +,(5, 41) +,(5, 142) +,(6, 207) +,(6, 41) +,(6, 142) +-- Staff of Abjuration -- +,(7, 205) +,(7, 41) +,(7, 142) +,(8, 205) +,(8, 41) +,(8, 142) +,(9, 205) +,(9, 41) +,(9, 142) +-- Staff of Conjuration -- +,(10, 206) +,(10, 41) +,(10, 142) +,(11, 206) +,(11, 41) +,(11, 142) +,(12, 206) +,(12, 41) +,(12, 142) +-- Staff of Divination -- +,(13, 205) +,(13, 41) +,(13, 142) +,(14, 205) +,(14, 41) +,(14, 142) +,(15, 205) +,(15, 41) +,(15, 142) +-- Staff of Enchantment -- +,(16, 208) +,(16, 41) +,(16, 142) +,(17, 208) +,(17, 41) +,(17, 142) +,(18, 208) +,(18, 41) +,(18, 142) +-- Staff of Evocation -- +,(19, 209) +,(19, 41) +,(19, 142) +,(20, 209) +,(20, 41) +,(20, 142) +,(21, 209) +,(21, 41) +,(21, 142) +-- Staff of Fire -- +,(22, 209) +,(22, 41) +,(22, 142) +,(23, 209) +,(23, 41) +,(23, 142) +,(24, 209) +,(24, 41) +,(24, 142) +-- Staff of Healing -- +,(25, 211) +,(25, 41) +,(25, 142) +,(26, 211) +,(26, 41) +,(26, 142) +,(27, 211) +,(27, 41) +,(27, 142) +,(28, 211) +,(28, 41) +,(28, 142) +-- Staff of Illumination -- +,(29, 209) +,(29, 41) +,(29, 142) +-- Staff of Illusion -- +,(30, 210) +,(30, 41) +,(30, 142) +,(31, 210) +,(31, 41) +,(31, 142) +,(32, 210) +,(32, 41) +,(32, 142) +-- Staff of Necromancy -- +,(33, 211) +,(33, 41) +,(33, 142) +,(34, 211) +,(34, 41) +,(34, 142) +,(35, 211) +,(35, 41) +,(35, 142) +-- Staff of Power -- +,(36, 209) +,(36, 41) +,(36, 142) +,(36, 202) + ------------------------ -- staff_spell insert -- ------------------------ diff --git a/schema/staves.sql b/schema/staves.sql index 7f3a460..dea06c6 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -30,11 +30,20 @@ CREATE TABLE staff_spell ( FOREIGN KEY spell_id REFERENCES spells(spells_id) ); --- Child table -- one-to-many +-- Child table -- one-to-many -- CREATE TABLE staff_activations ( staff_id INTEGER NOT NULL, "activation" TEXT NOT NULL, effect TEXT NOT NULL, PRIMARY KEY (staff_id, "activation", effect), FOREIGN KEY staff_id REFERENCES staff(staff_id) +); + +-- Child table -- many-to-many -- staff-to-traits -- +CREATE TABLE staff_trait ( + staff_id INTEGER NOT NULL, + trait_id INTEGER NOT NULL, + PRIMARY KEY (staff_id, trait_id), + FOREIGN KEY staff_id REFERENCES staff(staff_id), + FOREIGN KEY (trait_id) REFERENCES traits(trait_id) ); \ No newline at end of file From a968cf3bc35dbb53d5b9b21ae43a5e95da77ce4f Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 18:00:26 -0400 Subject: [PATCH 26/41] Staff of the Magi --- data/staves.sql | 50 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 0ae0e2b..003f137 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -66,7 +66,9 @@ VALUES ,(34, "Staff of Necromancy (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") ,(35, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") -- Staff of Power -- -,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +-- Staff of the Magi -- +,(37, "Staff of Power", 20, 90000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ------------------------------ -- staff activations insert -- @@ -128,6 +130,9 @@ VALUES -- Staff of Power -- ,(36, "Interact", "This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ,(36, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of the Magi -- +,(37, "Interact", "This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(37, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ------------------------ -- staff_trait insert -- @@ -259,6 +264,11 @@ VALUES ,(36, 41) ,(36, 142) ,(36, 202) +-- Staff of the Magi -- +,(37, 209) +,(37, 41) +,(37, 142) +,(37, 202) ------------------------ -- staff_spell insert -- @@ -628,4 +638,40 @@ VALUES ,(36, 6, 510) ,(36, 7, 71) ,(36, 7, 178) -,(36, 7, 259) \ No newline at end of file +,(36, 7, 259) +-- Staff of the Magi -- +,(37, 0, 97) +,(37, 0, 258) +,(37, 0, 271) +,(37, 0, 463) +,(37, 1, 266) +,(37, 2, 153) +,(37, 2, 199) +,(37, 2, 243) +,(37, 2, 252) +,(37, 2, 462) +,(37, 2, 523) +,(37, 3, 112) +,(37, 3, 178) +,(37, 3, 259) +,(37, 4, 243) +,(37, 4, 153) +,(37, 4, 178) +,(37, 4, 509) +,(37, 4, 523) +,(37, 5, 71) +,(37, 5, 316) +,(37, 5, 461) +,(37, 6, 110) +,(37, 6, 112) +,(37, 6, 178) +,(37, 6, 259) +,(37, 7, 71) +,(37, 7, 316) +,(37, 7, 325) +,(37, 7, 509) +,(37, 8, 178) +,(37, 8, 270) +,(37, 9, 112) +,(37, 9, 287) +,(37, 9, 445) \ No newline at end of file From 5d7987874f4e9f01559b0a9d533e2af95729d135 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 18:02:24 -0400 Subject: [PATCH 27/41] Fix wrong name for Staff of the Magi --- data/staves.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 003f137..7e66a8f 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -68,7 +68,7 @@ VALUES -- Staff of Power -- ,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") -- Staff of the Magi -- -,(37, "Staff of Power", 20, 90000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(37, "Staff of the Magi", 20, 90000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ------------------------------ -- staff activations insert -- From c4c972f1c76a7a7d9fe553cb359957e2e209ccf2 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 18:17:01 -0400 Subject: [PATCH 28/41] Staff of Transmutation --- data/staves.sql | 50 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 7e66a8f..6f85e01 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -69,6 +69,10 @@ VALUES ,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") -- Staff of the Magi -- ,(37, "Staff of the Magi", 20, 90000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +-- Staff of Transmutation -- +,(38, "Staff of Transmutation", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") +,(39, "Staff of Transmutation (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") +,(40, "Staff of Transmutation (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") ------------------------------ -- staff activations insert -- @@ -133,6 +137,10 @@ VALUES -- Staff of the Magi -- ,(37, "Interact", "This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") ,(37, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Staff of Transmutation -- +,(38, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(39, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(40, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ------------------------ -- staff_trait insert -- @@ -269,6 +277,16 @@ VALUES ,(37, 41) ,(37, 142) ,(37, 202) +-- Staff of Transmutation +,(38, 212) +,(38, 41) +,(38, 142) +,(39, 212) +,(39, 41) +,(39, 142) +,(40, 212) +,(40, 41) +,(40, 142) ------------------------ -- staff_spell insert -- @@ -674,4 +692,34 @@ VALUES ,(37, 8, 270) ,(37, 9, 112) ,(37, 9, 287) -,(37, 9, 445) \ No newline at end of file +,(37, 9, 445) +-- Staff of Transmutation -- +,(38, 0, 406) +,(38, 1, 182) +,(38, 1, 248) +,(38, 2, 153) +,(38, 2, 226) +-- Staff of Transmutation (Greater) -- +,(39, 0, 406) +,(39, 1, 182) +,(39, 1, 248) +,(39, 2, 153) +,(39, 2, 226) +,(39, 3, 169) +,(39, 3, 248) +,(39, 4, 191) +,(39, 4, 394) +-- Staff of Transmutation (Major) -- +,(40, 0, 406) +,(40, 1, 182) +,(40, 1, 248) +,(40, 2, 153) +,(40, 2, 226) +,(40, 3, 169) +,(40, 3, 248) +,(40, 4, 191) +,(40, 4, 394) +,(40, 5, 226) +,(40, 6, 30) +,(40, 6, 127) +,(40, 6, 183) \ No newline at end of file From 509c57b9de97a5a8c5e6ae8bba148087614d7766 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 18:41:43 -0400 Subject: [PATCH 29/41] Verdant Staff --- data/staves.sql | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 6f85e01..5737600 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -73,6 +73,10 @@ VALUES ,(38, "Staff of Transmutation", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") ,(39, "Staff of Transmutation (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") ,(40, "Staff of Transmutation (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") +-- Verdant Staff -- +,(41, "Verdant Staff", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.") +,(42, "Verdant Staff (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.") +; ------------------------------ -- staff activations insert -- @@ -141,6 +145,10 @@ VALUES ,(38, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(39, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") ,(40, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +-- Verdant Staff -- +,(41, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(42, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +; ------------------------ -- staff_trait insert -- @@ -287,6 +295,14 @@ VALUES ,(40, 212) ,(40, 41) ,(40, 142) +-- Verdant Staff -- +,(41, 207) +,(41, 41) +,(41, 142) +,(42, 207) +,(42, 41) +,(42, 142) +; ------------------------ -- staff_spell insert -- @@ -722,4 +738,24 @@ VALUES ,(40, 5, 226) ,(40, 6, 30) ,(40, 6, 127) -,(40, 6, 183) \ No newline at end of file +,(40, 6, 183) +-- Verdant Staff -- +,(41, 0, 459) +,(41, 1, 402) +,(41, 2, 33) +,(41, 2, 154) +,(41, 2, 395) +,(41, 2, 480) +-- Verdant Staff (Greater) -- +,(42, 0, 459) +,(42, 1, 402) +,(42, 2, 33) +,(42, 2, 154) +,(42, 2, 395) +,(42, 2, 480) +,(42, 3, 513) +,(42, 4, 33) +,(42, 4, 416) +,(42, 5, 326) +,(42, 5, 513) +; \ No newline at end of file From f94af16d394c8b8c815b5f7ad6b749afa304e093 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 20:10:19 -0400 Subject: [PATCH 30/41] Fix bugs clean comments --- schema/staves.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/schema/staves.sql b/schema/staves.sql index dea06c6..7c99e33 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -5,11 +5,11 @@ CREATE TABLE staff ( staff_id INTEGER PRIMARY KEY NOT NULL, "name" TEXT NOT NULL UNIQUE, -- every staff should have a name -- "level" INTEGER NOT NULL, -- every staff should have a level -- - price INTEGER, -- stored in GP -- - -- could add NOT NULL and store 0s -- + price INTEGER, /* stored in GP + could add NOT NULL and store 0s */ bulk INTEGER, -- could add NOT NULL and store 0s -- - usage TEXT, -- always "held in 1 hand" -- - -- Consider storing in another table -- + usage TEXT, /* always "held in 1 hand" + Consider storing in another table */ item_bonus INTEGER, -- If the staff gives an item bonus -- craft_requirements TEXT, -- "Supply one casting of all listed levels of all listed spells." -- -- Consider storing in another table -- @@ -27,7 +27,7 @@ CREATE TABLE staff_spell ( spell_id INTEGER NOT NULL, PRIMARY KEY (staff_id, "level", spell_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), - FOREIGN KEY spell_id REFERENCES spells(spells_id) + FOREIGN KEY (spell_id) REFERENCES spells(spells_id) ); -- Child table -- one-to-many -- @@ -36,7 +36,7 @@ CREATE TABLE staff_activations ( "activation" TEXT NOT NULL, effect TEXT NOT NULL, PRIMARY KEY (staff_id, "activation", effect), - FOREIGN KEY staff_id REFERENCES staff(staff_id) + FOREIGN KEY (staff_id) REFERENCES staff(staff_id) ); -- Child table -- many-to-many -- staff-to-traits -- @@ -44,6 +44,6 @@ CREATE TABLE staff_trait ( staff_id INTEGER NOT NULL, trait_id INTEGER NOT NULL, PRIMARY KEY (staff_id, trait_id), - FOREIGN KEY staff_id REFERENCES staff(staff_id), + FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (trait_id) REFERENCES traits(trait_id) ); \ No newline at end of file From 5deeaee706fe9c1d07d52ecb802b3a6483cff867 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 21:08:56 -0400 Subject: [PATCH 31/41] Remove extra comma --- data/staves.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index 5737600..bb4f947 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -5,7 +5,7 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned -- Staff insert -- ------------------ INSERT INTO staff ( - staff_id, + staff_id ,"name" ,"level" ,price From 4a9eb7dd409eab36ff2ab6b750dd1d18cc0d45da Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 21:22:46 -0400 Subject: [PATCH 32/41] Bug fix old activation remaining in insert --- data/staves.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/staves.sql b/data/staves.sql index bb4f947..6dae062 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -24,7 +24,7 @@ VALUES ,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") -- Mentalist's Staff -- ,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") -,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, 'Cast a spell', "You expend a number of charges from the staff to cast a spell from its list.", "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") +,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") ,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") -- Staff of Abjuration -- ,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") From 27c6bf673d2bf6182283c43d822f8ba0ef3f0de7 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 21:43:34 -0400 Subject: [PATCH 33/41] Replace double with single quotes in insert, fix wrong name in Staff of Necromancy --- data/staves.sql | 174 ++++++++++++++++++++++++------------------------ 1 file changed, 87 insertions(+), 87 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 6dae062..0e71545 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -19,63 +19,63 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") -,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") -,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 592, "This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.") +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -- Mentalist's Staff -- -,(4, "Mentalist's Staff", 4, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") -,(5, "Mentalist's Staff (Greater)", 8, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") -,(6, "Mentalist's Staff (Major)", 12, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 593, "This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.") +,(4, 'Mentalist''s Staff', 4, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,(5, 'Mentalist''s Staff (Greater)', 8, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,(6, 'Mentalist''s Staff (Major)', 12, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -- Staff of Abjuration -- -,(7, "Staff of Abjuration", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") -,(8, "Staff of Abjuration (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") -,(9, "Staff of Abjuration (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.") +,(7, 'Staff of Abjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,(8, 'Staff of Abjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,(9, 'Staff of Abjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -- Staff of Conjuration -- -,(10, "Staff of Conjuration", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") -,(11, "Staff of Conjuration (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") -,(12, "Staff of Conjuration (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.") +,(10, 'Staff of Conjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,(11, 'Staff of Conjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,(12, 'Staff of Conjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -- Staff of Divination -- -,(13, "Staff of Divination", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") -,(14, "Staff of Divination (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") -,(15, "Staff of Divination (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.") +,(13, 'Staff of Divination', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,(14, 'Staff of Divination (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,(15, 'Staff of Divination (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -- Staff of Enchantment -- -,(16, "Staff of Enchantment", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") -,(17, "Staff of Enchantment (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") -,(18, "Staff of Enchantment (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.") +,(16, 'Staff of Enchantment', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,(17, 'Staff of Enchantment (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,(18, 'Staff of Enchantment (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -- Staff of Evocation -- -,(19, "Staff of Evocation", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") -,(20, "Staff of Evocation (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") -,(21, "Staff of Evocation (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.") +,(19, 'Staff of Evocation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,(20, 'Staff of Evocation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,(21, 'Staff of Evocation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -- Staff of Fire -- -,(22, "Staff of Fire", 3, 60, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") -,(23, "Staff of Fire (Greater)", 8, 450, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") -,(24, "Staff of Fire (Major)", 12, 1800, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.") +,(22, 'Staff of Fire', 3, 60, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,(23, 'Staff of Fire (Greater)', 8, 450, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,(24, 'Staff of Fire (Major)', 12, 1800, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -- Staff of Healing -- -,(25, "Staff of Healing", 4, 90, 1, 'held in one hand', 1, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") -,(26, "Staff of Healing (Greater)", 8, 470, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") -,(27, "Staff of Healing (Major)", 12, 1800, 1, 'held in one hand', 3, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") -,(28, "Staff of Healing (True)", 16, 9200, 1, 'held in one hand', 4, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.") +,(25, 'Staff of Healing', 4, 90, 1, 'held in one hand', 1, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(26, 'Staff of Healing (Greater)', 8, 470, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(27, 'Staff of Healing (Major)', 12, 1800, 1, 'held in one hand', 3, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(28, 'Staff of Healing (True)', 16, 9200, 1, 'held in one hand', 4, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -- Staff of Illumination -- -,(29, "Staff of Illumination", 18, 425, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 594, "This simple iron staff is capped with a faceted, clear gem.") +,(29, 'Staff of Illumination', 18, 425, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This simple iron staff is capped with a faceted, clear gem.') -- Staff of Illusion -- -,(30, "Staff of Illusion", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") -,(31, "Staff of Illusion (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") -,(32, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.") +,(30, 'Staff of Illusion', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,(31, 'Staff of Illusion (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,(32, 'Staff of Illusion (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -- Staff of Necromancy -- -,(33, "Staff of Necromancy", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") -,(34, "Staff of Necromancy (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") -,(35, "Staff of Illusion (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.") +,(33, 'Staff of Necromancy', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,(34, 'Staff of Necromancy (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,(35, 'Staff of Necromancy (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -- Staff of Power -- -,(36, "Staff of Power", 16, 10000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(36, 'Staff of Power', 16, 10000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,(37, "Staff of the Magi", 20, 90000, 1, 'held in one hand', NULL, "Supply one casting of all listed levels of all listed spells.", 1, 595, "Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") +,(37, 'Staff of the Magi', 20, 90000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of Transmutation -- -,(38, "Staff of Transmutation", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") -,(39, "Staff of Transmutation (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") -,(40, "Staff of Transmutation (Major)", 14, 4000, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.") +,(38, 'Staff of Transmutation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,(39, 'Staff of Transmutation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,(40, 'Staff of Transmutation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -- Verdant Staff -- -,(41, "Verdant Staff", 6, 230, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.") -,(42, "Verdant Staff (Greater)", 10, 900, 1, 'held in one hand', 2, "Supply one casting of all listed levels of all listed spells.", 1, 595, "This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.") +,(41, 'Verdant Staff', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') +,(42, 'Verdant Staff (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') ; ------------------------------ @@ -88,66 +88,66 @@ INSERT INTO staff_activations ( ) VALUES -- Animal Staff -- - (1, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(2, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(3, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") + (1, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(2, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(3, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Mentalist's Staff -- -,(4, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(5, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(6, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(4, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(5, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(6, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Abjuration -- -,(7, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(8, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(9, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(7, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(8, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(9, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Conjuration -- -,(10, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(11, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(12, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(10, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(11, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(12, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Divination - -,(13, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(14, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(15, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(13, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(14, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(15, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Enchantment -- -,(16, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(17, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(18, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(16, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(17, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(18, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Evocation -- -,(19, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(20, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(21, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(19, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(20, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(21, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Fire -- -,(22, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(23, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(24, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(22, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(23, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(24, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Healing -- -,(25, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(26, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(27, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(28, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(25, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(26, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(27, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(28, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Illumination -- -,(29, "Interact", "The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.") -,(29, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(29, 'Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') +,(29, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Illusion -- -,(30, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(31, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(32, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(30, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(31, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(32, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Necromancy -- -,(33, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(34, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(35, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(33, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(34, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(35, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Power -- -,(36, "Interact", "This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") -,(36, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(36, 'Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(36, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of the Magi -- -,(37, "Interact", "This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.") -,(37, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(37, 'Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(37, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Transmutation -- -,(38, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(39, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(40, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(38, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(39, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(40, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Verdant Staff -- -,(41, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") -,(42, "Cast a Spell", "You expend a number of charges from the staff to cast a spell from its list.") +,(41, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(42, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') ; ------------------------ From 3704539c0002f256dbbce1835e22e060bde98e03 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 21:50:02 -0400 Subject: [PATCH 34/41] Added staves.sql Need to add the staves.sql data after the spells are added otherwise the foreign key constraint will fail --- gendb.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gendb.sh b/gendb.sh index a8e4c81..ad71e68 100755 --- a/gendb.sh +++ b/gendb.sh @@ -26,6 +26,7 @@ sqlite3 pf2.db < schema/gear.sql sqlite3 pf2.db < schema/weapons.sql sqlite3 pf2.db < schema/ammunition.sql sqlite3 pf2.db < schema/monsters.sql +sqlite3 pf2.db < schema/staves.sql echo 'loading data' sqlite3 pf2.db < data/sources.sql sqlite3 pf2.db < data/alignments.sql @@ -55,8 +56,10 @@ sqlite3 pf2.db < data/ammunition.sql sqlite3 pf2.db < data/monsters.sql # Comment out the following three lines if you don't want to generate the spell data. cd data/third_party_json -python3 spells.py +python spells.py cd ../.. +# Staves need to be added after spells due to Foreign Key constraint +sqlite3 pf2.db < data/staves.sql # TODO Eventually we will stop relying on the spells.py script and I will have # the actual .sql files for the spell data; I am waiting to see if the From bb40d9c39c15f2cd60cf6f443a422839ec9f0fc7 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 29 Aug 2019 21:54:56 -0400 Subject: [PATCH 35/41] Added back Python 3 :disappointed: Wonder if the emoji will actually show up? --- gendb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gendb.sh b/gendb.sh index ad71e68..a9aa2d6 100755 --- a/gendb.sh +++ b/gendb.sh @@ -56,7 +56,7 @@ sqlite3 pf2.db < data/ammunition.sql sqlite3 pf2.db < data/monsters.sql # Comment out the following three lines if you don't want to generate the spell data. cd data/third_party_json -python spells.py +python3 spells.py cd ../.. # Staves need to be added after spells due to Foreign Key constraint sqlite3 pf2.db < data/staves.sql From d9c1cd44cee77d34875315038ff74bcf0e7b7892 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 30 Aug 2019 13:15:56 -0400 Subject: [PATCH 36/41] Added joining table and created staff_staffactivations table Also cleaned some redundant NOT NULL and improved comments --- data/staves.sql | 131 ++++++++++++++++++++++++++-------------------- schema/staves.sql | 48 +++++++++-------- 2 files changed, 100 insertions(+), 79 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 0e71545..29d3093 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -81,73 +81,88 @@ VALUES ------------------------------ -- staff activations insert -- ------------------------------ -INSERT INTO staff_activations ( - staff_id, +INSERT INTO staffactivations ( + staffactivations_id, "activation", effect ) VALUES --- Animal Staff -- +-- Most staves -- (1, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(2, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(3, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Mentalist's Staff -- -,(4, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(5, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(6, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Abjuration -- -,(7, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(8, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(9, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Conjuration -- -,(10, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(11, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(12, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Divination - -,(13, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(14, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(15, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Enchantment -- -,(16, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(17, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(18, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Evocation -- -,(19, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(20, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(21, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Fire -- -,(22, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(23, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(24, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Healing -- -,(25, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(26, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(27, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(28, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Illumination -- -,(29, 'Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') -,(29, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Illusion -- -,(30, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(31, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(32, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') --- Staff of Necromancy -- -,(33, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(34, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(35, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') + -- Staff of Illumination -- +,(2, 'Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') -- Staff of Power -- -,(36, 'Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -,(36, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(3, 'Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,(37, 'Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -,(37, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(4, 'Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +; + +INSERT INTO staff_staffactivations ( + staff_id, + staffactivations_id +) +VALUES +-- Animal Staff -- + (1, 1) +,(2, 1) +,(3, 1) +-- Mentalist's Staff -- +,(4, 1) +,(5, 1) +,(6, 1) +-- Staff of Abjuration -- +,(7, 1) +,(8, 1) +,(9, 1) +-- Staff of Conjuration -- +,(10, 1) +,(11, 1) +,(12, 1) +-- Staff of Divination - +,(13, 1) +,(14, 1) +,(15, 1) +-- Staff of Enchantment -- +,(16, 1) +,(17, 1) +,(18, 1) +-- Staff of Evocation -- +,(19, 1) +,(20, 1) +,(21, 1) +-- Staff of Fire -- +,(22, 1) +,(23, 1) +,(24, 1) +-- Staff of Healing -- +,(25, 1) +,(26, 1) +,(27, 1) +,(28, 1) +-- Staff of Illumination -- +,(29, 2) +,(29, 1) +-- Staff of Illusion -- +,(30, 1) +,(31, 1) +,(32, 1) +-- Staff of Necromancy -- +,(33, 1) +,(34, 1) +,(35, 1) +-- Staff of Power -- +,(36, 3) +,(36, 1) +-- Staff of the Magi -- +,(37, 4) +,(37, 1) -- Staff of Transmutation -- -,(38, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(39, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(40, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(38, 1) +,(39, 1) +,(40, 1) -- Verdant Staff -- -,(41, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -,(42, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') +,(41, 1) +,(42, 1) ; ------------------------ diff --git a/schema/staves.sql b/schema/staves.sql index 7c99e33..3d82eb1 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -2,7 +2,7 @@ -- Parent table -- Table for Staves -- CREATE TABLE staff ( - staff_id INTEGER PRIMARY KEY NOT NULL, + staff_id INTEGER PRIMARY KEY, "name" TEXT NOT NULL UNIQUE, -- every staff should have a name -- "level" INTEGER NOT NULL, -- every staff should have a level -- price INTEGER, /* stored in GP @@ -19,31 +19,37 @@ CREATE TABLE staff ( FOREIGN KEY (source_id) REFERENCES sources(sources_id) ); --- Child table -- many-to-many -- staff-to-spells -- -CREATE TABLE staff_spell ( - staff_id INTEGER NOT NULL, - "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- - -- Consider renaming this column -- - spell_id INTEGER NOT NULL, - PRIMARY KEY (staff_id, "level", spell_id), - FOREIGN KEY (staff_id) REFERENCES staff(staff_id), - FOREIGN KEY (spell_id) REFERENCES spells(spells_id) -); - --- Child table -- one-to-many -- -CREATE TABLE staff_activations ( - staff_id INTEGER NOT NULL, +-- Child table -- many-to-many -- +CREATE TABLE staffactivations ( + staffactivations_id INTEGER PRIMARY KEY, "activation" TEXT NOT NULL, - effect TEXT NOT NULL, - PRIMARY KEY (staff_id, "activation", effect), - FOREIGN KEY (staff_id) REFERENCES staff(staff_id) + effect TEXT NOT NULL ); --- Child table -- many-to-many -- staff-to-traits -- +-- Joining table -- +CREATE TABLE staff_staffactivations ( + staff_id INTEGER, + staffactivations_id INTEGER, + PRIMARY KEY (staff_id, staffactivations_id), + FOREIGN KEY (staff_id) REFERENCES staff(staff_id), + FOREIGN KEY (staffactivations_id) REFERENCES staffactivations(staffactivations_id) +); + +-- Joining table -- CREATE TABLE staff_trait ( - staff_id INTEGER NOT NULL, - trait_id INTEGER NOT NULL, + staff_id INTEGER, + trait_id INTEGER, PRIMARY KEY (staff_id, trait_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (trait_id) REFERENCES traits(trait_id) +); + +-- Joining table -- +CREATE TABLE staff_spell ( + staff_id INTEGER, + "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- + spell_id INTEGER, + PRIMARY KEY (staff_id, "level", spell_id), + FOREIGN KEY (staff_id) REFERENCES staff(staff_id), + FOREIGN KEY (spell_id) REFERENCES spells(spells_id) ); \ No newline at end of file From 4aaf11791ff1aa47e57a16cf21b90cef0f00723b Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Sat, 31 Aug 2019 13:47:24 -0400 Subject: [PATCH 37/41] Switch the not-a-csv to txt --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a5ce799..d1398aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # Custom files pf2.db -spells_temp.csv +spells_temp.txt ############################## # Standard python git ignore # From 3ab787ec117466fcce2688f9492df72a680260a4 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Sat, 31 Aug 2019 14:51:02 -0400 Subject: [PATCH 38/41] Removed insert for id, removed composite PK created id INTEGER PRIMARY KEY --- data/staves.sql | 98 +++++++++++++++++++++++------------------------ schema/staves.sql | 9 +++-- 2 files changed, 55 insertions(+), 52 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 29d3093..f9ed66c 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -5,7 +5,6 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned -- Staff insert -- ------------------ INSERT INTO staff ( - staff_id ,"name" ,"level" ,price @@ -19,82 +18,81 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +('Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,('Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,('Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -- Mentalist's Staff -- -,(4, 'Mentalist''s Staff', 4, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -,(5, 'Mentalist''s Staff (Greater)', 8, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -,(6, 'Mentalist''s Staff (Major)', 12, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,('Mentalist''s Staff', 4, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,('Mentalist''s Staff (Greater)', 8, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,('Mentalist''s Staff (Major)', 12, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -- Staff of Abjuration -- -,(7, 'Staff of Abjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -,(8, 'Staff of Abjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -,(9, 'Staff of Abjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,('Staff of Abjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,('Staff of Abjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,('Staff of Abjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -- Staff of Conjuration -- -,(10, 'Staff of Conjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -,(11, 'Staff of Conjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -,(12, 'Staff of Conjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,('Staff of Conjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,('Staff of Conjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,('Staff of Conjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -- Staff of Divination -- -,(13, 'Staff of Divination', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -,(14, 'Staff of Divination (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -,(15, 'Staff of Divination (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,('Staff of Divination', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,('Staff of Divination (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,('Staff of Divination (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -- Staff of Enchantment -- -,(16, 'Staff of Enchantment', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -,(17, 'Staff of Enchantment (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -,(18, 'Staff of Enchantment (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,('Staff of Enchantment', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,('Staff of Enchantment (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,('Staff of Enchantment (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -- Staff of Evocation -- -,(19, 'Staff of Evocation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -,(20, 'Staff of Evocation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -,(21, 'Staff of Evocation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,('Staff of Evocation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,('Staff of Evocation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,('Staff of Evocation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -- Staff of Fire -- -,(22, 'Staff of Fire', 3, 60, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -,(23, 'Staff of Fire (Greater)', 8, 450, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -,(24, 'Staff of Fire (Major)', 12, 1800, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,('Staff of Fire', 3, 60, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,('Staff of Fire (Greater)', 8, 450, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,('Staff of Fire (Major)', 12, 1800, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -- Staff of Healing -- -,(25, 'Staff of Healing', 4, 90, 1, 'held in one hand', 1, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,(26, 'Staff of Healing (Greater)', 8, 470, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,(27, 'Staff of Healing (Major)', 12, 1800, 1, 'held in one hand', 3, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,(28, 'Staff of Healing (True)', 16, 9200, 1, 'held in one hand', 4, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,('Staff of Healing', 4, 90, 1, 'held in one hand', 1, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,('Staff of Healing (Greater)', 8, 470, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,('Staff of Healing (Major)', 12, 1800, 1, 'held in one hand', 3, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,('Staff of Healing (True)', 16, 9200, 1, 'held in one hand', 4, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -- Staff of Illumination -- -,(29, 'Staff of Illumination', 18, 425, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This simple iron staff is capped with a faceted, clear gem.') +,('Staff of Illumination', 18, 425, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This simple iron staff is capped with a faceted, clear gem.') -- Staff of Illusion -- -,(30, 'Staff of Illusion', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -,(31, 'Staff of Illusion (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -,(32, 'Staff of Illusion (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,('Staff of Illusion', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,('Staff of Illusion (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,('Staff of Illusion (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -- Staff of Necromancy -- -,(33, 'Staff of Necromancy', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -,(34, 'Staff of Necromancy (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -,(35, 'Staff of Necromancy (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,('Staff of Necromancy', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,('Staff of Necromancy (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,('Staff of Necromancy (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -- Staff of Power -- -,(36, 'Staff of Power', 16, 10000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,('Staff of Power', 16, 10000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,(37, 'Staff of the Magi', 20, 90000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,('Staff of the Magi', 20, 90000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of Transmutation -- -,(38, 'Staff of Transmutation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -,(39, 'Staff of Transmutation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -,(40, 'Staff of Transmutation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,('Staff of Transmutation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,('Staff of Transmutation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,('Staff of Transmutation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -- Verdant Staff -- -,(41, 'Verdant Staff', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') -,(42, 'Verdant Staff (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') +,('Verdant Staff', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') +,('Verdant Staff (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') ; ------------------------------ -- staff activations insert -- ------------------------------ INSERT INTO staffactivations ( - staffactivations_id, "activation", effect ) VALUES -- Most staves -- - (1, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') + ('Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Illumination -- -,(2, 'Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') +,('Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') -- Staff of Power -- -,(3, 'Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,('Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,(4, 'Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,('Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') ; INSERT INTO staff_staffactivations ( @@ -773,4 +771,6 @@ VALUES ,(42, 4, 416) ,(42, 5, 326) ,(42, 5, 513) -; \ No newline at end of file +; + +-- TODO INSTERT INTO staff_sourceentries -- \ No newline at end of file diff --git a/schema/staves.sql b/schema/staves.sql index 3d82eb1..2a6599a 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -28,28 +28,31 @@ CREATE TABLE staffactivations ( -- Joining table -- CREATE TABLE staff_staffactivations ( + id INTEGER PRIMARY KEY, staff_id INTEGER, staffactivations_id INTEGER, - PRIMARY KEY (staff_id, staffactivations_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (staffactivations_id) REFERENCES staffactivations(staffactivations_id) ); -- Joining table -- CREATE TABLE staff_trait ( + id INTEGER PRIMARY KEY, staff_id INTEGER, trait_id INTEGER, - PRIMARY KEY (staff_id, trait_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (trait_id) REFERENCES traits(trait_id) ); -- Joining table -- CREATE TABLE staff_spell ( + id INTEGER PRIMARY KEY, staff_id INTEGER, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- spell_id INTEGER, PRIMARY KEY (staff_id, "level", spell_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (spell_id) REFERENCES spells(spells_id) -); \ No newline at end of file +); + +-- TODO CREATE TABLE staff_sourceentries -- joining table -- \ No newline at end of file From 068c2fb2b8356f410478eb9f11c3a36598a3af31 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Tue, 3 Sep 2019 12:23:31 -0400 Subject: [PATCH 39/41] Revert "Removed insert for id, removed composite PK created id INTEGER PRIMARY KEY" This reverts commit 3ab787ec117466fcce2688f9492df72a680260a4. --- data/staves.sql | 98 +++++++++++++++++++++++------------------------ schema/staves.sql | 9 ++--- 2 files changed, 52 insertions(+), 55 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index f9ed66c..29d3093 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -5,6 +5,7 @@ PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned -- Staff insert -- ------------------ INSERT INTO staff ( + staff_id ,"name" ,"level" ,price @@ -18,81 +19,82 @@ INSERT INTO staff ( ) VALUES -- Animal Staff -- -('Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -,('Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -,('Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +(1, 'Animal Staff', 4, 90, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,(2, 'Animal Staff (Greater)', 8, 460, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') +,(3, 'Animal Staff (Major)', 12, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 592, 'This staff is topped with carved animal and monster heads. While wielding the staff, you gain a +2 circumstance bonus to Nature checks to identify animals.') -- Mentalist's Staff -- -,('Mentalist''s Staff', 4, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -,('Mentalist''s Staff (Greater)', 8, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -,('Mentalist''s Staff (Major)', 12, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,(4, 'Mentalist''s Staff', 4, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,(5, 'Mentalist''s Staff (Greater)', 8, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') +,(6, 'Mentalist''s Staff (Major)', 12, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 593, 'This polished wooden staff bears a swirling motif reminiscent of the folds of a brain. While wielding the staff, you gain a +2 circumstance bonus to checks to identify mental magic.') -- Staff of Abjuration -- -,('Staff of Abjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -,('Staff of Abjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -,('Staff of Abjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,(7, 'Staff of Abjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,(8, 'Staff of Abjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') +,(9, 'Staff of Abjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This intricately carved wooden staff is warm to the touch and thrums with inner energy. While wielding the staff, you gain a +2 circumstance bonus to checks to identify abjuration magic.') -- Staff of Conjuration -- -,('Staff of Conjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -,('Staff of Conjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -,('Staff of Conjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,(10, 'Staff of Conjuration', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,(11, 'Staff of Conjuration (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') +,(12, 'Staff of Conjuration (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This ash staff is decorated with animals; wielding it, you gain a +2 circumstance bonus to checks to identify conjuration magic.') -- Staff of Divination -- -,('Staff of Divination', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -,('Staff of Divination (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -,('Staff of Divination (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,(13, 'Staff of Divination', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,(14, 'Staff of Divination (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') +,(15, 'Staff of Divination (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'Semiprecious gemstones emerge, seemingly at random, from the surface of this gnarled wooden staff. While wielding it, you gain a +2 circumstance bonus to checks to identify divination magic.') -- Staff of Enchantment -- -,('Staff of Enchantment', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -,('Staff of Enchantment (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -,('Staff of Enchantment (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,(16, 'Staff of Enchantment', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,(17, 'Staff of Enchantment (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') +,(18, 'Staff of Enchantment (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'A mesmerizing gemstone caps the head of this handsomely crafted wooden staff. While wielding the staff, you gain a +2 circumstance bonus to checks to identify enchantment magic.') -- Staff of Evocation -- -,('Staff of Evocation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -,('Staff of Evocation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -,('Staff of Evocation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,(19, 'Staff of Evocation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,(20, 'Staff of Evocation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') +,(21, 'Staff of Evocation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This staff is tapered at the base and carved into a gem-studded twist at the top. While wielding the staff, you gain a +2 circumstance bonus to checks to identify evocation magic.') -- Staff of Fire -- -,('Staff of Fire', 3, 60, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -,('Staff of Fire (Greater)', 8, 450, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -,('Staff of Fire (Major)', 12, 1800, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,(22, 'Staff of Fire', 3, 60, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,(23, 'Staff of Fire (Greater)', 8, 450, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') +,(24, 'Staff of Fire (Major)', 12, 1800, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff resembles a blackened and burned length of ashen wood. It smells faintly of soot and glows as if lit by embers. You can use an Interact action to touch the tip of this staff to a torch, tinder, or a flammable substance to ignite a flame.') -- Staff of Healing -- -,('Staff of Healing', 4, 90, 1, 'held in one hand', 1, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,('Staff of Healing (Greater)', 8, 470, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,('Staff of Healing (Major)', 12, 1800, 1, 'held in one hand', 3, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -,('Staff of Healing (True)', 16, 9200, 1, 'held in one hand', 4, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(25, 'Staff of Healing', 4, 90, 1, 'held in one hand', 1, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(26, 'Staff of Healing (Greater)', 8, 470, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(27, 'Staff of Healing (Major)', 12, 1800, 1, 'held in one hand', 3, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') +,(28, 'Staff of Healing (True)', 16, 9200, 1, 'held in one hand', 4, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Made of smooth, white wood, this staff is capped at each end with a golden cross adorned with a multitude of ruby cabochons. A staff of healing grants an item bonus to the Hit Points you restore anytime you cast the heal spell using your own spell slots or using charges from the staff.') -- Staff of Illumination -- -,('Staff of Illumination', 18, 425, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This simple iron staff is capped with a faceted, clear gem.') +,(29, 'Staff of Illumination', 18, 425, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 594, 'This simple iron staff is capped with a faceted, clear gem.') -- Staff of Illusion -- -,('Staff of Illusion', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -,('Staff of Illusion (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -,('Staff of Illusion (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,(30, 'Staff of Illusion', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,(31, 'Staff of Illusion (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') +,(32, 'Staff of Illusion (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This ornately designed metal staff shines with precious inlays of gold. When you Cast a Spell from the staff, the illusory image of something you desire flashes across its surface. While wielding the staff, you gain a +2 circumstance bonus to checks to identify illusion magic.') -- Staff of Necromancy -- -,('Staff of Necromancy', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -,('Staff of Necromancy (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -,('Staff of Necromancy (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,(33, 'Staff of Necromancy', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,(34, 'Staff of Necromancy (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') +,(35, 'Staff of Necromancy (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.') -- Staff of Power -- -,('Staff of Power', 16, 10000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(36, 'Staff of Power', 16, 10000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This staff of magically hardened wood is topped with a silver sculpture depicting magical runic symbols. When used as a weapon, a staff of power is a +2 greater striking staff.\n\nVoluntarily destroying a staff of power unleashes an incredible blast of energy. When wielding the staff, you can Interact to break it. This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,('Staff of the Magi', 20, 90000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(37, 'Staff of the Magi', 20, 90000, 1, 'held in one hand', NULL, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'Sigils and runes of ancient and powerful magic cover the iron cladding on this long wooden staff. A staff of the magi is a +3 major striking staff, and when wielding it you gain a +1 circumstance bonus to saving throws against spells.\n\nVoluntarily destroying a staff of the magi unleashes a truly devastating wave of arcane energy that surges out, dissipating with distance. When wielding the staff, you can break it using an Interact action. This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of Transmutation -- -,('Staff of Transmutation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -,('Staff of Transmutation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -,('Staff of Transmutation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,(38, 'Staff of Transmutation', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,(39, 'Staff of Transmutation (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') +,(40, 'Staff of Transmutation (Major)', 14, 4000, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'A glass orb atop this metal staff contains fine, undulating sand. While wielding the staff, you gain a +2 circumstance bonus to checks to identify transmutation magic.') -- Verdant Staff -- -,('Verdant Staff', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') -,('Verdant Staff (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') +,(41, 'Verdant Staff', 6, 230, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') +,(42, 'Verdant Staff (Greater)', 10, 900, 1, 'held in one hand', 2, 'Supply one casting of all listed levels of all listed spells.', 1, 595, 'This oak branch grows leaves in spring that change color in autumn and shed in winter. While wielding it, you gain a +2 circumstance bonus to Nature checks to identify plants.') ; ------------------------------ -- staff activations insert -- ------------------------------ INSERT INTO staffactivations ( + staffactivations_id, "activation", effect ) VALUES -- Most staves -- - ('Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') + (1, 'Cast a Spell', 'You expend a number of charges from the staff to cast a spell from its list.') -- Staff of Illumination -- -,('Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') +,(2, 'Interact', 'The gem at the top of the staff glows as a torch, shedding bright light in a 20-foot radius (and dim light to the next 20 feet) for 10 minutes.') -- Staff of Power -- -,('Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(3, 'Interact', 'This releases a 30-foot-burst magical explosion centered on the staff. This deals 2d8 force damage per charge remaining in the staff (DC 40 basic Reflex save). You automatically critically fail your save. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') -- Staff of the Magi -- -,('Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') +,(4, 'Interact', 'This releases a 30-foot‑burst magical explosion centered on the staff. This deals 2d10 force damage per charge remaining in the staff (DC 40 basic Reflex save), You automatically critically fail your save. The explosion continues to echo beyond the initial blast zone, dealing half as much damage to creatures beyond 30 feet but within a 60-foot burst. A creature reduced to 0 Hit Points by this damage dies instantly; this is a death effect.') ; INSERT INTO staff_staffactivations ( @@ -771,6 +773,4 @@ VALUES ,(42, 4, 416) ,(42, 5, 326) ,(42, 5, 513) -; - --- TODO INSTERT INTO staff_sourceentries -- \ No newline at end of file +; \ No newline at end of file diff --git a/schema/staves.sql b/schema/staves.sql index 2a6599a..3d82eb1 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -28,31 +28,28 @@ CREATE TABLE staffactivations ( -- Joining table -- CREATE TABLE staff_staffactivations ( - id INTEGER PRIMARY KEY, staff_id INTEGER, staffactivations_id INTEGER, + PRIMARY KEY (staff_id, staffactivations_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (staffactivations_id) REFERENCES staffactivations(staffactivations_id) ); -- Joining table -- CREATE TABLE staff_trait ( - id INTEGER PRIMARY KEY, staff_id INTEGER, trait_id INTEGER, + PRIMARY KEY (staff_id, trait_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (trait_id) REFERENCES traits(trait_id) ); -- Joining table -- CREATE TABLE staff_spell ( - id INTEGER PRIMARY KEY, staff_id INTEGER, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- spell_id INTEGER, PRIMARY KEY (staff_id, "level", spell_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (spell_id) REFERENCES spells(spells_id) -); - --- TODO CREATE TABLE staff_sourceentries -- joining table -- \ No newline at end of file +); \ No newline at end of file From ffba67c155494952d020edce2f9359f2a87c3ca6 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Tue, 3 Sep 2019 13:19:23 -0400 Subject: [PATCH 40/41] Add id PK columns for all tables, hard code all ids --- data/staves.sql | 1159 +++++++++++++++++++++++---------------------- schema/staves.sql | 25 +- 2 files changed, 596 insertions(+), 588 deletions(-) diff --git a/data/staves.sql b/data/staves.sql index 29d3093..a6c0ecc 100644 --- a/data/staves.sql +++ b/data/staves.sql @@ -98,679 +98,682 @@ VALUES ; INSERT INTO staff_staffactivations ( + id, staff_id, staffactivations_id ) VALUES -- Animal Staff -- - (1, 1) -,(2, 1) -,(3, 1) + (1, 1, 1) +,(2, 2, 1) +,(3, 3, 1) -- Mentalist's Staff -- -,(4, 1) -,(5, 1) -,(6, 1) +,(4, 4, 1) +,(5, 5, 1) +,(6, 6, 1) -- Staff of Abjuration -- -,(7, 1) -,(8, 1) -,(9, 1) +,(7, 7, 1) +,(8, 8, 1) +,(9, 9, 1) -- Staff of Conjuration -- -,(10, 1) -,(11, 1) -,(12, 1) +,(10, 10, 1) +,(11, 11, 1) +,(12, 12, 1) -- Staff of Divination - -,(13, 1) -,(14, 1) -,(15, 1) +,(13, 13, 1) +,(14, 14, 1) +,(15, 15, 1) -- Staff of Enchantment -- -,(16, 1) -,(17, 1) -,(18, 1) +,(16, 16, 1) +,(17, 17, 1) +,(18, 18, 1) -- Staff of Evocation -- -,(19, 1) -,(20, 1) -,(21, 1) +,(19, 19, 1) +,(20, 20, 1) +,(21, 21, 1) -- Staff of Fire -- -,(22, 1) -,(23, 1) -,(24, 1) +,(22, 22, 1) +,(23, 23, 1) +,(24, 24, 1) -- Staff of Healing -- -,(25, 1) -,(26, 1) -,(27, 1) -,(28, 1) +,(25, 25, 1) +,(26, 26, 1) +,(27, 27, 1) +,(28, 28, 1) -- Staff of Illumination -- -,(29, 2) -,(29, 1) +,(29, 29, 2) +,(30, 29, 1) -- Staff of Illusion -- -,(30, 1) -,(31, 1) -,(32, 1) +,(31, 30, 1) +,(32, 31, 1) +,(33, 32, 1) -- Staff of Necromancy -- -,(33, 1) -,(34, 1) -,(35, 1) +,(34, 33, 1) +,(35, 34, 1) +,(36, 35, 1) -- Staff of Power -- -,(36, 3) -,(36, 1) +,(37, 36, 3) +,(38, 36, 1) -- Staff of the Magi -- -,(37, 4) -,(37, 1) +,(39, 37, 4) +,(40, 37, 1) -- Staff of Transmutation -- -,(38, 1) -,(39, 1) -,(40, 1) +,(41, 38, 1) +,(42, 39, 1) +,(43, 40, 1) -- Verdant Staff -- -,(41, 1) -,(42, 1) +,(44, 41, 1) +,(45, 42, 1) ; ------------------------ -- staff_trait insert -- ------------------------ INSERT INTO staff_trait ( + id, staff_id, trait_id ) VALUES -- Animal Staff -- - (1, 207) -,(1, 41) -,(1, 142) -,(2, 207) -,(2, 41) -,(2, 142) -,(3, 207) -,(3, 41) -,(3, 142) + (1, 1, 207) +,(2, 1, 41) +,(3, 1, 142) +,(4, 2, 207) +,(5, 2, 41) +,(6, 2, 142) +,(7, 3, 207) +,(8, 3, 41) +,(9, 3, 142) -- Mentalist's Staff -- -,(4, 207) -,(4, 41) -,(4, 142) -,(5, 207) -,(5, 41) -,(5, 142) -,(6, 207) -,(6, 41) -,(6, 142) +,(10, 4, 207) +,(11, 4, 41) +,(12, 4, 142) +,(13, 5, 207) +,(14, 5, 41) +,(15, 5, 142) +,(16, 6, 207) +,(17, 6, 41) +,(18, 6, 142) -- Staff of Abjuration -- -,(7, 205) -,(7, 41) -,(7, 142) -,(8, 205) -,(8, 41) -,(8, 142) -,(9, 205) -,(9, 41) -,(9, 142) +,(19, 7, 205) +,(20, 7, 41) +,(21, 7, 142) +,(22, 8, 205) +,(23, 8, 41) +,(24, 8, 142) +,(25, 9, 205) +,(26, 9, 41) +,(27, 9, 142) -- Staff of Conjuration -- -,(10, 206) -,(10, 41) -,(10, 142) -,(11, 206) -,(11, 41) -,(11, 142) -,(12, 206) -,(12, 41) -,(12, 142) +,(28, 10, 206) +,(29, 10, 41) +,(30, 10, 142) +,(31, 11, 206) +,(32, 11, 41) +,(33, 11, 142) +,(34, 12, 206) +,(35, 12, 41) +,(36, 12, 142) -- Staff of Divination -- -,(13, 205) -,(13, 41) -,(13, 142) -,(14, 205) -,(14, 41) -,(14, 142) -,(15, 205) -,(15, 41) -,(15, 142) +,(37, 13, 205) +,(38, 13, 41) +,(39, 13, 142) +,(40, 14, 205) +,(41, 14, 41) +,(42, 14, 142) +,(43, 15, 205) +,(44, 15, 41) +,(45, 15, 142) -- Staff of Enchantment -- -,(16, 208) -,(16, 41) -,(16, 142) -,(17, 208) -,(17, 41) -,(17, 142) -,(18, 208) -,(18, 41) -,(18, 142) +,(46, 16, 208) +,(47, 16, 41) +,(48, 16, 142) +,(49, 17, 208) +,(50, 17, 41) +,(51, 17, 142) +,(52, 18, 208) +,(53, 18, 41) +,(54, 18, 142) -- Staff of Evocation -- -,(19, 209) -,(19, 41) -,(19, 142) -,(20, 209) -,(20, 41) -,(20, 142) -,(21, 209) -,(21, 41) -,(21, 142) +,(55, 19, 209) +,(56, 19, 41) +,(57, 19, 142) +,(58, 20, 209) +,(59, 20, 41) +,(60, 20, 142) +,(61, 21, 209) +,(62, 21, 41) +,(63, 21, 142) -- Staff of Fire -- -,(22, 209) -,(22, 41) -,(22, 142) -,(23, 209) -,(23, 41) -,(23, 142) -,(24, 209) -,(24, 41) -,(24, 142) +,(64, 22, 209) +,(65, 22, 41) +,(66, 22, 142) +,(67, 23, 209) +,(68, 23, 41) +,(69, 23, 142) +,(70, 24, 209) +,(71, 24, 41) +,(72, 24, 142) -- Staff of Healing -- -,(25, 211) -,(25, 41) -,(25, 142) -,(26, 211) -,(26, 41) -,(26, 142) -,(27, 211) -,(27, 41) -,(27, 142) -,(28, 211) -,(28, 41) -,(28, 142) +,(73, 25, 211) +,(74, 25, 41) +,(75, 25, 142) +,(76, 26, 211) +,(77, 26, 41) +,(78, 26, 142) +,(79, 27, 211) +,(80, 27, 41) +,(81, 27, 142) +,(82, 28, 211) +,(83, 28, 41) +,(84, 28, 142) -- Staff of Illumination -- -,(29, 209) -,(29, 41) -,(29, 142) +,(85, 29, 209) +,(86, 29, 41) +,(87, 29, 142) -- Staff of Illusion -- -,(30, 210) -,(30, 41) -,(30, 142) -,(31, 210) -,(31, 41) -,(31, 142) -,(32, 210) -,(32, 41) -,(32, 142) +,(88, 30, 210) +,(89, 30, 41) +,(90, 30, 142) +,(91, 31, 210) +,(92, 31, 41) +,(93, 31, 142) +,(94, 32, 210) +,(95, 32, 41) +,(96, 32, 142) -- Staff of Necromancy -- -,(33, 211) -,(33, 41) -,(33, 142) -,(34, 211) -,(34, 41) -,(34, 142) -,(35, 211) -,(35, 41) -,(35, 142) +,(97, 33, 211) +,(98, 33, 41) +,(99, 33, 142) +,(100, 34, 211) +,(101, 34, 41) +,(102, 34, 142) +,(103, 35, 211) +,(104, 35, 41) +,(105, 35, 142) -- Staff of Power -- -,(36, 209) -,(36, 41) -,(36, 142) -,(36, 202) +,(106, 36, 209) +,(107, 36, 41) +,(108, 36, 142) +,(109, 36, 202) -- Staff of the Magi -- -,(37, 209) -,(37, 41) -,(37, 142) -,(37, 202) +,(110, 37, 209) +,(111, 37, 41) +,(112, 37, 142) +,(113, 37, 202) -- Staff of Transmutation -,(38, 212) -,(38, 41) -,(38, 142) -,(39, 212) -,(39, 41) -,(39, 142) -,(40, 212) -,(40, 41) -,(40, 142) +,(114, 38, 212) +,(115, 38, 41) +,(116, 38, 142) +,(117, 39, 212) +,(118, 39, 41) +,(119, 39, 142) +,(120, 40, 212) +,(121, 40, 41) +,(122, 40, 142) -- Verdant Staff -- -,(41, 207) -,(41, 41) -,(41, 142) -,(42, 207) -,(42, 41) -,(42, 142) +,(123, 41, 207) +,(124, 41, 41) +,(125, 41, 142) +,(126, 42, 207) +,(127, 42, 41) +,(128, 42, 142) ; ------------------------ -- staff_spell insert -- ------------------------ INSERT INTO staff_spell ( - staff_id + id + ,staff_id ,"level" ,spell_id ) VALUES -- Anmial Staff -- - (1, 0, 253) -,(1, 1, 273) -,(1, 1, 442) + (1, 1, 0, 253) +,(2, 1, 1, 273) +,(3, 1, 1, 442) -- Animal Staff (Greater) -- -,(2, 0, 253) -,(2, 1, 273) -,(2, 1, 442) -,(2, 2, 19) -,(2, 2, 415) -,(2, 2, 442) -,(2, 3, 18) -,(2, 3, 442) +,(4, 2, 0, 253) +,(5, 2, 1, 273) +,(6, 2, 1, 442) +,(7, 2, 2, 19) +,(8, 2, 2, 415) +,(9, 2, 2, 442) +,(10, 2, 3, 18) +,(11, 2, 3, 442) -- Animal Staff (Major) -- -,(3, 0, 253) -,(3, 1, 273) -,(3, 1, 442) -,(3, 2, 19) -,(3, 2, 415) -,(3, 2, 442) -,(3, 3, 18) -,(3, 3, 442) -,(3, 4, 442) -,(3, 5, 18) -,(3, 5, 299) -,(3, 5, 442) --- Mentalist's Staff -- -,(4, 0, 88) -,(4, 1, 291) -,(4, 1, 322) --- Mentalist's Staff (Greater) -- -,(5, 0, 88) -,(5, 1, 291) -,(5, 1, 322) -,(5, 2, 314) -,(5, 3, 230) -,(5, 3, 322) +,(12, 3, 0, 253) +,(13, 3, 1, 273) +,(14, 3, 1, 442) +,(15, 3, 2, 19) +,(16, 3, 2, 415) +,(17, 3, 2, 442) +,(18, 3, 3, 18) +,(19, 3, 3, 442) +,(20, 3, 4, 442) +,(21, 3, 5, 18) +,(22, 3, 5, 299) +,(23, 3, 5, 442) +--22entalist's Staff -- +,(24, 4, 0, 88) +,(25, 4, 1, 291) +,(26, 4, 1, 322) +--26entalist's Staff (Greater) -- +,(27, 5, 0, 88) +,(28, 5, 1, 291) +,(29, 5, 1, 322) +,(30, 5, 2, 314) +,(31, 5, 3, 230) +,(32, 5, 3, 322) -- Mentalist's Staff (Major) -- -,(6, 0, 88) -,(6, 1, 291) -,(6, 1, 322) -,(6, 2, 314) -,(6, 3, 230) -,(6, 3, 322) -,(6, 4, 296) -,(6, 4, 466) -,(6, 5, 322) -,(6, 5, 455) -,(6, 5, 456) +,(33, 6, 0, 88) +,(34, 6, 1, 291) +,(35, 6, 1, 322) +,(36, 6, 2, 314) +,(37, 6, 3, 230) +,(38, 6, 3, 322) +,(39, 6, 4, 296) +,(40, 6, 4, 466) +,(41, 6, 5, 322) +,(42, 6, 5, 455) +,(43, 6, 5, 456) -- Staff of Abjuration -- -,(7, 0, 399) -,(7, 1, 11) -,(7, 1, 167) -,(7, 2, 112) -,(7, 2, 148) -,(7, 2, 370) +,(44, 7, 0, 399) +,(45, 7, 1, 11) +,(46, 7, 1, 167) +,(47, 7, 2, 112) +,(48, 7, 2, 148) +,(49, 7, 2, 370) -- Staff of Abjuration (Greater) -- -,(8, 0, 399) -,(8, 1, 11) -,(8, 1, 167) -,(8, 2, 112) -,(8, 2, 148) -,(8, 2, 370) -,(8, 3, 11) -,(8, 3, 202) -,(8, 4, 102) -,(8, 4, 112) -,(8, 4, 370) +,(50, 8, 0, 399) +,(51, 8, 1, 11) +,(52, 8, 1, 167) +,(53, 8, 2, 112) +,(54, 8, 2, 148) +,(55, 8, 2, 370) +,(56, 8, 3, 11) +,(57, 8, 3, 202) +,(58, 8, 4, 102) +,(59, 8, 4, 112) +,(60, 8, 4, 370) -- Staff of Abjuration (Major) -- -,(9, 0, 399) -,(9, 1, 11) -,(9, 1, 167) -,(9, 2, 112) -,(9, 2, 148) -,(9, 2, 370) -,(9, 3, 11) -,(9, 3, 202) -,(9, 4, 102) -,(9, 4, 112) -,(9, 4, 370) -,(9, 5, 32) -,(9, 5, 148) -,(9, 6, 112) -,(9, 6, 368) +,(61, 9, 0, 399) +,(62, 9, 1, 11) +,(63, 9, 1, 167) +,(64, 9, 2, 112) +,(65, 9, 2, 148) +,(66, 9, 2, 370) +,(67, 9, 3, 11) +,(68, 9, 3, 202) +,(69, 9, 4, 102) +,(70, 9, 4, 112) +,(71, 9, 4, 370) +,(72, 9, 5, 32) +,(73, 9, 5, 148) +,(74, 9, 6, 112) +,(75, 9, 6, 368) -- Staff of Conjuration -- -,(10, 0, 459) -,(10, 1, 444) -,(10, 1, 494) -,(10, 2, 309) -,(10, 2, 323) -,(10, 2, 444) -,(10, 2, 446) +,(76, 10, 0, 459) +,(77, 10, 1, 444) +,(78, 10, 1, 494) +,(79, 10, 2, 309) +,(80, 10, 2, 323) +,(81, 10, 2, 444) +,(82, 10, 2, 446) -- Staff of Conjuration (Greater) -- -,(11, 0, 459) -,(11, 1, 444) -,(11, 1, 494) -,(11, 2, 309) -,(11, 2, 323) -,(11, 2, 444) -,(11, 2, 446) -,(11, 3, 432) -,(11, 3, 444) -,(11, 3, 446) -,(11, 4, 79) -,(11, 4, 232) -,(11, 4, 444) -,(11, 4, 446) +,(83, 11, 0, 459) +,(84, 11, 1, 444) +,(85, 11, 1, 494) +,(86, 11, 2, 309) +,(87, 11, 2, 323) +,(88, 11, 2, 444) +,(89, 11, 2, 446) +,(90, 11, 3, 432) +,(91, 11, 3, 444) +,(92, 11, 3, 446) +,(93, 11, 4, 79) +,(94, 11, 4, 232) +,(95, 11, 4, 444) +,(96, 11, 4, 446) -- Staff of Conjuration (Major) -- -,(12, 0, 459) -,(12, 1, 444) -,(12, 1, 494) -,(12, 2, 309) -,(12, 2, 323) -,(12, 2, 444) -,(12, 2, 446) -,(12, 3, 432) -,(12, 3, 444) -,(12, 3, 446) -,(12, 4, 79) -,(12, 4, 232) -,(12, 4, 444) -,(12, 4, 446) -,(12, 5, 37) -,(12, 5, 444) -,(12, 5, 446) -,(12, 6, 323) -,(12, 6, 444) -,(12, 6, 446) +,(97, 12, 0, 459) +,(98, 12, 1, 444) +,(99, 12, 1, 494) +,(100, 12, 2, 309) +,(101, 12, 2, 323) +,(102, 12, 2, 444) +,(103, 12, 2, 446) +,(104, 12, 3, 432) +,(105, 12, 3, 444) +,(106, 12, 3, 446) +,(107, 12, 4, 79) +,(108, 12, 4, 232) +,(109, 12, 4, 444) +,(110, 12, 4, 446) +,(111, 12, 5, 37) +,(112, 12, 5, 444) +,(113, 12, 5, 446) +,(114, 12, 6, 323) +,(115, 12, 6, 444) +,(116, 12, 6, 446) -- Staff of Divination -- -,(13, 0, 97) -,(13, 1, 485) -,(13, 2, 70) -,(13, 2, 87) -,(13, 2, 466) +,(117, 13, 0, 97) +,(118, 13, 1, 485) +,(119, 13, 2, 70) +,(120, 13, 2, 87) +,(121, 13, 2, 466) -- Staff of Divination (Greater) -- -,(14, 0, 97) -,(14, 1, 485) -,(14, 2, 70) -,(14, 2, 87) -,(14, 2, 466) -,(14, 3, 60) -,(14, 3, 87) -,(14, 4, 61) -,(14, 4, 70) -,(14, 4, 466) +,(122, 14, 0, 97) +,(123, 14, 1, 485) +,(124, 14, 2, 70) +,(125, 14, 2, 87) +,(126, 14, 2, 466) +,(127, 14, 3, 60) +,(128, 14, 3, 87) +,(129, 14, 4, 61) +,(130, 14, 4, 70) +,(131, 14, 4, 466) -- Staff of Divination (Major) -- -,(15, 0, 97) -,(15, 1, 485) -,(15, 2, 70) -,(15, 2, 87) -,(15, 2, 466) -,(15, 3, 60) -,(15, 3, 87) -,(15, 4, 61) -,(15, 4, 70) -,(15, 4, 466) -,(15, 5, 348) -,(15, 5, 390) -,(15, 5, 466) -,(15, 5, 484) +,(132, 15, 0, 97) +,(133, 15, 1, 485) +,(134, 15, 2, 70) +,(135, 15, 2, 87) +,(136, 15, 2, 466) +,(137, 15, 3, 60) +,(138, 15, 3, 87) +,(139, 15, 4, 61) +,(140, 15, 4, 70) +,(141, 15, 4, 466) +,(142, 15, 5, 348) +,(143, 15, 5, 390) +,(144, 15, 5, 466) +,(145, 15, 5, 484) -- Staff of Enchantment -- -,(16, 0, 88) -,(16, 1, 53) -,(16, 1, 67) -,(16, 2, 221) -,(16, 2, 474) +,(146, 16, 0, 88) +,(147, 16, 1, 53) +,(148, 16, 1, 67) +,(149, 16, 2, 221) +,(150, 16, 2, 474) -- Staff of Enchantment (Greater) -- -,(17, 0, 88) -,(17, 1, 53) -,(17, 1, 67) -,(17, 2, 221) -,(17, 2, 474) -,(17, 3, 313) -,(17, 4, 53) -,(17, 4, 72) -,(17, 4, 441) +,(151, 17, 0, 88) +,(152, 17, 1, 53) +,(153, 17, 1, 67) +,(154, 17, 2, 221) +,(155, 17, 2, 474) +,(156, 17, 3, 313) +,(157, 17, 4, 53) +,(158, 17, 4, 72) +,(159, 17, 4, 441) -- Staff of Enchantment (Major) -- -,(18, 0, 88) -,(18, 1, 53) -,(18, 1, 67) -,(18, 2, 221) -,(18, 2, 474) -,(18, 3, 313) -,(18, 4, 53) -,(18, 4, 72) -,(18, 4, 441) -,(18, 5, 67) -,(18, 5, 82) -,(18, 6, 123) -,(18, 6, 168) +,(160, 18, 0, 88) +,(161, 18, 1, 53) +,(162, 18, 1, 67) +,(163, 18, 2, 221) +,(164, 18, 2, 474) +,(165, 18, 3, 313) +,(166, 18, 4, 53) +,(167, 18, 4, 72) +,(168, 18, 4, 441) +,(169, 18, 5, 67) +,(170, 18, 5, 82) +,(171, 18, 6, 123) +,(172, 18, 6, 168) -- Staff of Evocation -- -,(19, 0, 357) -,(19, 1, 274) -,(19, 1, 403) -,(19, 2, 5) -,(19, 2, 199) +,(173, 19, 0, 357) +,(174, 19, 1, 274) +,(175, 19, 1, 403) +,(176, 19, 2, 5) +,(177, 19, 2, 199) -- Staff of Evocation (Greater) -- -,(20, 0, 357) -,(20, 1, 274) -,(20, 1, 403) -,(20, 2, 5) -,(20, 2, 199) -,(20, 3, 259) -,(20, 3, 274) -,(20, 4, 178) -,(20, 4, 520) +,(178, 20, 0, 357) +,(179, 20, 1, 274) +,(180, 20, 1, 403) +,(181, 20, 2, 5) +,(182, 20, 2, 199) +,(183, 20, 3, 259) +,(184, 20, 3, 274) +,(185, 20, 4, 178) +,(186, 20, 4, 520) -- Staff of Evocation (Major) -- -,(21, 0, 357) -,(21, 1, 274) -,(21, 1, 403) -,(21, 2, 5) -,(21, 2, 199) -,(21, 3, 259) -,(21, 3, 274) -,(21, 4, 178) -,(21, 4, 520) -,(21, 5, 71) -,(21, 5, 274) -,(21, 5, 51) -,(21, 5, 510) +,(187, 21, 0, 357) +,(188, 21, 1, 274) +,(189, 21, 1, 403) +,(190, 21, 2, 5) +,(191, 21, 2, 199) +,(192, 21, 3, 259) +,(193, 21, 3, 274) +,(194, 21, 4, 178) +,(195, 21, 4, 520) +,(196, 21, 5, 71) +,(197, 21, 5, 274) +,(198, 21, 5, 51) +,(199, 21, 5, 510) -- Staff of Fire -- -,(22, 0, 342) -,(22, 1, 45) +,(200, 22, 0, 342) +,(201, 22, 1, 45) -- Staff of Fire (Greater) -- -,(23, 0, 342) -,(23, 1, 45) -,(23, 2, 45) -,(23, 2, 181) -,(23, 3, 181) -,(23, 3, 178) +,(202, 23, 0, 342) +,(203, 23, 1, 45) +,(204, 23, 2, 45) +,(205, 23, 2, 181) +,(206, 23, 3, 181) +,(207, 23, 3, 178) -- Staff of Fire (Major) -- -,(24, 0, 342) -,(24, 1, 45) -,(24, 2, 45) -,(24, 2, 181) -,(24, 3, 181) -,(24, 3, 178) -,(24, 4, 177) -,(24, 4, 178) -,(24, 4, 509) -,(24, 5, 178) -,(24, 5, 509) +,(208, 24, 0, 342) +,(209, 24, 1, 45) +,(210, 24, 2, 45) +,(211, 24, 2, 181) +,(212, 24, 3, 181) +,(213, 24, 3, 178) +,(214, 24, 4, 177) +,(215, 24, 4, 178) +,(216, 24, 4, 509) +,(217, 24, 5, 178) +,(218, 24, 5, 509) -- Staff of Healing -- -,(25, 0, 430) -,(25, 1, 215) +,(219, 25, 0, 430) +,(220, 25, 1, 215) -- Staff of Healing (Greater) -- -,(26, 0, 430) -,(26, 1, 215) -,(26, 2, 215) -,(26, 2, 372) -,(26, 2, 373) -,(26, 3, 215) -,(26, 3, 365) +,(221, 26, 0, 430) +,(222, 26, 1, 215) +,(223, 26, 2, 215) +,(224, 26, 2, 372) +,(225, 26, 2, 373) +,(226, 26, 3, 215) +,(227, 26, 3, 365) -- Staff of Healing (Major) -- -,(27, 0, 430) -,(27, 1, 215) -,(27, 2, 215) -,(27, 2, 372) -,(27, 2, 373) -,(27, 3, 215) -,(27, 3, 365) -,(27, 4, 215) -,(27, 4, 372) -,(27, 5, 44) -,(27, 5, 215) -,(27, 5, 365) +,(228, 27, 0, 430) +,(229, 27, 1, 215) +,(230, 27, 2, 215) +,(231, 27, 2, 372) +,(232, 27, 2, 373) +,(233, 27, 3, 215) +,(234, 27, 3, 365) +,(235, 27, 4, 215) +,(236, 27, 4, 372) +,(237, 27, 5, 44) +,(238, 27, 5, 215) +,(239, 27, 5, 365) -- Staff of Healing (True) -- -,(28, 0, 430) -,(28, 1, 215) -,(28, 2, 215) -,(28, 2, 372) -,(28, 2, 373) -,(28, 3, 215) -,(28, 3, 365) -,(28, 4, 215) -,(28, 4, 372) -,(28, 5, 44) -,(28, 5, 215) -,(28, 5, 365) -,(28, 6, 215) -,(28, 6, 372) -,(28, 6, 373) -,(28, 7, 215) -,(28, 7, 362) -,(28, 7, 365) +,(240, 28, 0, 430) +,(241, 28, 1, 215) +,(242, 28, 2, 215) +,(243, 28, 2, 372) +,(244, 28, 2, 373) +,(245, 28, 3, 215) +,(246, 28, 3, 365) +,(247, 28, 4, 215) +,(248, 28, 4, 372) +,(249, 28, 5, 44) +,(250, 28, 5, 215) +,(251, 28, 5, 365) +,(252, 28, 6, 215) +,(253, 28, 6, 372) +,(254, 28, 6, 373) +,(255, 28, 7, 215) +,(256, 28, 7, 362) +,(257, 28, 7, 365) -- Staff of Illumination -- -,(29, 0, 258) -,(29, 2, 74) -,(29, 3, 74) -,(29, 3, 387) +,(258, 29, 0, 258) +,(259, 29, 2, 74) +,(260, 29, 3, 74) +,(261, 29, 3, 387) -- Staff of Illusion -- -,(30, 0, 194) -,(30, 1, 233) -,(30, 1, 234) -,(30, 2, 232) -,(30, 2, 246) +,(262, 30, 0, 194) +,(263, 30, 1, 233) +,(264, 30, 1, 234) +,(265, 30, 2, 232) +,(266, 30, 2, 246) -- Staff of Illusion (Greater) -- -,(31, 0, 194) -,(31, 1, 233) -,(31, 1, 234) -,(31, 2, 232) -,(31, 2, 246) -,(31, 3, 233) -,(31, 3, 146) -,(31, 4, 232) -,(31, 4, 498) +,(267, 31, 0, 194) +,(268, 31, 1, 233) +,(269, 31, 1, 234) +,(270, 31, 2, 232) +,(271, 31, 2, 246) +,(272, 31, 3, 233) +,(273, 31, 3, 146) +,(274, 31, 4, 232) +,(275, 31, 4, 498) -- Staff of Illusion (Major) -- -,(32, 0, 194) -,(32, 1, 233) -,(32, 1, 234) -,(32, 2, 232) -,(32, 2, 246) -,(32, 3, 233) -,(32, 3, 146) -,(32, 4, 232) -,(32, 4, 498) -,(32, 5, 235) -,(32, 5, 498) -,(32, 6, 210) -,(32, 6, 295) +,(276, 32, 0, 194) +,(277, 32, 1, 233) +,(278, 32, 1, 234) +,(279, 32, 2, 232) +,(280, 32, 2, 246) +,(281, 32, 3, 233) +,(282, 32, 3, 146) +,(283, 32, 4, 232) +,(284, 32, 4, 498) +,(285, 32, 5, 235) +,(286, 32, 5, 498) +,(287, 32, 6, 210) +,(288, 32, 6, 295) -- Staff of Necromancy -- -,(33, 0, 56) -,(33, 1, 207) -,(33, 1, 356) -,(33, 2, 90) -,(33, 2, 193) +,(289, 33, 0, 56) +,(290, 33, 1, 207) +,(291, 33, 1, 356) +,(292, 33, 2, 90) +,(293, 33, 2, 193) -- Staff of Necromancy (Greater) -- -,(34, 0, 56) -,(34, 1, 207) -,(34, 1, 356) -,(34, 2, 90) -,(34, 2, 193) -,(34, 3, 41) -,(34, 3, 497) -,(34, 4, 207) +,(294, 34, 0, 56) +,(295, 34, 1, 207) +,(296, 34, 1, 356) +,(297, 34, 2, 90) +,(298, 34, 2, 193) +,(299, 34, 3, 41) +,(300, 34, 3, 497) +,(301, 34, 4, 207) -- Placeholder for 4th level Enervation which is missing -- -- Staff of Necromancy (Major) -- -,(35, 0, 56) -,(35, 1, 207) -,(35, 1, 356) -,(35, 2, 90) -,(35, 2, 193) -,(35, 3, 41) -,(35, 3, 497) -,(35, 4, 207) -,(35, 5, 64) -,(35, 5, 193) -,(35, 6, 207) -,(35, 6, 496) +,(303, 35, 0, 56) +,(304, 35, 1, 207) +,(305, 35, 1, 356) +,(306, 35, 2, 90) +,(307, 35, 2, 193) +,(308, 35, 3, 41) +,(309, 35, 3, 497) +,(310, 35, 4, 207) +,(311, 35, 5, 64) +,(312, 35, 5, 193) +,(313, 35, 6, 207) +,(314, 35, 6, 496) -- Staff of Power -- -,(36, 1, 356) -,(36, 2, 74) -,(36, 3, 256) -,(36, 4, 200) -,(36, 4, 313) -,(36, 5, 274) -,(36, 6, 510) -,(36, 7, 71) -,(36, 7, 178) -,(36, 7, 259) +,(315, 36, 1, 356) +,(316, 36, 2, 74) +,(317, 36, 3, 256) +,(318, 36, 4, 200) +,(319, 36, 4, 313) +,(320, 36, 5, 274) +,(321, 36, 6, 510) +,(322, 36, 7, 71) +,(323, 36, 7, 178) +,(324, 36, 7, 259) -- Staff of the Magi -- -,(37, 0, 97) -,(37, 0, 258) -,(37, 0, 271) -,(37, 0, 463) -,(37, 1, 266) -,(37, 2, 153) -,(37, 2, 199) -,(37, 2, 243) -,(37, 2, 252) -,(37, 2, 462) -,(37, 2, 523) -,(37, 3, 112) -,(37, 3, 178) -,(37, 3, 259) -,(37, 4, 243) -,(37, 4, 153) -,(37, 4, 178) -,(37, 4, 509) -,(37, 4, 523) -,(37, 5, 71) -,(37, 5, 316) -,(37, 5, 461) -,(37, 6, 110) -,(37, 6, 112) -,(37, 6, 178) -,(37, 6, 259) -,(37, 7, 71) -,(37, 7, 316) -,(37, 7, 325) -,(37, 7, 509) -,(37, 8, 178) -,(37, 8, 270) -,(37, 9, 112) -,(37, 9, 287) -,(37, 9, 445) +,(325, 37, 0, 97) +,(326, 37, 0, 258) +,(327, 37, 0, 271) +,(328, 37, 0, 463) +,(329, 37, 1, 266) +,(330, 37, 2, 153) +,(331, 37, 2, 199) +,(332, 37, 2, 243) +,(333, 37, 2, 252) +,(334, 37, 2, 462) +,(335, 37, 2, 523) +,(336, 37, 3, 112) +,(337, 37, 3, 178) +,(338, 37, 3, 259) +,(339, 37, 4, 243) +,(340, 37, 4, 153) +,(341, 37, 4, 178) +,(342, 37, 4, 509) +,(343, 37, 4, 523) +,(344, 37, 5, 71) +,(345, 37, 5, 316) +,(346, 37, 5, 461) +,(347, 37, 6, 110) +,(348, 37, 6, 112) +,(349, 37, 6, 178) +,(350, 37, 6, 259) +,(351, 37, 7, 71) +,(352, 37, 7, 316) +,(353, 37, 7, 325) +,(354, 37, 7, 509) +,(355, 37, 8, 178) +,(356, 37, 8, 270) +,(357, 37, 9, 112) +,(358, 37, 9, 287) +,(359, 37, 9, 445) -- Staff of Transmutation -- -,(38, 0, 406) -,(38, 1, 182) -,(38, 1, 248) -,(38, 2, 153) -,(38, 2, 226) +,(360, 38, 0, 406) +,(361, 38, 1, 182) +,(362, 38, 1, 248) +,(363, 38, 2, 153) +,(364, 38, 2, 226) -- Staff of Transmutation (Greater) -- -,(39, 0, 406) -,(39, 1, 182) -,(39, 1, 248) -,(39, 2, 153) -,(39, 2, 226) -,(39, 3, 169) -,(39, 3, 248) -,(39, 4, 191) -,(39, 4, 394) +,(365, 39, 0, 406) +,(366, 39, 1, 182) +,(367, 39, 1, 248) +,(368, 39, 2, 153) +,(369, 39, 2, 226) +,(370, 39, 3, 169) +,(371, 39, 3, 248) +,(372, 39, 4, 191) +,(373, 39, 4, 394) -- Staff of Transmutation (Major) -- -,(40, 0, 406) -,(40, 1, 182) -,(40, 1, 248) -,(40, 2, 153) -,(40, 2, 226) -,(40, 3, 169) -,(40, 3, 248) -,(40, 4, 191) -,(40, 4, 394) -,(40, 5, 226) -,(40, 6, 30) -,(40, 6, 127) -,(40, 6, 183) +,(374, 40, 0, 406) +,(375, 40, 1, 182) +,(376, 40, 1, 248) +,(377, 40, 2, 153) +,(378, 40, 2, 226) +,(379, 40, 3, 169) +,(380, 40, 3, 248) +,(381, 40, 4, 191) +,(382, 40, 4, 394) +,(383, 40, 5, 226) +,(384, 40, 6, 30) +,(385, 40, 6, 127) +,(386, 40, 6, 183) -- Verdant Staff -- -,(41, 0, 459) -,(41, 1, 402) -,(41, 2, 33) -,(41, 2, 154) -,(41, 2, 395) -,(41, 2, 480) +,(387, 41, 0, 459) +,(388, 41, 1, 402) +,(389, 41, 2, 33) +,(390, 41, 2, 154) +,(391, 41, 2, 395) +,(392, 41, 2, 480) -- Verdant Staff (Greater) -- -,(42, 0, 459) -,(42, 1, 402) -,(42, 2, 33) -,(42, 2, 154) -,(42, 2, 395) -,(42, 2, 480) -,(42, 3, 513) -,(42, 4, 33) -,(42, 4, 416) -,(42, 5, 326) -,(42, 5, 513) +,(393, 42, 0, 459) +,(394, 42, 1, 402) +,(395, 42, 2, 33) +,(396, 42, 2, 154) +,(397, 42, 2, 395) +,(398, 42, 2, 480) +,(399, 42, 3, 513) +,(400, 42, 4, 33) +,(401, 42, 4, 416) +,(402, 42, 5, 326) +,(403, 42, 5, 513) ; \ No newline at end of file diff --git a/schema/staves.sql b/schema/staves.sql index 3d82eb1..0800795 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -23,33 +23,38 @@ CREATE TABLE staff ( CREATE TABLE staffactivations ( staffactivations_id INTEGER PRIMARY KEY, "activation" TEXT NOT NULL, - effect TEXT NOT NULL + effect TEXT NOT NULL, + UNIQUE (staffactivations_id, "activation", effect) ); -- Joining table -- CREATE TABLE staff_staffactivations ( - staff_id INTEGER, - staffactivations_id INTEGER, - PRIMARY KEY (staff_id, staffactivations_id), + id INTEGER PRIMARY KEY + staff_id INTEGER NOT NULL, + staffactivations_id INTEGER NOT NULL, + UNIQUE (id, staff_id, staffactivations_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (staffactivations_id) REFERENCES staffactivations(staffactivations_id) + ); -- Joining table -- CREATE TABLE staff_trait ( - staff_id INTEGER, - trait_id INTEGER, - PRIMARY KEY (staff_id, trait_id), + id INTEGER PRIMARY KEY, + staff_id INTEGER NOT NULL, + trait_id INTEGER NOT NULL, + UNIQUE (id, staff_id, trait_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (trait_id) REFERENCES traits(trait_id) ); -- Joining table -- CREATE TABLE staff_spell ( - staff_id INTEGER, + id INTEGER PRIMARY KEY, + staff_id INTEGER NOT NULL, "level" INTEGER NOT NULL, -- This represents the level of the spell in the staff where 0 = cantrip -- - spell_id INTEGER, - PRIMARY KEY (staff_id, "level", spell_id), + spell_id INTEGER NOT NULL, + UNIQUE (id, staff_id, "level", spell_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (spell_id) REFERENCES spells(spells_id) ); \ No newline at end of file From d8f013e30fac4175ca1d3da0365f5ca01524b1f9 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Tue, 3 Sep 2019 23:02:45 -0400 Subject: [PATCH 41/41] Add missing comma --- schema/staves.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/schema/staves.sql b/schema/staves.sql index 0800795..ffb4b9d 100644 --- a/schema/staves.sql +++ b/schema/staves.sql @@ -29,13 +29,12 @@ CREATE TABLE staffactivations ( -- Joining table -- CREATE TABLE staff_staffactivations ( - id INTEGER PRIMARY KEY + id INTEGER PRIMARY KEY, staff_id INTEGER NOT NULL, staffactivations_id INTEGER NOT NULL, UNIQUE (id, staff_id, staffactivations_id), FOREIGN KEY (staff_id) REFERENCES staff(staff_id), FOREIGN KEY (staffactivations_id) REFERENCES staffactivations(staffactivations_id) - ); -- Joining table --