-- Migration 2: rework items system
-- Created: 2025-08-25 10:50:50

DROP TABLE IF EXISTS drops;
DROP TABLE IF EXISTS items;

CREATE TABLE items (
	`id`         INTEGER PRIMARY KEY AUTOINCREMENT,
	`type`       INTEGER NOT NULL DEFAULT 1,
	`name`       TEXT NOT NULL,
	`lore`       TEXT DEFAULT '',
	`value`      INTEGER NOT NULL DEFAULT 0,
	`attack`     INTEGER NOT NULL DEFAULT 0,
	`defense`    INTEGER NOT NULL DEFAULT 0,
	`strength`   INTEGER NOT NULL DEFAULT 0,
	`dexterity`  INTEGER NOT NULL DEFAULT 0,
	`max_hp`     INTEGER NOT NULL DEFAULT 0,
	`max_mp`     INTEGER NOT NULL DEFAULT 0,
	`exp_bonus`  INTEGER NOT NULL DEFAULT 0,
	`gold_bonus` INTEGER NOT NULL DEFAULT 0,
	`special`    TEXT NOT NULL DEFAULT ''
);
INSERT INTO items VALUES
(1,  1, 'Stick',              'Just a stick.', 10, 2, 0, 0, 0, 0, 0, 0, 0, ''),
(2,  1, 'Branch',             'Slightly larger stick.', 30, 4, 0, 0, 0, 0, 0, 0, 0, ''),
(3,  1, 'Club',               'Much larger stick.', 40, 5, 0, 0, 0, 0, 0, 0, 0, ''),
(4,  1, 'Dagger',             'Well-crafted knife.', 90, 8, 0, 0, 0, 0, 0, 0, 0, ''),
(5,  1, 'Hatchet',            'A smaller, sharpened axe.', 150, 12, 0, 0, 0, 0, 0, 0, 0, ''),
(6,  1, 'Axe',                'Full-sized, razor-sharp axe.', 200, 16, 0, 0, 0, 0, 0, 0, 0, ''),
(7,  1, 'Brand',              'An oddly-shaped, large knife.', 300, 25, 0, 0, 0, 0, 0, 0, 0, ''),
(8,  1, 'Poleaxe',            'A weighty axe on a long stick.', 500, 35, 0, 0, 0, 0, 0, 0, 0, ''),
(9,  1, 'Broadsword',         'Thick and heavy sword.', 800, 45, 0, 0, 0, 0, 0, 0, 0, ''),
(10, 1, 'Battle Axe',         'A large axe with spikes on the rear for catching armor.', 1200, 50, 0, 0, 0, 0, 0, 0, 0, ''),
(11, 1, 'Claymore',           'A very long sword made for cleaving through armor.', 2000, 60, 0, 0, 0, 0, 0, 0, 0, ''),
(12, 1, 'Dark Axe',           'Cursed axe with a dark aura - seems to be sharper than most, but strangely draining.', 3000, 100, 0, 0, 0, 0, 0, -5, 0, ''),
(13, 1, 'Dark Sword',         'Exceptionally sharp sword. The blade seems to shine with malice - you can feel it absorbing some of your will.', 4500, 125, 0, 0, 0, 0, 0, -10, 0, ''),
(14, 1, 'Bright Sword',       'The golden hilt and silver blade make this sword shine in the sun. Defeating enemies with it makes you feel fulfilled.', 6000, 100, 0, 0, 0, 0, 0, 10, 0, ''),
(15, 1, 'Magic Sword',        'One of Gilead''s mass-produced mage blades. Crafted with skill, enchanted by apprentices.', 10000, 150, 0, 0, 0, 0, 50, 0, 0, ''),
(16, 1, 'Destiny Blade',      'The sword that cleaves through demons like butter; a lost relic from humanity''s champion. Its immense strength is palpable.', 50000, 250, 0, 50, 0, 0, 0, 5, 5, ''),
(17, 2, 'Skivvies',           'Underwear! Plain and simple.', 25, 0, 2, 0, 0, 0, 0, 0, 10, ''),
(18, 2, 'Clothes',            'Standard working attire.', 50, 0, 5, 0, 0, 0, 0, 0, 0, ''),
(19, 2, 'Leather Armor',      'Basic protection provided by supple hide.', 75, 0, 10, 0, 0, 0, 0, 0, 0, ''),
(20, 2, 'Studded Armor',      'Leather armor enhanced with small metal buckles.', 150, 0, 25, 0, 0, 0, 0, 0, 0, ''),
(21, 2, 'Chain Mail',         'Iron links, pieced together to form a dense shirt.', 300, 0, 30, 0, 0, 0, 0, 0, 0, ''),
(22, 2, 'Bronze Plate',       'Pieces of bronze formed to your vital areas, secured with leather straps.', 900, 0, 50, 0, 0, 0, 0, 0, 0, ''),
(23, 2, 'Iron Plate',         'Stronger and slightly lighter than bronze plates.', 2000, 0, 100, 0, 0, 0, 0, 0, 0, ''),
(24, 2, 'Magic Armor',        'Steel armor crafted by the skilled artisans of Gilead, enchanted by apprentices.', 4000, 0, 125, 0, 0, 0, 50, 0, 0, ''),
(25, 2, 'Dark Armor',         'Armor that feels unnaturally heavy, although it also feels unnaturaly safe.', 5000, 0, 150, 0, 0, 0, 0, -10, 0, ''),
(26, 2, 'Bright Armor',       'These plates reflect the suns rays. You seem to understand your enemies attacks easier in it.', 10000, 0, 120, 0, 0, 0, 0, 10, 0, ''),
(27, 2, 'Destiny Raiment',    'A dazzling array of fabric and engineering layered over steel alloy. Despite the wars it has seen, it bears no scars.', 50000, 0, 200, 0, 50, 0, 0, 5, 5, ''),
(28, 3, 'Reed Shield',        'Stiff river reeds. Dried, cured, strapped together with twine.', 50, 0, 2, 0, 0, 0, 0, 0, 0, ''),
(29, 3, 'Buckler',            'Planks of wood cleaned up and formed into a small, round shield.', 100, 0, 4, 0, 0, 0, 0, 0, 0, ''),
(30, 3, 'Small Shield',       'Cedar is treated to withstand impacts, then bonded together with rivets.', 500, 0, 10, 0, 0, 0, 0, 0, 0, ''),
(31, 3, 'Tower Shield',       'A very heavy, tall shield built to withstand might blows.', 2500, 0, 30, 0, 0, 0, 0, 0, 0, ''),
(32, 3, 'Silver Shield',      'Surprisingly sturdy, this gleaming shield lets attacks bounce right off.', 10000, 0, 60, 0, 0, 0, 0, 0, 0, ''),
(33, 3, 'Destiny Aegis',      'An exquisite piece of forging, it is surprisingly light. Impacts seem to be absorbed into nothing.', 25000, 0, 100, 0, 0, 50, 0, 5, 5, ''),
(34, 4, 'Life Pebble',        'Shiny green rock. Seems to put a spring in your step.', 0, 0, 0, 0, 0, 10, 0, 0, 0, ''),
(35, 4, 'Life Stone',         'Glistening green rock. You feel energized with it.', 0, 0, 0, 0, 0, 25, 0, 0, 0, ''),
(36, 4, 'Life Rock',          'Polished green rock. You feel as if you''ll live longer with it.', 0, 0, 0, 0, 0, 50, 0, 0, 0, ''),
(37, 4, 'Magic Pebble',       'Shiny blue rock. You feel at ease with it.', 0, 0, 0, 0, 0, 0, 10, 0, 0, ''),
(38, 4, 'Magic Stone',        'Glistening blue rock. It feels like it gives you clarity.', 0, 0, 0, 0, 0, 0, 25, 0, 0, ''),
(39, 4, 'Magic Rock',         'Polished blue rock. It seems to hum in your mind.', 0, 0, 0, 0, 0, 0, 50, 0, 0, ''),
(40, 4, 'Dragon''s Scale',    'A scale from a young dragon.', 0, 0, 25, 0, 0, 0, 0, 0, 0, ''),
(41, 4, 'Dragon''s Plate',    'A piece of the ridge of an adult dragon.', 0, 0, 50, 0, 0, 0, 0, 0, 0, ''),
(42, 4, 'Dragon''s Claw',     'A claw taken from a dragon.', 0, 25, 0, 0, 0, 0, 0, 0, 0, ''),
(43, 4, 'Dragon''s Tooth',    'A fang ripped from a dragon.', 0, 50, 0, 0, 0, 0, 0, 0, 0, ''),
(44, 4, 'Dragon''s Tear',     'A sad reminder of a dragon''s death.', 0, 0, 0, 50, 0, 0, 0, 0, 0, ''),
(45, 4, 'Dragon''s Wing',     'A flap of leather from a dragon''s wing.', 0, 0, 0, 0, 50, 0, 0, 0, 0, ''),
(46, 4, 'Demon''s Sin',       'The demons sin; sacrificing life for power.', 0, 0, 0, 50, 0, -50, 0, 0, 0, ''),
(47, 4, 'Demon''s Fall',      'The demons failure; sacrificing wisdom for strength.', 0, 0, 0, 50, 0, 0, -50, 0, 0, ''),
(48, 4, 'Demon''s Lie',       'The demons lie; power is more valuable than life.', 0, 0, 0, 100, 0, -100, 0, 0, 0, ''),
(49, 4, 'Demon''s Hate',      'The demons hate; the will of others.', 0, 0, 0, 100, 0, 0, -100, 0, 0, ''),
(50, 4, 'Angel''s Joy',       'The angels joy; the celebration of life.', 0, 0, 0, 25, 0, 25, 0, 0, 0, ''),
(51, 4, 'Angel''s Rise',      'The angels rise; growth begets strength.', 0, 0, 0, 50, 0, 50, 0, 0, 0, ''),
(52, 4, 'Angel''s Truth',     'The angels truth; all breath is valuable.', 0, 0, 0, 75, 0, 75, 0, 0, 0, ''),
(53, 4, 'Angel''s Love',      'The angels love; the protection of existence.', 0, 0, 0, 100, 0, 100, 0, 0, 0, ''),
(54, 4, 'Seraph''s Wisdom',   'The seraphs wisdom; meekness is strength.', 0, 0, 0, 0, 25, 0, 25, 0, 0, ''),
(55, 4, 'Seraph''s Strength', 'The seraphs strength; sharpness of mind and soul.', 0, 0, 0, 0, 50, 0, 50, 0, 0, ''),
(56, 4, 'Seraph''s Creed',    'The seraphs creed; the lust for power makes weak.', 0, 0, 0, 0, 75, 0, 75, 0, 0, ''),
(57, 4, 'Seraph''s Loyalty',  'The seraphs loyalty; to all creation.', 0, 0, 0, 0, 100, 0, 100, 0, 0, ''),
(58, 4, 'Ruby',               'A gorgeous red crystal.', 0, 0, 0, 0, 0, 150, 0, 0, 0, ''),
(59, 4, 'Pearl',              'A beautiful white crystal.', 0, 0, 0, 0, 0, 0, 150, 0, 0, ''),
(60, 4, 'Emerald',            'A mesmerizing green crystal.', 0, 0, 0, 150, 0, 0, 0, 0, 0, ''),
(61, 4, 'Topaz',              'A translucent orange crystal.', 0, 0, 0, 0, 150, 0, 0, 0, 0, ''),
(62, 4, 'Obsidian',           'A razor-sharp black crystal.', 0, 150, 0, 0, 0, 0, 0, 0, 0, ''),
(63, 4, 'Diamond',            'A shockingly tough blue crystal.', 0, 0, 150, 0, 0, 0, 0, 0, 0, ''),
(64, 4, 'Memory Drop',        'This swirling blue liquid comes from the Fount.', 0, 0, 0, 0, 0, 0, 0, 10, 0, ''),
(65, 4, 'Fortune Drop',       'This mysterious green, sparkly concoction comes from lands unknown.', 0, 0, 0, 0, 0, 0, 0, 0, 10, '');