PRAGMA foreign_keys = ON; -- database requires foreign key checking to be turned
                          -- on PER CONNECTION

------------------
-- Staff insert --
------------------
INSERT INTO staff (
   staff_id
  ,"name"
  ,"level"
  ,price
  ,bulk
  ,usage
  ,item_bonus
  ,craft_requirements
  ,source_id
  ,source_pages
  ,"description"
)
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.')
-- 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.')
-- 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 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 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 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 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 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 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 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 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 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 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.')
-- 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 --
------------------------------
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.')
 -- 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 --
,(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 --
,(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 (
  id,
  staff_id,
  staffactivations_id
)
VALUES
-- Animal Staff --
 (1, 1, 1)
,(2, 2, 1)
,(3, 3, 1)
-- Mentalist's Staff --
,(4, 4, 1)
,(5, 5, 1)
,(6, 6, 1)
-- Staff of Abjuration --
,(7, 7, 1)
,(8, 8, 1)
,(9, 9, 1)
-- Staff of Conjuration --
,(10, 10, 1)
,(11, 11, 1)
,(12, 12, 1)
-- Staff of Divination -
,(13, 13, 1)
,(14, 14, 1)
,(15, 15, 1)
-- Staff of Enchantment --
,(16, 16, 1)
,(17, 17, 1)
,(18, 18, 1)
-- Staff of Evocation --
,(19, 19, 1)
,(20, 20, 1)
,(21, 21, 1)
-- Staff of Fire --
,(22, 22, 1)
,(23, 23, 1)
,(24, 24, 1)
-- Staff of Healing --
,(25, 25, 1)
,(26, 26, 1)
,(27, 27, 1)
,(28, 28, 1)
-- Staff of Illumination --
,(29, 29, 2)
,(30, 29, 1)
-- Staff of Illusion --
,(31, 30, 1)
,(32, 31, 1)
,(33, 32, 1)
-- Staff of Necromancy --
,(34, 33, 1)
,(35, 34, 1)
,(36, 35, 1)
-- Staff of Power --
,(37, 36, 3)
,(38, 36, 1)
-- Staff of the Magi --
,(39, 37, 4)
,(40, 37, 1)
-- Staff of Transmutation --
,(41, 38, 1)
,(42, 39, 1)
,(43, 40, 1)
-- Verdant Staff --
,(44, 41, 1)
,(45, 42, 1)
;

------------------------
-- staff_trait insert --
------------------------
INSERT INTO staff_trait (
  id,
  staff_id,
  trait_id
) 
VALUES
-- Animal Staff --
 (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 --
,(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 --
,(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 --
,(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 --
,(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 --
,(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 --
,(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 --
,(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 --
,(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 --
,(85, 29, 209)
,(86, 29, 41)
,(87, 29, 142)
-- Staff of Illusion --
,(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 --
,(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 --
,(106, 36, 209)
,(107, 36, 41)
,(108, 36, 142)
,(109, 36, 202)
-- Staff of the Magi --
,(110, 37, 209)
,(111, 37, 41)
,(112, 37, 142)
,(113, 37, 202)
-- Staff of Transmutation
,(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 --
,(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 (
   id
  ,staff_id
  ,"level"
	,spell_id
)
VALUES
-- Anmial Staff --
 (1, 1, 0, 253)
,(2, 1, 1, 273)
,(3, 1, 1, 442)
-- Animal Staff (Greater) --
,(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) --
,(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) --
,(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 --
,(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) --
,(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) --
,(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 --
,(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) --
,(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) --
,(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 --
,(117, 13, 0, 97)
,(118, 13, 1, 485)
,(119, 13, 2, 70)
,(120, 13, 2, 87)
,(121, 13, 2, 466)
-- Staff of Divination (Greater) --
,(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) --
,(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 --
,(146, 16, 0, 88)
,(147, 16, 1, 53)
,(148, 16, 1, 67)
,(149, 16, 2, 221)
,(150, 16, 2, 474)
-- Staff of Enchantment (Greater) --
,(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) --
,(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 --
,(173, 19, 0, 357)
,(174, 19, 1, 274)
,(175, 19, 1, 403)
,(176, 19, 2, 5)
,(177, 19, 2, 199)
-- Staff of Evocation (Greater) --
,(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) --
,(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 --
,(200, 22, 0, 342)
,(201, 22, 1, 45)
-- Staff of Fire (Greater) --
,(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) --
,(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 --
,(219, 25, 0, 430)
,(220, 25, 1, 215)
-- Staff of Healing (Greater) --
,(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) --
,(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) --
,(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 --
,(258, 29, 0, 258)
,(259, 29, 2, 74)
,(260, 29, 3, 74)
,(261, 29, 3, 387)
-- Staff of Illusion --
,(262, 30, 0, 194)
,(263, 30, 1, 233)
,(264, 30, 1, 234)
,(265, 30, 2, 232)
,(266, 30, 2, 246)
-- Staff of Illusion (Greater) --
,(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) --
,(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 --
,(289, 33, 0, 56)
,(290, 33, 1, 207)
,(291, 33, 1, 356)
,(292, 33, 2, 90)
,(293, 33, 2, 193)
-- Staff of Necromancy (Greater) --
,(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) --
,(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 --
,(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 --
,(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 --
,(360, 38, 0, 406)
,(361, 38, 1, 182)
,(362, 38, 1, 248)
,(363, 38, 2, 153)
,(364, 38, 2, 226)
-- Staff of Transmutation (Greater) --
,(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) --
,(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 --
,(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) --
,(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)
;