💾 Archived View for idiomdrottning.org › treasure › index.html captured on 2024-03-21 at 16:32:33.

View Raw

More Information

⬅️ Previous capture (2024-02-05)

-=-=-=-=-=-=-

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
    <title>Treasure</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="alternate" type="application/atom+xml" title="Idiomdrottning" href="https://idiomdrottning.org/blog" />
    <link rel="alternate" type="application/atom+xml" title="Idiomdrottning — programs" href="https://idiomdrottning.org/blog/programs" />
    <link rel="alternate" type="application/atom+xml" title="Idiomdrottning — programs (English only version)" href="https://idiomdrottning.org/blog/programs/en" />
    <link rel="alternate" type="text/plain" title="twtxt feed" href="https://idiomdrottning.org/blog.txt" />
    <link rel="alternate" type="text/plain" title="twtxt, but it's only programs" href="https://idiomdrottning.org/blog/programs.txt" />
    <link rel="alternate" type="text/plain" title="twtxt, but it's only English-language programs" href="https://idiomdrottning.org/blog/programs/en.txt" />
    <style>
      html {padding-left: 1em; padding-right: 1em;}
      h1, h2 {text-align: center; font-style: italic;}
      h2 {margin-top: 3em;}
      a {color: #321eb0;}
      a:visited {color: #9c1eb0;}
      body {max-width: 45em; margin-left: auto; margin-right: auto; margin-bottom: 12em; background-color: white; color: black;}
@media (prefers-color-scheme: dark) {body, a, a:visited {
					 color: #feec7c; background-color: #1e0708;}}

      </style>
<link rel="icon" type="image/png" href="/favicon.png" />
  </head>
  <body>
    <p style="text-align: center;">
      <a href="https://idiomdrottning.org" style="border:none;">
	<picture>
	  <source srcset="/idiomdrottning_dark_thistle.png" media="(prefers-color-scheme: dark)"/>
	  <img style="border:none; width: 154px; margin: auto;"
	       src="/idiomdrottning_just_thistle.png" alt="Idiomdrottning’s homepage"/>
	</picture>
      </a>
    </p>

    <h1>Treasure</h1><h2>Challenge 0–4</h2><ul id="challenge-04"></ul><h2>Challenge 5–10</h2><ul id="challenge-510"></ul><h2>Challenge 11–16</h2><ul id="challenge-1116"></ul><h2>Challenge 17–20</h2><ul id="challenge-1720"></ul><h2>About</h2>Treasure as per <a href="https://gurbintrollgames.wordpress.com/blackballs-treasure-2/">Blackball’s Treasure</a>. Reload for more, or save this webpage and use anywhere, on a server or locally. It's self-contained. For a souped-up version that uses items from a bunch of books, see <a href="/treasure-jukebox">Treasure Jukebox</a>.<!-- Feel free to make changes! Email me at sandra.snan@idiomdrottning.org if you find any bugs. ♥︎
You can also git clone https://idiomdrottning.org/treasure --><script>
//<![CDATA[
var first=document.querySelector('#challenge-04');
var second=document.querySelector('#challenge-510');
var third=document.querySelector('#challenge-1116');
var fourth=document.querySelector('#challenge-1720');
var weapons = ['Club', 'Dagger', 'Greatclub', 'Handaxe', 'Javelin', 'Light hammer', 'Mace', 'Quarterstaff', 'Sickle', 'Spear', 'Light crossbow', 'Dart', 'Shortbow', 'Sling', 'Battleaxe', 'Flail', 'Glaive', 'Greataxe', 'Greatsword', 'Halberd', 'Lance', 'Longsword', 'Maul', 'Morningstar', 'Pike', 'Rapier', 'Scimitar', 'Shortsword', 'Trident', 'War pick', 'Warhammer', 'Whip', 'Blowgun', 'Hand crossbow', 'Heavy crossbow', 'Longbow', 'Net'];
var ammunition = ['Arrow', 'Blowgun needle', 'Crossbow bolt', 'Sling bullet'];
var spells = [['Acid Splash, phb 211', 'Blade Ward, phb 218', 'Chill Touch, phb 221', 'Control Flames, xge 152', 'Create Bonfire, xge 152', 'Dancing Lights, phb 230', 'Fire Bolt, phb 242', 'Friends, phb 244', 'Frostbite, xge 156', 'Guidance, phb 248', 'Gust, xge 157', 'Infestation, xge 158', 'Light, phb 255', 'Mage Hand, phb 256', 'Mending, phb 259', 'Message, phb 259', 'Minor Illusion, phb 260', 'Mold Earth, xge 162', 'Poison Spray, phb 266', 'Prestidigitation, phb 267', 'Ray of Frost, phb 271', 'Resistance, phb 272', 'Sacred Flame, phb 272', 'Shocking Grasp, phb 275', 'Spare the Dying, phb 277', 'Thaumaturgy, phb 282', 'Thunderclap, xge 168', 'Toll the Dead, xge 169', 'True Strike, phb 284', 'Word of Radiance, xge 171'], ['Absorb Elements, xge 150', 'Alarm, phb 211', 'Bane, phb 216', 'Bless, phb 219', 'Burning Hands, phb 220', 'Catapult, xge 150', 'Cause Fear, xge 151', 'Ceremony, xge 151', 'Charm Person, phb 221', 'Chromatic Orb, phb 221', 'Color Spray, phb 222', 'Command, phb 223', 'Comprehend Languages, phb 224', 'Create or Destroy Water, phb 229', 'Cure Wounds, phb 230', 'Detect Evil and Good, phb 231', 'Detect Magic, phb 231', 'Detect Poison and Disease, phb 231', 'Disguise Self, phb 233', 'Earth Tremor, xge 155', 'Expeditious Retreat, phb 238', 'False Life, phb 239', 'Feather Fall, phb 239', 'Find Familiar, phb 240', 'Fog Cloud, phb 243', 'Grease, phb 246', 'Guiding Bolt, phb 248', 'Healing Word, phb 250', 'Ice Knife, xge 157', 'Identify, phb 252', 'Illusory Script, phb 252', 'Inflict Wounds, phb 253', 'Jump, phb 254', 'Longstrider, phb 256', 'Mage Armor, phb 256', 'Magic Missile, phb 257', 'Protection from Evil and Good, phb 270', 'Purify Food and Drink, phb 270', 'Ray of Sickness, phb 271', 'Sanctuary, phb 272', 'Shield, phb 275', 'Shield of Faith, phb 275', 'Silent Image, phb 276', 'Sleep, phb 276', 'Snare, xge 165', 'Tasha’s Hideous Laughter, phb 280', 'Tenser’s Floating Disk, phb 282', 'Thunderwave, phb 282', 'Unseen Servant, phb 284', 'Witch Bolt, phb 289'], ['Aganazzar’s Scorcher, xge 150', 'Aid, phb 211', 'Alter Self, phb 211', 'Arcane Lock, phb 215', 'Augury, phb 215', 'Blindness/Deafness, phb 219', 'Blur, phb 219', 'Calm Emotions, phb 221', 'Cloud of Daggers, phb 222', 'Continual Flame, phb 227', 'Crown of Madness, phb 229', 'Darkness, phb 230', 'Darkvision, phb 230', 'Detect Thoughts, phb 231', 'Dragon’s Breath, xge 154', 'Dust Devil, xge 154', 'Earthbind, xge 154', 'Enhance Ability, phb 237', 'Enlarge/Reduce, phb 237', 'Find Traps, phb 241', 'Flaming Sphere, phb 242', 'Gentle Repose, phb 245', 'Gust of Wind, phb 248', 'Hold Person, phb 251', 'Invisibility, phb 254', 'Knock, phb 254', 'Lesser Restoration, phb 255', 'Levitate, phb 255', 'Locate Object, phb 256', 'Magic Mouth, phb 257', 'Magic Weapon, phb 257', 'Maximilian’s Earthen Grasp, xge 161', 'Melf’s Acid Arrow, phb 259', 'Mind Spike, xge 162', 'Mirror Image, phb 260', 'Misty Step, phb 260', 'Nystul’s Magic Aura, phb 263', 'Phantasmal Force, phb 264', 'Prayer of Healing, phb 267', 'Protection from Poison, phb 270', 'Pyrotechnics, xge 163', 'Ray of Enfeeblement, phb 271', 'Rope Trick, phb 272', 'Scorching Ray, phb 273', 'See Invisibility, phb 274', 'Shadow Blade, xge 164', 'Shatter, phb 275', 'Silence, phb 275', 'Skywrite, xge 165', 'Snilloc’s Snowball Swarm, xge 165', 'Spider Climb, phb 277', 'Spiritual Weapon, phb 278', 'Suggestion, phb 279', 'Warding Bond, phb 287', 'Warding Wind, xge 170', 'Web, phb 287', 'Zone of Truth, phb 289'], ['Animate Dead, phb 212', 'Beacon of Hope, phb 217', 'Bestow Curse, phb 218', 'Blink, phb 219', 'Catnap, xge 151', 'Clairvoyance, phb 222', 'Counterspell, phb 228', 'Create Food and Water, phb 229', 'Daylight, phb 230', 'Dispel Magic, phb 234', 'Enemies Abound, xge 155', 'Erupting Earth, xge 155', 'Fear, phb 239', 'Feign Death, phb 240', 'Fireball, phb 241', 'Flame Arrows, xge 156', 'Fly, phb 243', 'Gaseous Form, phb 244', 'Glyph of Warding, phb 245', 'Haste, phb 250', 'Hypnotic Pattern, phb 252', 'Leomund’s Tiny Hut, phb 255', 'Life Transference, xge 160', 'Lightning Bolt, phb 255', 'Magic Circle, phb 256', 'Major Image, phb 258', 'Mass Healing Word, phb 258', 'Meld into Stone, phb 259', 'Melf’s Minute Meteors, xge 161', 'Nondetection, phb 263', 'Phantom Steed, phb 265', 'Protection from Energy, phb 270', 'Remove Curse, phb 271', 'Revivify, phb 272', 'Sending, phb 274', 'Sleet Storm, phb 276', 'Slow, phb 277', 'Speak with Dead, phb 277', 'Spirit Guardians, phb 278', 'Stinking Cloud, phb 278', 'Summon Lesser Demons, xge 167', 'Thunder Step, xge 168', 'Tidal Wave, xge 168', 'Tiny Servant, xge 168', 'Tongues, phb 283', 'Vampiric Touch, phb 285', 'Wall of Sand, xge 170', 'Wall of Water, xge 170', 'Water Breathing, phb 287', 'Water Walk, phb 287'], ['Arcane Eye, phb 214', 'Banishment, phb 217', 'Blight, phb 219', 'Charm Monster, xge 151', 'Confusion, phb 224', 'Conjure Minor Elementals, phb 226', 'Control Water, phb 227', 'Death Ward, phb 230', 'Dimension Door, phb 233', 'Divination, phb 234', 'Elemental Bane, xge 155', 'Evard’s Black Tentacles, phb 238', 'Fabricate, phb 239', 'Fire Shield, phb 242', 'Freedom of Movement, phb 244', 'Greater Invisibility, phb 246', 'Guardian of Faith, phb 246', 'Hallucinatory Terrain, phb 249', 'Ice Storm, phb 252', 'Leomund’s Secret Chest, phb 254', 'Locate Creature, phb 256', 'Mordenkainen’s Faithful Hound, phb 261', 'Mordenkainen’s Private Sanctum, phb 262', 'Otiluke’s Resilient Sphere, phb 264', 'Phantasmal Killer, phb 265', 'Polymorph, phb 266', 'Sickening Radiance, xge 164', 'Stone Shape, phb 278', 'Stoneskin, phb 278', 'Storm Sphere, xge 166', 'Summon Greater Demon, xge 166', 'Vitriolic Sphere, xge 170', 'Wall of Fire, phb 285', 'Watery Sphere, xge 170'], ['Animate Objects, phb 213', 'Bigby’s Hand, phb 218', 'Cloudkill, phb 222', 'Commune, phb 223', 'Cone of Cold, phb 224', 'Conjure Elemental, phb 225', 'Contact Other Plane, phb 226', 'Contagion, phb 227', 'Creation, phb 229', 'Danse Macabre, xge 153', 'Dawn, xge 153', 'Dispel Evil and Good, phb 233', 'Dominate Person, phb 235', 'Dream, phb 236', 'Enervation, xge 155', 'Far Step, xge 155', 'Flame Strike, phb 242', 'Geas, phb 244', 'Greater Restoration, phb 246', 'Hallow, phb 249', 'Hold Monster, phb 251', 'Holy Weapon, xge 157', 'Immolation, xge 158', 'Infernal Calling, xge 158', 'Insect Plague, phb 254', 'Legend Lore, phb 254', 'Mass Cure Wounds, phb 258', 'Mislead, phb 260', 'Modify Memory, phb 261', 'Negative Energy Flood, xge 163', 'Passwall, phb 264', 'Planar Binding, phb 265', 'Raise Dead, phb 270', 'Rary’s Telepathic Bond, phb 270', 'Scrying, phb 273', 'Seeming, phb 274', 'Skill Empowerment, xge 165', 'Steel Wind Strike, xge 166', 'Synaptic Static, xge 167', 'Telekinesis, phb 280', 'Teleportation Circle, phb 282', 'Transmute Rock, xge 169', 'Wall of Force, phb 285', 'Wall of Light, xge 170', 'Wall of Stone, phb 287'], ['Arcane Gate, phb 214', 'Blade Barrier, phb 218', 'Chain Lightning, phb 221', 'Circle of Death, phb 221', 'Contingency, phb 227', 'Create Homunculus, xge 152', 'Create Undead, phb 229', 'Disintegrate, phb 233', 'Drawmij’s Instant Summons, phb 235', 'Eyebite, phb 238', 'Find the Path, phb 240', 'Flesh to Stone, phb 243', 'Forbiddance, phb 243', 'Globe of Invulnerability, phb 245', 'Guards and Wards, phb 248', 'Harm, phb 249', 'Heal, phb 250', 'Heroes’ Feast, phb 250', 'Investiture of Flame, xge 159', 'Investiture of Ice, xge 159', 'Investiture of Stone, xge 159', 'Investiture of Wind, xge 160', 'Magic Jar, phb 257', 'Mass Suggestion, phb 258', 'Mental Prison, xge 161', 'Move Earth, phb 263', 'Otiluke’s Freezing Sphere, phb 263', 'Otto’s Irresistible Dance, phb 264', 'Planar Ally, phb 265', 'Programmed Illusion, phb 269', 'Scatter, xge 164', 'Soul Cage, xge 165', 'Sunbeam, phb 279', 'Tenser’s Transformation, xge 168', 'True Seeing, phb 284', 'Wall of Ice, phb 285', 'Word of Recall, phb 289'], ['Conjure Celestial, phb 225', 'Crown of Stars, xge 152', 'Delayed Blast Fireball, phb 230', 'Divine Word, phb 234', 'Etherealness, phb 238', 'Finger of Death, phb 241', 'Fire Storm, phb 242', 'Forcecage, phb 243', 'Mirage Arcane, phb 260', 'Mordenkainen’s Magnificent Mansion, phb 261', 'Mordenkainen’s Sword, phb 262', 'Plane Shift, phb 266', 'Power Word Pain, xge 163', 'Prismatic Spray, phb 267', 'Project Image, phb 270', 'Regenerate, phb 271', 'Resurrection, phb 272', 'Reverse Gravity, phb 272', 'Sequester, phb 274', 'Simulacrum, phb 276', 'Symbol, phb 280', 'Teleport, phb 281', 'Temple of the Gods, xge 167', 'Whirlwind, xge 171'], ['Abi-Dalzim’s Horrid Wilting, xge 150', 'Antimagic Field, phb 213', 'Antipathy/Sympathy, phb 214', 'Clone, phb 222', 'Control Weather, phb 228', 'Demiplane, phb 231', 'Dominate Monster, phb 235', 'Earthquake, phb 236', 'Feeblemind, phb 239', 'Holy Aura, phb 251', 'Illusory Dragon, xge 157', 'Incendiary Cloud, phb 253', 'Maddening Darkness, xge 160', 'Maze, phb 258', 'Mighty Fortress, xge 161', 'Mind Blank, phb 259', 'Power Word Stun, phb 267', 'Sunburst, phb 279', 'Telepathy, phb 281'], ['Astral Projection, phb 215', 'Foresight, phb 244', 'Gate, phb 244', 'Imprisonment, phb 252', 'Invulnerability, xge 160', 'Mass Heal, phb 258', 'Mass Polymorph, xge 160', 'Meteor Swarm, phb 259', 'Power Word Kill, phb 266', 'Prismatic Wall, phb 267', 'Psychic Scream, xge 163', 'Shapechange, phb 274', 'Time Stop, phb 283', 'True Polymorph, phb 283', 'True Resurrection, phb 284', 'Weird, phb 288', 'Wish, phb 288']];
var gems = {gp10: ['Azurite (opaque mottled deep blue)', 'Banded agate (translucent striped brown, blue, white, or red)', 'Blue quartz (transparent pale blue)', 'Eye agate (translucent circles of gray, white, brown, blue, or green)', 'Hematite (opaque gray-black)', 'Lapis lazuli (opaque light and dark blue with yellow flecks)', 'Malachite (opaque striated light and dark green)', 'Moss agate (translucent pink or yellow-white with mossy gray or green markings)', 'Obsidian (opaque black)', 'Rhodochrosite (opaque light pink)', 'Tiger eye (translucent brown with golden center)', 'Turquoise (opaque light blue-green)'], gp25: ['Silver ewer', 'Carved bone statuette', 'Small gold bracelet', 'Cloth-of-gold vestments', 'Black velvet mask stitched with silver thread', 'Copper chalice with silver filigree', 'Pair of engraved bone dice', 'Small mirror set in a painted wooden frame', 'Embroidered silk handkerchief', 'Gold locket with a painted portrait inside'], gp50: ['Bloodstone (opaque dark gray with red flecks)', 'Carnelian (opaque orange to red-brown)', 'Chalcedony (opaque white)', 'Chrysoprase (translucent green)', 'Citrine (transparent pale yellow-brown)', 'Jasper (opaque blue or brown)', 'Moonstone (translucent white with pale blue glow)', 'Onyx (opaque bands of black and white, or pure black or white)', 'Quartz (transparent white, smoky gray, or yellow)', 'Sardonyx (opaque bands of red and white)', 'Star rose quartz (translucent rosy stone with white star-shaped center)'], gp100: ['Amber (transparent watery gold to rich gold)', 'Amethyst (transparent deep purple)', 'Chrysoberyl (transparent yellow-green to pale green)', 'Coral (opaque crimson)', 'Garnet (transparent red, brown-green, or violet)', 'Jade (translucent light green, deep green, or white)', 'Jet (opaque deep black)', 'Pearl (opaque lustrous white, yellow, or pink)', 'Spinel (transparent red-brown or deep green)', 'Tourmaline (transparent pale green, brown, or red)'], gp250: ['Gold ring set with bloodstones', 'Carved ivory statuette', 'Large gold bracelet', 'Silver necklace with a gemstone pendant', 'Bronze crown', 'Silk robe with gold embroidery', 'Large well-made tapestry', 'Brass mug with jade inlay', 'Box of turquoise animal figurines', 'Gold bird cage with electrum filigree'], gp500: ['Alexandrite (transparent dark green)', 'Aquamarine (transparent pale blue-green)', 'Black pearl (opaque pure black)', 'Blue spinel (transparent deep blue)', 'Peridot (transparent rich olive green)', 'Topaz (transparent golden yellow)'], gp750: ['Silver chalice set with moonstones', 'Silver-plated steel longsword with jet set in hilt', 'Carved harp of exotic wood with ivory inlay and moonstone gems', 'Small gold idol', 'Gold dragon comb set with red garnets as eyes', 'Bottle stopper cork embossed with gold leaf and set with amethysts', 'Ceremonial electrum dagger with a black pearl in the pommel', 'Silver and gold brooch', 'Obsidian (opaque black) statuette with gold fittings and inlay', 'Painted gold war mask'], gp1000: ['Black opal (translucent dark green with black mottling and golden flecks)', 'Blue sapphire (transparent blue-white to medium blue)', 'Emerald (transparent deep bright green)', 'Fire opal (translucent fiery red)', 'Opal (translucent pale blue with green and golden mottling)', 'Star ruby (translucent ruby with white star-shaped center)', 'Star sapphire (translucent blue sapphire with white star-shaped center)', 'Yellow sapphire (transparent fiery yellow or yellowgreen)'], gp2500: ['Fine gold chain set with a fire opal', 'Old masterpiece painting', 'Embroidered silk and velvet mantle set with numerous moonstones', 'Platinum bracelet set with a sapphire', 'Embroidered glove set with jewel chips', 'Jeweled anklet', 'Gold music box', 'Gold circlet set with four aquamarines', 'Eye patch with a mock eye set in blue sapphire and moonstone', 'A necklace string of small pink pearls'], gp5000: ['Black sapphire (translucent lustrous black with glowing highlights)', 'Diamond (transparent blue-white, canary, pink, brown, or blue)', 'Jacinth (transparent fiery orange)', 'Ruby (transparent clear red to deep crimson)'], gp7500: ['Jeweled gold crown', 'Jeweled platinum ring', 'Small gold statuette set with rubies', 'Gold cup set with emeralds', 'Gold jewelry box with platinum filigree', 'Painted gold child’s sarcophagus', 'Jade game board with solid gold playing pieces', 'Bejeweled ivory drinking horn with gold filigree']};
var magicItems=[[{roll: 8, item: 'Bead of Nourishment (x136)'},
		 {roll: 16, item: 'Bead of Refreshment (x136)'},
		 {roll: 21, item: 'Candle of the Deep (x136)'},
		 {roll: 29, item: 'Horn of Silent Alarm (x137)'},
		 {roll: 34, item: 'Instrument of Scribing (x138)'},
		 {roll: 41, item: 'Oil of Slipperiness (p184)'},
		 {roll: 50, item: 'Potion of Animal Friendship (p187)'},
		 {roll: 71, item: 'Potion of Healing (p187)'},
		 {roll: 86, item: 'Potion of Heroism (p188)'},
		 {roll: 97, item: Array.from(spells[0], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 100, item: 'Veteran’s Cane (x139)'}],
		[{roll: 15, item: 'Ioun Stone (Sustenance) (p177)'},
		 {roll: 45, item: 'Mystery Key (x138)'},
		 {roll: 100, item: Array.from(spells[1], x => 'Spell Scroll (' + x + ') (p200)')}],
		[{roll: 2, item: 'Alchemy Jug (p150)'},
		 {roll: 4, item: Array.from(['Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint'], x => x + ' of Gleaming (x136)')},
		 {roll: 5, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint'], x => 'Cast-Off ' + x + ' (x136)')},
		 {roll: 7, item: 'Charlatan’s Die (x136)'},
		 {roll: 9, item: 'Cloak of Billowing (x136)'},
		 {roll: 12, item: 'Cloak of Many Fashions (x136)'},
		 {roll: 15, item: 'Clockwork Amulet (x137)'},
		 {roll: 18, item: 'Clothes of Mending (x137)'},
		 {roll: 19, item: 'Dark Shard Amulet (x137)'},
		 {roll: 20, item: 'Dread Helm (x137)'},
		 {roll: 27, item: 'Driftglobe (p166)'},
		 {roll: 30, item: 'Dust of Dryness (p166)'},
		 {roll: 31, item: 'Ear Horn of Hearing (x137)'},
		 {roll: 32, item: 'Elixir of Health (p168)'},
		 {roll: 36, item: 'Enduring Spellbook (x137)'},
		 {roll: 37, item: 'Ersatz Eye (x137)'},
		 {roll: 39, item: 'Eyes of Charming (p168)'},
		 {roll: 40, item: 'Hat of Vermin (x137)'},
		 {roll: 43, item: 'Hat of Wizardry (x137)'},
		 {roll: 45, item: 'Heward’s Handy Spice Pouch (x137)'},
		 {roll: 46, item: 'Instrument of Illusions (x137)'},
		 {roll: 47, item: 'Lock of Trickery (x138)'},
		 {roll: 50, item: 'Orb of Direction (x138)'},
		 {roll: 51, item: 'Pipe of Smoke Monsters (x138)'},
		 {roll: 52, item: 'Pole of Angling (x138)'},
		 {roll: 54, item: 'Pole of Collapsing (x138)'},
		 {roll: 55, item: 'Pot of Awakening (x138)'},
		 {roll: 58, item: 'Potion of Climbing (p187)'},
		 {roll: 59, item: 'Potion of Diminution (p187)'},
		 {roll: 62, item: 'Potion of Fire Breath (p187)'},
		 {roll: 70, item: 'Potion of Greater Healing (p187)'},
		 {roll: 71, item: 'Potion of Growth (p187)'},
		 {roll: 74, item: 'Potion of Invisibility (p188)'},
		 {roll: 75, item: 'Potion of Mind Reading (p188)'},
		 {roll: 78, item: 'Potion of Vitality (p188)'},
		 {roll: 79, item: 'Quall’s Feather Token (Whip) (p189)'},
		 {roll: 80, item: 'Ring of Animal Influence (p189)'},
		 {roll: 81, item: 'Rope of Mending (x138)'},
		 {roll: 82, item: 'Shield of Expression (x139)'},
		 {roll: 83, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint'], x => 'Smoldering ' + x + ' (x136)')},
		 {roll: 86, item: Array.from(spells[2], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 87, item: 'Staff of Adornment (x139)'},
		 {roll: 88, item: 'Staff of Birdcalls (x139)'},
		 {roll: 89, item: 'Staff of Flowers (x139)'},
		 {roll: 91, item: 'Tankard of Sobriety (x139)'},
		 {roll: 92, item: 'Wand of Conducting (x140)'},
		 {roll: 97, item: 'Wand of Magic Detection (p211)'},
		 {roll: 98, item: 'Wand of Pyrotechnics (x140)'},
		 {roll: 99, item: 'Wand of Scowls (x140)'},
		 {roll: 100, item: 'Wand of Smiles (x140)'}],
		[{roll: 5, item: Array.from(ammunition, x => x + ' +1 (p150)')},
		 {roll: 8, item: 'Circlet of Blasting (p158)'},
		 {roll: 10, item: 'Figurine of a Wondrous Power (Silver Raven) (p170)'},
		 {roll: 12, item: 'Iron Bands of Bilarro (p177)'},
		 {roll: 14, item: 'Javelin of Lightning (p178)'},
		 {roll: 19, item: 'Keoghtom’s Ointment (p179)'},
		 {roll: 27, item: Array.from(['Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint'], x => 'Mithral ' + x + ' (p182)')},
		 {roll: 30, item: 'Perfume of Bewitching (x138)'},
		 {roll: 32, item: 'Periapt of Wound Closure (p184)'},
		 {roll: 34, item: 'Potion of Clairvoyance (p187)'},
		 {roll: 39, item: 'Potion of Flying (p187)'},
		 {roll: 44, item: 'Potion of Gaseous Form (p187)'},
		 {roll: 48, item: 'Potion of Giant Strength (Hill) (p187)'},
		 {roll: 54, item: 'Potion of Resistance (p188)'},
		 {roll: 58, item: 'Potion of Speed (p188)'},
		 {roll: 61, item: 'Potion of Water Breathing (p188)'},
		 {roll: 63, item: 'Ruby of the War Mage (x138)'},
		 {roll: 72, item: 'Scroll of Protection (p199)'},
		 {roll: 84, item: Array.from(spells[3], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 86, item: 'Universal Solvent (p209)'},
		 {roll: 94, item: 'Wand of Magic Missiles (p211)'},
		 {roll: 100, item: 'Wind Fan (p213)'}],
		[{roll: 1, item: Array.from(['Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint', 'Plate'], x => 'Adamantine ' + x + ' (p150)')},
		 {roll: 2, item: Array.from(ammunition, x => x + ' +2 (p150)')},
		 {roll: 3, item: 'Arrow of Slaying (p152)'},
		 {roll: 8, item: 'Bag of Holding (p153)'},
		 {roll: 9, item: 'Bead of Force (p154)'},
		 {roll: 10, item: 'Boots of False Tracks (x136)'},
		 {roll: 11, item: 'Boots of Striding and Springing (p156)'},
		 {roll: 14, item: 'Bracers of Defence (p156)'},
		 {roll: 16, item: 'Chime of Opening (p158)'},
		 {roll: 19, item: 'Cloak of Elvenkind (p158)'},
		 {roll: 21, item: 'Decanter of Endless Water (p161)'},
		 {roll: 22, item: 'Dust of Disappearance (p166)'},
		 {roll: 24, item: 'Elven Chain (p168)'},
		 {roll: 25, item: 'Eversmoking Bottle (p168)'},
		 {roll: 26, item: 'Eyes of Minute Seeing (p168)'},
		 {roll: 27, item: 'Eyes of the Eagle (p168)'},
		 {roll: 28, item: 'Figurine of a Wondrous Power (Bronze Griffin) (p169)'},
		 {roll: 29, item: 'Figurine of a Wondrous Power (Ebony Fly) (p169)'},
		 {roll: 30, item: 'Figurine of a Wondrous Power (Golden Lions) (p169)'},
		 {roll: 31, item: 'Figurine of a Wondrous Power (Ivory Goats) (p169)'},
		 {roll: 32, item: 'Figurine of a Wondrous Power (Marble Elephant) (p170)'},
		 {roll: 33, item: 'Figurine of a Wondrous Power (Onyx Dog) (p170)'},
		 {roll: 34, item: 'Figurine of a Wondrous Power (Serpentine Owl) (p170)'},
		 {roll: 35, item: 'Gloves of Missile Snaring (p172)'},
		 {roll: 36, item: 'Gloves of Swimming and Climbing (p172)'},
		 {roll: 39, item: 'Goggles of Night (p172)'},
		 {roll: 40, item: 'Hat of Disguise (p173)'},
		 {roll: 42, item: 'Helm of Comprehending Languages (p173)'},
		 {roll: 43, item: 'Heward’s Handy Haversack (p174)'},
		 {roll: 44, item: 'Horn of Blasting (p174)'},
		 {roll: 45, item: 'Horn of Valhalla (Silver) (p175)'},
		 {roll: 46, item: 'Horseshoes of a Zephyr (p175)'},
		 {roll: 47, item: 'Instrument of the Bard (Mac-Fuirmidh Cittern) (p176)'},
		 {roll: 48, item: 'Ioun Stone (Awareness) (p177)'},
		 {roll: 49, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint', 'Plate'], x => 'Mariner’s ' + x + ' (p181)')},
		 {roll: 50, item: 'Medallion of Thoughts (p181)'},
		 {roll: 52, item: 'Moon-Touched Sword (x138)'},
		 {roll: 53, item: 'Nolzur’s Marvellous Pigments (p183)'},
		 {roll: 54, item: 'Oathbow (p183)'},
		 {roll: 55, item: 'Pearl of Power (p184)'},
		 {roll: 56, item: 'Philter of Love (p184)'},
		 {roll: 57, item: 'Potion of Giant Strength (Frost) (p187)'},
		 {roll: 58, item: 'Potion of Giant Strength (Stone) (p187)'},
		 {roll: 59, item: 'Potion of Invulnerability (p188)'},
		 {roll: 62, item: 'Potion of Superior Healing (p187)'},
		 {roll: 63, item: 'Quall’s Feather Token (Swan Boat) (p189)'},
		 {roll: 64, item: 'Quall’s Feather Token (Tree) (p189)'},
		 {roll: 65, item: 'Quiver of Ehlonna (p189)'},
		 {roll: 67, item: 'Ring of Feather Falling (p191)'},
		 {roll: 68, item: 'Ring of Jumping (p191)'},
		 {roll: 69, item: 'Ring of Shooting Stars (p192)'},
		 {roll: 70, item: 'Ring of Swimming (p193)'},
		 {roll: 71, item: 'Ring of the Ram (p193)'},
		 {roll: 72, item: 'Ring of Water Walking (p193)'},
		 {roll: 73, item: 'Ring of X-Ray Vision (p193)'},
		 {roll: 74, item: 'Robe of Scintillating Colours (p194)'},
		 {roll: 75, item: 'Robe of Useful Items (p195)'},
		 {roll: 76, item: 'Rod of the Pact Keeper +1 (p197)'},
		 {roll: 78, item: 'Rope of Climbing (p197)'},
		 {roll: 81, item: 'Sending Stones (p199)'},
		 {roll: 85, item: Array.from(spells[4], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 86, item: 'Staff of Charming (p201)'},
		 {roll: 87, item: 'Talking Doll (x139)'},
		 {roll: 88, item: 'Unbreakable Arrow (x139)'},
		 {roll: 89, item: Array.from(weapons, x => 'Vicious ' + x + ' (p209)')},
		 {roll: 90, item: Array.from(ammunition, x => 'Walloping ' + x + ' (x139)')},
		 {roll: 91, item: 'Wand of Secrets (p211)'},
		 {roll: 93, item: 'Wand of the War Mage +1 (p212)'},
		 {roll: 100, item: Array.from(weapons, x => x + ' +1 (p213)')}],
		[{roll: 1, item: Array.from(ammunition, x => x + ' +3 (p150)')},
		 {roll: 4, item: 'Amulet of Health (p150)'},
		 {roll: 6, item: 'Amulet of Proof Against Detection and Location (p150)'},
		 {roll: 7, item: 'Animated Shield (p151)'},
		 {roll: 10, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint', 'Plate'], x => x + ' +1 (p152)')},
		 {roll: 11, item: 'Bag of Tricks (p154)'},
		 {roll: 13, item: 'Boots of Speed (p155)'},
		 {roll: 15, item: 'Bracers of Archery (p156)'},
		 {roll: 16, item: 'Cape of the Mountebank (p157)'},
		 {roll: 17, item: 'Dagger of Venom (p161)'},
		 {roll: 19, item: 'Deck of Illusions (p161)'},
		 {roll: 21, item: 'Dragon Slayer (p166)'},
		 {roll: 22, item: 'Dust of Sneezing and Choking (p166)'},
		 {roll: 25, item: 'Elemental Gem (p167)'},
		 {roll: 26, item: 'Figurine of a Wondrous Power (Obsidian Steed) (p170)'},
		 {roll: 29, item: 'Flame Tongue (p170)'},
		 {roll: 32, item: 'Folding Boat (p170)'},
		 {roll: 36, item: 'Gauntlets of Ogre Power (p171)'},
		 {roll: 37, item: 'Gem of Seeing (p172)'},
		 {roll: 39, item: 'Giant Slayer (p172)'},
		 {roll: 40, item: 'Gloves of Thievery (p172)'},
		 {roll: 43, item: 'Headband of Intellect (p173)'},
		 {roll: 44, item: 'Horn of Valhalla (Brass) (p175)'},
		 {roll: 45, item: 'Instrument of the Bard (Fochlucan Bandore) (p176)'},
		 {roll: 46, item: 'Ioun Stone (Absorption) (p177)'},
		 {roll: 47, item: 'Ioun Stone (Protection) (p177)'},
		 {roll: 48, item: 'Ioun Stone (Reserve) (p177)'},
		 {roll: 49, item: 'Mace of Smiting (p179)'},
		 {roll: 50, item: 'Mace of Terror (p180)'},
		 {roll: 52, item: 'Necklace of Fireballs (p182)'},
		 {roll: 54, item: 'Oil of Sharpness (p184)'},
		 {roll: 55, item: 'Pipes of Haunting (p185)'},
		 {roll: 56, item: 'Pipes of the Sewers (p185)'},
		 {roll: 57, item: 'Potion of Giant Strength (Fire) (p187)'},
		 {roll: 59, item: 'Potion of Longevity (p188)'},
		 {roll: 63, item: 'Potion of Supreme Healing (p187)'},
		 {roll: 64, item: 'Quall’s Feather Token (Bird) (p188)'},
		 {roll: 65, item: 'Rod of the Pact Keeper +2 (p197)'},
		 {roll: 66, item: 'Sentinel Shield (p199)'},
		 {roll: 69, item: 'Shield +1 (p200)'},
		 {roll: 74, item: Array.from(spells[5], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 79, item: Array.from(spells[6], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 80, item: 'Staff of Withering (p205)'},
		 {roll: 81, item: 'Sword of Life Stealing (p206)'},
		 {roll: 83, item: 'Wand of Enemy Detection (p210)'},
		 {roll: 85, item: 'Wand of the War Mage +2 (p212)'},
		 {roll: 86, item: 'Wand of Web (p212)'},
		 {roll: 96, item: Array.from(weapons, x => x + ' +2 (p213)')},
		 {roll: 100, item: 'Winged Boots (p214)'}],
		[{roll: 1, item: 'Belt of Dwarvenkind (p155)'},
		 {roll: 3, item: 'Belt of Hill Giant Strength (p155)'},
		 {roll: 5, item: 'Boots of Elvenkind (p155)'},
		 {roll: 7, item: 'Boots of Levitation (p155)'},
		 {roll: 8, item: 'Bowl of Commanding Water Elementals (p156)'},
		 {roll: 9, item: 'Brazier of Commanding Fire Elementals (p156)'},
		 {roll: 10, item: 'Censer of Controlling Air Elementals (p158)'},
		 {roll: 12, item: 'Cloak of Displacement (p158)'},
		 {roll: 14, item: 'Cloak of Invisibility (p158)'},
		 {roll: 15, item: 'Dancing Sword (p161)'},
		 {roll: 17, item: 'Dimensional Shackles (p165)'},
		 {roll: 18, item: 'Efreeti Bottle (p167)'},
		 {roll: 19, item: 'Gem of Brightness (p171)'},
		 {roll: 20, item: 'Glamoured Studded Leather (p172)'},
		 {roll: 21, item: 'Helm of Telepathy (p174)'},
		 {roll: 22, item: 'Horn of Valhalla (Bronze) (p175)'},
		 {roll: 23, item: 'Horseshoes of Speed (p175)'},
		 {roll: 25, item: 'Immovable Rod (p175)'},
		 {roll: 26, item: 'Instrument of the Bard (Canaith Mandolin) (p176)'},
		 {roll: 27, item: 'Instrument of the Bard (Doss Lute) (p176)'},
		 {roll: 28, item: 'Ioun Stone (Agility) (p177)'},
		 {roll: 29, item: 'Ioun Stone (Fortitude) (p177)'},
		 {roll: 30, item: 'Ioun Stone (Greater Absorption) (p177)'},
		 {roll: 31, item: 'Ioun Stone (Insight) (p177)'},
		 {roll: 32, item: 'Ioun Stone (Intellect) (p177)'},
		 {roll: 33, item: 'Ioun Stone (Leadership) (p177)'},
		 {roll: 34, item: 'Ioun Stone (Regeneration) (p177)'},
		 {roll: 35, item: 'Ioun Stone (Strength) (p177)'},
		 {roll: 37, item: 'Lantern of Revealing (p179)'},
		 {roll: 38, item: 'Mace of Disruption (p179)'},
		 {roll: 39, item: 'Manual of Golems (p180)'},
		 {roll: 41, item: 'Oil of Etherealness (p183)'},
		 {roll: 42, item: 'Periapt of Health (p184)'},
		 {roll: 46, item: 'Portable Hole (p185)'},
		 {roll: 47, item: 'Potion of Giant Strength (Cloud) (p187)'},
		 {roll: 48, item: 'Ring of Djinni Summoning (p190)'},
		 {roll: 50, item: 'Ring of Free Action (p191)'},
		 {roll: 52, item: 'Ring of Invisibility (p191)'},
		 {roll: 53, item: 'Robe of Eyes (p193)'},
		 {roll: 54, item: 'Rod of Rulership (p197)'},
		 {roll: 55, item: 'Rod of Security (p197)'},
		 {roll: 56, item: 'Rod of the Pact Keeper +3 (p197)'},
		 {roll: 59, item: 'Rope of Entanglement (p197)'},
		 {roll: 60, item: 'Saddle of the Cavalier (p199)'},
		 {roll: 63, item: 'Slippers of Spider Climbing (p200)'},
		 {roll: 64, item: 'Sovereign Glue (p200)'},
		 {roll: 70, item: Array.from(spells[7], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 72, item: 'Staff of Healing (p202)'},
		 {roll: 73, item: 'Staff of Swarming Insects (p203)'},
		 {roll: 74, item: 'Staff of the Adder (p203)'},
		 {roll: 75, item: 'Staff of the Python (p204)'},
		 {roll: 76, item: 'Stone of Controlling Earth Elementals (p205)'},
		 {roll: 78, item: 'Stone of Good Luck (Luckstone) (p205)'},
		 {roll: 80, item: 'Sun Blade (p205)'},
		 {roll: 81, item: 'Sword of Sharpness (p206)'},
		 {roll: 82, item: 'Trident of Fish Command (p209)'},
		 {roll: 83, item: 'Wand of Binding (p209)'},
		 {roll: 84, item: 'Wand of Fear (p210)'},
		 {roll: 87, item: 'Wand of Fireballs (p210)'},
		 {roll: 90, item: 'Wand of Lightning Bolts (p211)'},
		 {roll: 91, item: 'Wand of the War Mage +3 (p212)'},
		 {roll: 92, item: 'Wand of Wonder (p212)'},
		 {roll: 98, item: Array.from(weapons, x => x + ' +3 (p213)')},
		 {roll: 99, item: Array.from(weapons, x => x + ' of Warning (p213)')},
		 {roll: 100, item: 'Wings of Flying (p214)'}],
		[{roll: 4, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint', 'Plate'], x => x + 'of Resistance (p152)')},
		 {roll: 6, item: 'Belt of Frost Giant Strength (p155)'},
		 {roll: 8, item: 'Belt of Stone Giant Strength (p155)'},
		 {roll: 9, item: 'Boots of the Winterlands (p156)'},
		 {roll: 12, item: 'Brooch of Shielding (p156)'},
		 {roll: 16, item: 'Broom of Flying (p156)'},
		 {roll: 17, item: 'Candle of Invocation (p157)'},
		 {roll: 20, item: 'Cap of Water Breathing (p157)'},
		 {roll: 25, item: 'Carpet of Flying (p157)'},
		 {roll: 26, item: 'Cloak of Arachnida (p158)'},
		 {roll: 29, item: 'Cloak of Protection (p159)'},
		 {roll: 30, item: 'Cloak of the Bat (p159)'},
		 {roll: 31, item: 'Cloak of the Manta Ray (p159)'},
		 {roll: 32, item: 'Cube of Force (p159)'},
		 {roll: 39, item: 'Dragon Scale Mail (p165)'},
		 {roll: 40, item: 'Dwarven Thrower (p167)'},
		 {roll: 43, item: 'Frost Brand (p171)'},
		 {roll: 44, item: 'Horn of Valhalla (Iron) (p175)'},
		 {roll: 45, item: 'Instrument of the Bard (Cli Lyre) (p176)'},
		 {roll: 47, item: 'Mantle of Spell Resistance (p180)'},
		 {roll: 48, item: 'Necklace of Prayer Beads (p182)'},
		 {roll: 49, item: 'Plate Armor of Etherealness (p185)'},
		 {roll: 50, item: 'Potion of Giant Strength (Storm) (p187)'},
		 {roll: 51, item: 'Quall’s Feather Token (Anchor) (p188)'},
		 {roll: 52, item: 'Quall’s Feather Token (Fan) (p189)'},
		 {roll: 54, item: 'Ring of Evasion (p191)'},
		 {roll: 55, item: 'Ring of Mind Shielding (p191)'},
		 {roll: 58, item: 'Ring of Protection (p191)'},
		 {roll: 60, item: 'Ring of Regeneration (p191)'},
		 {roll: 63, item: 'Ring of Resistance (p192)'},
		 {roll: 65, item: 'Ring of Spell Storing (p192)'},
		 {roll: 67, item: 'Ring of Spell Turning (p193)'},
		 {roll: 68, item: 'Ring of Warmth (p193)'},
		 {roll: 69, item: 'Rod of Absorption (p195)'},
		 {roll: 71, item: 'Rod of Resurrection (p197)'},
		 {roll: 72, item: 'Scimitar of Speed (p199)'},
		 {roll: 79, item: Array.from(spells[8], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 85, item: Array.from(spells[9], x => 'Spell Scroll (' + x + ') (p200)')},
		 {roll: 86, item: 'Spellguard Shield (p201)'},
		 {roll: 88, item: 'Staff of Fire (p201)'},
		 {roll: 90, item: 'Staff of Frost (p202)'},
		 {roll: 92, item: 'Staff of Striking (p203)'},
		 {roll: 93, item: 'Staff of Thunder and Lightning (p204)'},
		 {roll: 95, item: 'Sword of Wounding (p207)'},
		 {roll: 96, item: 'Tentacle Rod (p208)'},
		 {roll: 97, item: 'Wand of Paralysis (p211)'},
		 {roll: 99, item: 'Wand of Polymorph (p211)'},
		 {roll: 100, item: 'Well of Many Worlds (p213)'}],
		[{roll: 2, item: 'Apparatus of Kwalish (p151)'},
		 {roll: 5, item: Array.from(['Padded', 'Leather', 'Studded leather', 'Hide', 'Chain shirt', 'Scale mail', 'Breastplate', 'Half plate', 'Ring mail', 'Chain mail', 'Splint', 'Plate'], x => x + ' +2 (p152)')},
		 {roll: 8, item: 'Armor of Invulnerability (p152)'},
		 {roll: 11, item: 'Arrow Catching Shield (p152)'},
		 {roll: 16, item: 'Belt of Fire Giant Strength (p155)'},
		 {roll: 21, item: 'Crystal Ball (p159)'},
		 {roll: 22, item: 'Daern’s Instant Fortress (p160)'},
		 {roll: 24, item: 'Defender (p164)'},
		 {roll: 28, item: 'Dwarven Plate (p167)'},
		 {roll: 31, item: 'Efreeti Chain (p167)'},
		 {roll: 35, item: 'Holy Avenger (p174)'},
		 {roll: 39, item: 'Manual of Bodily Health (p180)'},
		 {roll: 43, item: 'Manual of Gainful Exercise (p180)'},
		 {roll: 47, item: 'Manual of Quickness of Action (p181)'},
		 {roll: 52, item: 'Necklace of Adaptation (p182)'},
		 {roll: 55, item: 'Nine Lives Stealer (p183)'},
		 {roll: 58, item: 'Periapt of Proof Against Poison (p184)'},
		 {roll: 62, item: 'Ring of Telekinesis (p193)'},
		 {roll: 64, item: 'Ring of Three Wishes (p193)'},
		 {roll: 67, item: 'Rod of Alertness (p196)'},
		 {roll: 70, item: 'Rod of Lordly Might (p196)'},
		 {roll: 73, item: 'Scarab of Protection (p199)'},
		 {roll: 76, item: 'Shield +2 (p200)'},
		 {roll: 80, item: 'Staff of Power (p202)'},
		 {roll: 84, item: 'Staff of the Woodlands (p204)'},
		 {roll: 87, item: 'Sword of Answering (p206)'},
		 {roll: 91, item: 'Tome of Clear Thought (p208)'},
		 {roll: 95, item: 'Tome of Leadership and Influence (p208)'},
		 {roll: 96, item: 'Tome of the Stilled Tongue (p208)'},
		 {roll: 100, item: 'Tome of Understanding (p209)'}],
		[{roll: 12, item: 'Belt of Cloud Giant Strength (p155)'},
		 {roll: 22, item: 'Helm of Teleportation (p174)'},
		 {roll: 30, item: 'Ioun Stone (Mastery) (p177)'},
		 {roll: 40, item: 'Luck Blade (p179)'},
		 {roll: 47, item: 'Ring of Elemental Command (Air) (p190)'},
		 {roll: 54, item: 'Ring of Elemental Command (Earth) (p190)'},
		 {roll: 61, item: 'Ring of Elemental Command (Fire) (p190)'},
		 {roll: 68, item: 'Ring of Elemental Command (Water) (p191)'},
		 {roll: 73, item: 'Robe of Stars (p194)'},
		 {roll: 81, item: 'Robe of the Archmage (p194)'},
		 {roll: 89, item: 'Staff of the Magi (p203)'},
		 {roll: 100, item: 'Vorpal Sword (p209)'}]];
function rand(l) {return Math.floor(Math.random()*l);}
Array.prototype.random = function () {return this[rand(this.length)];}
Array.prototype.d100 = function () {
  var die=rand(100);
  for (var i = 0; i < this.length; i++)
    if(this[i].roll > die) return this[i].item;}
Element.prototype.appendLi = function(text) {
  var li=document.createElement('li');
  li.appendChild(document.createTextNode("string" == typeof text ? text : text.random()));
  this.appendChild(li);}
Element.prototype.addRandomMagicItems = function(die, category) {
  if (0 == die) { return true; }
  var amount = rand(die);
  ++amount;
  for (var i = 0; i < amount; i++)
    this.appendLi(magicItems[category].d100());}
Element.prototype.addFromHoardItemTable = function (hoardItemTable) {
  var r = hoardItemTable.d100();
  this.addRandomMagicItems(r.die, r.category);
  r = hoardItemTable.d100();
  this.addRandomMagicItems(r.die, r.category);}
Element.prototype.addRandomGems = function(die, array) {
  if (0 == die) { return true; }
  var amount = rand(die) + 1;
  for (var i = 0; i < amount; i++)
    this.appendLi(array.random() + ' (p134)');}
Element.prototype.addFromGemTable = function (gemTable) {
  var r = gemTable.d100();
  for (var i = 0; i < r.dice; i++)
    this.addRandomGems(r.die, r.category);}
first.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + 6) * 100 + ' copper pieces');
first.appendLi((rand(6) + rand(6) + rand(6) + 3) * 100 + ' silver pieces');
first.appendLi((rand(6) + rand(6) + 2) * 10 + ' gold pieces');
first.addFromGemTable([{roll:  6, item: {dice: 0, die: 0, category: gems.gp10}},
		       {roll: 16, item: {dice: 2, die: 6, category: gems.gp10}},
		       {roll: 26, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 36, item: {dice: 2, die: 6, category: gems.gp50}},
		       {roll: 44, item: {dice: 2, die: 6, category: gems.gp10}},
		       {roll: 52, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 60, item: {dice: 2, die: 6, category: gems.gp50}},
		       {roll: 65, item: {dice: 2, die: 6, category: gems.gp10}},
		       {roll: 70, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 75, item: {dice: 2, die: 6, category: gems.gp50}},
		       {roll: 78, item: {dice: 2, die: 6, category: gems.gp10}},
		       {roll: 80, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 85, item: {dice: 2, die: 6, category: gems.gp50}},
		       {roll: 92, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 97, item: {dice: 2, die: 6, category: gems.gp50}},
		       {roll: 99, item: {dice: 2, die: 4, category: gems.gp25}},
		       {roll: 100, item: {dice: 2, die: 6, category: gems.gp50}}]);
first.addFromHoardItemTable([{roll: 19, item: {die: 0, category: 0}},
			     {roll: 30, item: {die: 8, category: 0}},
			     {roll: 34, item: {die: 4, category: 1}},
			     {roll: 51, item: {die: 6, category: 2}},
			     {roll: 81, item: {die: 3, category: 3}},
			     {roll: 97, item: {die: 2, category: 4}},
			     {roll: 100, item: {die: 1, category: 5}}]);
second.appendLi((rand(6) + rand(6) + 2) * 100 + ' copper pieces');
second.appendLi((rand(6) + rand(6) + 2) * 1000 + ' silver pieces');
second.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + 6) * 100 + ' gold pieces');
second.appendLi((rand(6) + rand(6) + rand(6) + 3) * 10 + ' platinum pieces');
second.addFromGemTable([{roll:  4, item: {dice: 0, die: 0, category: gems.gp25}},
			{roll: 10, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 16, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 22, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 28, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 32, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 36, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 40, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 44, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 49, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 54, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 59, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 63, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 66, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 69, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 72, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 74, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 76, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 78, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 79, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 80, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 84, item: {dice: 2, die: 4, category: gems.gp25}},
			{roll: 88, item: {dice: 3, die: 6, category: gems.gp50}},
			{roll: 91, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 94, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 96, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 98, item: {dice: 2, die: 4, category: gems.gp250}},
			{roll: 99, item: {dice: 3, die: 6, category: gems.gp100}},
			{roll: 100, item: {dice: 2, die: 4, category: gems.gp250}}]);
second.addFromHoardItemTable([{roll: 16, item: {die: 0, category: 0}},
			      {roll: 51, item: {die: 8, category: 2}},
			      {roll: 67, item: {die: 6, category: 3}},
			      {roll: 92, item: {die: 2, category: 4}},
			      {roll: 99, item: {die: 1, category: 5}},
			      {roll: 100, item: {die: 1, category: 6}}]);
third.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + 4) * 1000 + ' gold pieces');
third.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + 5) * 100 + ' platinum pieces');
third.addFromGemTable([{roll:  3, item: {dice: 0, die: 0, category: gems.gp250}},
		       {roll:  6, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll:  9, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 12, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 15, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 19, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 23, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 26, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 29, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 35, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 40, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 45, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 50, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 54, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 58, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 62, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 66, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 68, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 70, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 72, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 74, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 76, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 78, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 80, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 82, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 85, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 88, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 90, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 92, item: {dice: 3, die: 6, category: gems.gp1000}},
		       {roll: 94, item: {dice: 2, die: 4, category: gems.gp250}},
		       {roll: 96, item: {dice: 2, die: 4, category: gems.gp750}},
		       {roll: 98, item: {dice: 3, die: 6, category: gems.gp500}},
		       {roll: 100, item: {dice: 3, die: 6, category: gems.gp1000}}]);
third.addFromHoardItemTable([{roll:  6, item: {die: 0, category: 0}},
			     {roll: 31, item: {die: 10, category: 3}},
			     {roll: 50, item: {die: 6, category: 4}},
			     {roll: 65, item: {die: 4, category: 5}},
			     {roll: 90, item: {die: 3, category: 6}},
			     {roll: 98, item: {die: 1, category: 7}},
			     {roll: 100, item: {die: 1, category: 8}}]);
fourth.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + rand(6) + 12) * 1000 + ' gold pieces');
fourth.appendLi((rand(6) + rand(6) + rand(6) + rand(6) + rand(6) +rand(6) + rand(6) + rand(6) + 8) * 1000 + ' platinum pieces');
fourth.addFromGemTable([{roll:  2, item: {dice: 0, die: 0, category: gems.gp10}},
			{roll:  5, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll:  8, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 11, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 14, item: {dice: 1, die: 8, category: gems.gp5000}},
			{roll: 22, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll: 30, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 38, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 46, item: {dice: 1, die: 8, category: gems.gp5000}},
			{roll: 52, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll: 58, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 63, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 68, item: {dice: 1, die: 8, category: gems.gp5000}},
			{roll: 69, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll: 70, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 71, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 72, item: {dice: 1, die: 8, category: gems.gp5000}},
			{roll: 74, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll: 76, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 78, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 80, item: {dice: 1, die: 8, category: gems.gp5000}},
			{roll: 85, item: {dice: 3, die: 6, category: gems.gp1000}},
			{roll: 90, item: {dice: 1, die: 10, category: gems.gp2500}},
			{roll: 95, item: {dice: 1, die: 4, category: gems.gp7500}},
			{roll: 100, item: {dice: 1, die: 8, category: gems.gp5000}}]);
fourth.addFromHoardItemTable([{roll: 10, item: {die: 8, category: 5}},
			      {roll: 34, item: {die: 6, category: 6}},
			      {roll: 71, item: {die: 3, category: 7}},
			      {roll: 94, item: {die: 1, category: 8}},
			      {roll: 100, item: {die: 1, category: 9}}]);

//]]>
</script>

  </body>
</html>