Module:Disassemble/data

-- -- blank template --	[] = { often = , rarely = '', itemqty = 1, compqty = 8 }, -- NOTES: -- Do not include an item quantity of 1, this is done in the parent module (other default amounts are fine to include)

local data = { ['default'] = { often = 'Simple', rarely = 'Variable', compqty = 1 }, ['clothing'] = { often = 'Cover, Padded, Simple', rarely = 'Variable', compqty = 1, x10 = true },

['talisman'] = { often = 'Magic', sometimes = 'Crafted', rarely = 'Powerful', compqty = 1 }, ['runes'] = { often = 'Magic', sometimes = 'Crafted', rarely = 'Powerful', itemqty = 50, compqty = 8 }, -- grouped with food: herbs ['food'] = { often = 'Organic', sometimes = 'Crafted', rarely = 'Living, Healthy, Enhancing', compqty = 1 },

['uncut gems'] = { often = 'Clear, Delicate, Smooth', rarely = 'Precious, Light', compqty = 1 }, ['gems'] = { often = 'Clear, Delicate, Smooth', rarely = 'Precious, Light', compqty = 2 },

-- grouped with logs untanned hides ['logs'] = { often = 'Simple', rarely = 'Living', compqty = 1 }, ['seeds'] = { often = 'Organic', rarely = 'Living', compqty = 1 }, ['potions'] = { often = 'Delicate, Organic, Crafted', rarely = 'Healthy, Enhancing', compqty = 1, potion = true },

['pouches'] = { often = 'Spiritual, Crafted, Flexible', rarely = 'Powerful', compqty = 3 }, ['scrolls'] = { often = 'Spiritual, Crafted', rarely = 'Powerful', compqty = 2 }, ['charms'] = { often = 'Spiritual', compqty = 1 },

['divination'] = { often = 'Magic', sometimes = 'Crafted', rarely = 'Ethereal', compqty = 3 },

['remains'] = { often = 'Organic', rarely = 'Pious', compqty = 1 }, ['bones'] = { often = 'Organic', rarely = 'Pious', compqty = 2 }, ['ashes'] = { often = 'Organic', rarely = 'Pious, Ethereal', compqty = 2 },

['ores'] = { often = 'Simple', compqty = 1 }, ['bars'] = { often = 'Simple, Crafted', compqty = 2 },

-- grouped with planks: tanned hides (leather) ['planks'] = { often = 'Simple, Crafted', compqty = 1 },

['glass'] = { often = 'Clear, Delicate, Smooth', rarely = 'Enhancing', compqty = 2 },

-- =================	-- EQUIPMENT -- =================	['jewellery'] = { often = 'Delicate, Connector, Smooth', rarely = 'Precious, Enhancing', compqty = 5, x10 = true },

-- melee items ['melee shield'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 8, x10 = true }, ['melee helm'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 6, x10 = true }, ['melee cape'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 6, x10 = true }, ['melee legs'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 8, x10 = true }, ['melee body'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 8, x10 = true }, ['melee gloves'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 4, x10 = true }, ['melee boots'] = { often = 'Cover, Plated, Deflecting', rarely = 'Strong, Protective', compqty = 4, x10 = true },

['dagger'] = { often = 'Base, Blade, Spiked', rarely = 'Precise, Light', compqty = 8, x10 = true }, ['hatchet'] = { often = 'Head, Blade, Connector', rarely = 'Sharp, Strong', compqty = 8, x10 = true }, ['mace'] = { often = 'Base, Head, Smooth', rarely = 'Heavy, Dextrous', compqty = 8, x10 = true }, ['2h mace'] = { often = 'Base, Head, Smooth', rarely = 'Heavy, Dextrous', compqty = 12, x10 = true }, ['sword'] = { often = 'Base, Blade, Metallic', rarely = 'Precise, Dextrous', compqty = 8, x10 = true }, ['scimitar'] = { often = 'Base, Blade, Metallic', rarely = 'Sharp, subtle', compqty = 8, x10 = true }, ['pickaxe'] = { often = 'Base, Head, Spiked', rarely = 'Heavy, Direct', compqty = 8, x10 = true }, ['maul'] = { often = 'Base, Head, Plated', rarely = 'Heavy, Strong', compqty = 12, x10 = true }, ['longsword'] = { often = 'Base, Blade, Metallic', rarely = 'Sharp, Dextrous', compqty = 8, x10 = true }, ['warhammer'] = { often = 'Base, Head, Smooth', rarely = 'Heavy, Strong', compqty = 8, x10 = true }, ['battleaxe'] = { often = 'Head, Blade, Smooth', rarely = 'Sharp, Direct', compqty = 8, x10 = true }, ['claw'] = { often = 'Connector, Blade, Spiked', rarely = 'Sharp, Swift', compqty = 8, x10 = true }, ['2h sword'] = { often = 'Base, Blade, Metallic', rarely = 'Sharp, Strong', compqty = 12, x10 = true }, ['spear'] = { often = 'Stave, Blade, Crafted', rarely = 'Precise, Direct', compqty = 12, x10 = true }, ['hasta'] = { often = 'Stave, Blade, Crafted', rarely = 'Precise, Direct', compqty = 8, x10 = true }, ['halberd'] = { often = 'Stave, Blade, Deflecting', rarely = 'Sharp, Stunning', compqty = 12, x10 = true }, ['defender'] = { often = 'Base, Deflecting', sometimes = 'Precise, subtle', rarely = '', compqty = 8, x10 = true }, ['whip'] = { often = 'Connector, Flexible, Blade', rarely = 'Sharp, Subtle', compqty = 8, x10 = true },

-- magic items ['magic shield'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 8 }, ['magic helm'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 6, x10 = true }, ['magic cape'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 6, x10 = true }, ['magic legs'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 8, x10 = true }, ['magic body'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 8, x10 = true }, ['magic gloves'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 4, x10 = true }, ['magic boots'] = { often = 'Cover, Magic, Deflecting', rarely = 'Powerful, Protective', compqty = 4, x10 = true }, ['staff'] = { often = 'Stave, Magic, Padded', rarely = 'Powerful, Imbued', compqty = 12, x10 = true }, ['wands'] = { often = 'Base, Head, Magic', rarely = 'Precise, Imbued', compqty = 8, x10 = true }, ['orbs'] = { often = 'Delicate, Magic, Smooth', rarely = 'Enhancing, Ethereal', compqty = 8, x10 = true },

-- ranged items ['ranged shield'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 8, x10 = true }, ['ranged helm'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 6, x10 = true }, ['ranged cape'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 6, x10 = true }, ['ranged legs'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 8, x10 = true }, ['ranged body'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 8, x10 = true }, ['ranged gloves'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 4, x10 = true }, ['ranged boots'] = { often = 'Cover, Tensile, Padded', rarely = 'Evasive, Protective', compqty = 4, x10 = true }, ['shortbows'] = { often = 'Stave, Tensile, Flexible', rarely = 'Precise, Dextrous', compqty = 12, x10 = true }, ['shortbows (u)'] = { often = 'Stave, Tensile, Flexible', rarely = 'Precise, Dextrous', compqty = 4, x10 = true }, ['shieldbows'] = { often = 'Stave, Tensile, Flexible', rarely = 'Precise, Strong', compqty = 12, x10 = true }, ['shieldbows (u)'] = { often = 'Stave, Tensile, Flexible', rarely = 'Precise, Strong', compqty = 4, x10 = true }, ['arrows'] = { often = 'Stave, Head, Crafted', rarely = 'Precise', itemqty = 50, compqty = 6 }, ['arrowheads'] = { often = 'Stave, Head, Crafted', rarely = 'Precise', itemqty = 50, compqty = 2 }, ['bolts'] = { often = 'Base, Head, Spiked', rarely = 'Stunning', itemqty = 50, compqty = 6 }, ['bolt tips'] = { often = 'Head, Base, Spiked', rarely = 'Stunning', itemqty = 50, compqty = 2 }, ['crossbows'] = { often = 'Connector, Tensile, Spiked', rarely = 'Stunning, Dextrous', compqty = 8, x10 = true }, ['stock'] = { often = 'Connector, Tensile, Spiked', rarely = 'Stunning, Dextrous', compqty = 2, x10 = true }, ['2h crossbows'] = { often = 'Connector, Tensile, Crafted', rarely = 'Stunning, Dextrous', compqty = 12, x10 = true }, ['darts'] = { often = 'Simple, Blade, Spiked', rarely = 'Sharp, Swift', itemqty = 50, compqty = 8 },

-- hybrid items ['hybrid helm'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 6, x10 = true }, ['hybrid cape'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 6, x10 = true }, ['hybrid legs'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 8, x10 = true }, ['hybrid body'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 8, x10 = true }, ['hybrid gloves'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 4, x10 = true }, ['hybrid boots'] = { often = 'Cover, Deflecting', rarely = 'Powerful, Evasive, Protective', compqty = 4, x10 = true }, }

-- aliases -- create an entry with the same name as the category above -- create an array of aliases (all lowercase) local aliases = { ['gems'] = { 'gem' }, ['food'] = { 'herbs' }, ['seeds'] = { 'seed' }, ['pouches'] = { 'pouch' }, ['scrolls'] = { 'scroll' }, ['jewellery'] = { 'jewelry' }, ['divination'] = { 'divine location', 'portent', 'portents', 'sign', 'signs' }, ['staff'] = { 'staves' }, ['shortbows'] = { 'shortbow' }, ['shieldbows'] = { 'shieldbow', 'longbow', 'longbows' }, ['planks'] = { 'plank', 'leather' }, ['logs'] = { 'hides' }, ['wands'] = { 'wand' }, ['orbs'] = { 'orb', 'books' }, ['potions'] = { 'potion', 'flasks', 'flask' }, }

for w, v in pairs(aliases) do	for _, y in ipairs(v) do		data[y] = data[w] end end

return data