From c15833057d57584aa7edcb04afcf926cfbff429e Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Wed, 28 Aug 2019 16:56:50 -0400 Subject: [PATCH] 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