When items drop
- The monster's weapon. If it fought with a real weapon (not claws or breath), the weapon is left on the floor. On the way, the code re-rolls attribute byte 15, which is the weapon's minimum skill, to a random value no higher than before. It looks as if this was meant to wear down durability (byte 16), but we confirmed in the emulator that it's the skill requirement that changes. So weapons taken from monsters are often easier to use than the same weapon bought or found.
- Your level. At level 0 no treasure items are rolled at all. At level 1 the rolls happen half the time. From level 2, always.
- Two rolls. Each monster has a treasure byte (header byte
$0B). Its high and low halves name two lists, and each half gets one roll. A roll succeeds with this chance:
So a lone monster on level 1 gives each roll 40/256 (16%), and a group of four on level 3 gives 80/256 (31%). The same chance is used for each kind of coin, food and gem the monster carries. A successful roll picks one item from that list using the odds below.
- The floor holds 16 items. Everything dropped goes into the next slot of one ring of 16 floor slots shared by the whole dungeon. Whatever was still in that slot is deleted for good. Don't leave loot lying around if you mean to come back for it.
D4E0 weapon drop · DF2E level and treasure byte · D590 chance · D09B list roll · D0F8 floor ring
Which lists each monster uses
Read from the 62 monster records on disk 2. "—" means that half of the byte is 0, so there's no roll. The maximum group size is the most of that monster that can appear at once, which also raises the drop chance. A few monsters are templates the game renames when they appear (the thief also becomes the cutthroat, brigand and master thief) and aren't listed separately.
| Monster | First roll | Second roll | Max group |
|---|---|---|---|
| acolyte | 6 · potions | 5 · apparel | 4 |
| adventurer | 1 · scrolls | 6 · potions | 1 |
| alien sentry | — | — | 1 |
| apprentice | 2 · wands | 6 · potions | 2 |
| assassin | 5 · apparel | 6 · potions | 1 |
| basilisk | Bloodstone (quest drop) | — | 1 |
| berserker | 4 · armour | 3 · weapons | 8 |
| big snake | 2 · wands | 1 · scrolls | 1 |
| devourer | a quest item (see below) | — | 1 |
| doppleganger | — | — | 1 |
| dwarf | 1 · scrolls | 3 · weapons | 7 |
| F.B.I. Agent | — | — | 2 |
| flame demon | 3 · weapons | 1 · scrolls | 4 |
| ghost | — | 2 · wands | 1 |
| ghoul | 6 · potions | 6 · potions | 7 |
| giant rat | — | — | 6 |
| giant wolf | — | — | 3 |
| gladiator | 3 · weapons | 3 · weapons | 1 |
| gnome | 1 · scrolls | 1 · scrolls | 5 |
| goblin | 6 · potions | 4 · armour | 2 |
| Goblin Lord | Goblin Ring Half (quest drop) | — | 1 |
| great bat | — | — | 8 |
| Great Naga | 2 · wands | 1 · scrolls | 1 |
| Great Wyrm | 1 · scrolls | 2 · wands | 1 |
| gremlin | 6 · potions | 6 · potions | 1 |
| guard | 3 · weapons | 4 · armour | 2 |
| harpy | 2 · wands | 4 · armour | 5 |
| Healer | — | — | 1 |
| hellhound | 2 · wands | 2 · wands | 3 |
| homunculus | 1 · scrolls | 2 · wands | 7 |
| horned devil | 2 · wands | 2 · wands | 1 |
| ice demon | 6 · potions | 1 · scrolls | 3 |
| imp | 4 · armour | 6 · potions | 1 |
| lich | 2 · wands | 2 · wands | 1 |
| mercenary | 5 · apparel | 1 · scrolls | 4 |
| mold | — | — | 1 |
| night stalker | 1 · scrolls | 1 · scrolls | 1 |
| novice | 2 · wands | 5 · apparel | 3 |
| orc | 4 · armour | 4 · armour | 3 |
| phoenix | 2 · wands | 4 · armour | 1 |
| sage | 1 · scrolls | 1 · scrolls | 1 |
| salamander | 1 · scrolls | 2 · wands | 1 |
| serpentman | 4 · armour | 4 · armour | 3 |
| skeleton | 3 · weapons | 4 · armour | 8 |
| slime | — | — | 1 |
| small dragon | 1 · scrolls | 2 · wands | 1 |
| sorceress | 1 · scrolls | 2 · wands | 1 |
| spectre | 1 · scrolls | 2 · wands | 1 |
| storm devil | 3 · weapons | 5 · apparel | 1 |
| troll | 3 · weapons | 4 · armour | 4 |
| Troll Tyrant | Troll Ring Half (quest drop) | — | 1 |
| Undead Knight | 1 · scrolls | 2 · wands | 1 |
| valkyrie | 2 · wands | 4 · armour | 1 |
| vampire | 1 · scrolls (stored as 9; the game uses the low 3 bits) | 1 · scrolls | 1 |
| warrior | 4 · armour | 5 · apparel | 1 |
| water sprite | 2 · wands | 6 · potions | 1 |
| weapon master | 3 · weapons | 5 · apparel | 1 |
| werewolf | 1 · scrolls | 6 · potions | 1 |
| whirlwind | 2 · wands | 5 · apparel | 1 |
| wizard | 1 · scrolls | 2 · wands | 1 |
| wraith | 2 · wands | 4 · armour | 3 |
| zombie | 2 · wands | 2 · wands | 5 |
monster header byte $0B; group size header byte $00
The six lists
Each list is a cumulative table: a random byte 0–255 picks the first entry whose threshold is at least the roll. The chances below are exact. We also checked them by running the game's own list code 3,000 times per list in the emulator, and every list matched within sampling noise. An item listed twice (the Gold Horn has two versions) shows its combined chance.
List 1: Scrolls, cards and tomes
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Remove Curse Scroll | 9.4% | 24 | |
| Wizard Eye Scroll | 9.4% | 24 | |
| Ace of Pentacles | 8.6% | 22 | |
| Frostblade Scroll | 6.6% | 17 | |
| Clout Scroll | 6.3% | 16 | |
| Fireblade Scroll | 6.3% | 16 | |
| High Priestess (card) | 6.3% | 16 | |
| Page of Cups (card) | 6.3% | 16 | |
| Renew Scroll | 6.3% | 16 | |
| Temperance (card) | 6.3% | 16 | |
| The Fool (card) | 3.9% | 10 | |
| The Heirophant (card) | 3.9% | 10 | |
| The Star (card) | 3.9% | 10 | |
| Ace of Wands | 3.1% | 8 | |
| Tome of Leadership | 2.7% | 7 | |
| Ace of Cups | 1.6% | 4 | |
| Death (card) | 1.6% | 4 | |
| King of Wands | 1.6% | 4 | |
| Strength (card) | 1.6% | 4 | |
| The Chariot (card) | 1.6% | 4 | |
| Tome of Knowledge | 1.6% | 4 | |
| Tome of Understanding | 1.6% | 4 |
List 2: Wands, eyes and horns
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Gold Horn | 24.6% | 63 | |
| Eye of Vulnerabilty | 9.4% | 24 | |
| Healing Wand | 9.4% | 24 | |
| Fire Wand | 6.3% | 16 | |
| Hypnotic Eye | 6.3% | 16 | |
| Light Wand | 6.3% | 16 | |
| Paralysis Wand | 6.3% | 16 | |
| Wizard's Eye | 6.3% | 16 | |
| Bronze Horn | 4.7% | 12 | |
| Silver Horn | 4.7% | 12 | |
| Cold Wand | 3.5% | 9 | |
| Amber Eye | 3.1% | 8 | |
| Emerald Eye | 3.1% | 8 | |
| Ruby Eye | 3.1% | 8 | |
| Sapphire Eye | 3.1% | 8 |
List 3: Weapons and shields
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Dirk | 15.2% | 39 | |
| Tower Shield | 12.5% | 32 | |
| Holy Hand Grenade | 9.4% | 24 | |
| Pike | 9.4% | 24 | |
| Short Sword | 9.4% | 24 | |
| Spiked Shield | 9.4% | 24 | |
| Chaos Club | 6.3% | 16 | |
| Crossbow [03] | 6.3% | 16 | |
| Ironwood Boken | 6.3% | 16 | |
| Quarrels [10] | 6.3% | 16 | |
| Iron Fan | 3.1% | 8 | |
| Crystal Shield | 2.0% | 5 | |
| Shield of Galahad | 1.6% | 4 | |
| Shield of Mordred | 1.6% | 4 | |
| Spirit Shield | 1.6% | 4 |
List 4: Armour
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Cuirbouilli Helm | 12.5% | 32 | |
| Plate Armor | 12.5% | 32 | |
| Plate Gauntlets | 12.5% | 32 | |
| Plate Helm | 12.5% | 32 | |
| Plate Leggings | 12.5% | 32 | |
| Scale armor | 12.5% | 32 | |
| Bronze Breastplate | 6.3% | 16 | |
| Bronze Bracers | 5.9% | 15 | |
| Panther Gloves | 2.0% | 5 | |
| Dragonskin Hauberk | 1.6% | 4 | |
| Golden Greaves | 1.6% | 4 | |
| Helm of Light | 1.6% | 4 | |
| Truesilver coat | 1.6% | 4 | |
| Truesilver guantlets | 1.6% | 4 | |
| Truesilver helm | 1.6% | 4 | |
| Truesilver leggings | 1.6% | 4 |
List 5: Apparel
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Cheap Robe | 18.8% | 48 | |
| Black Cotton Partlet | 9.4% | 24 | |
| Floppy Leather Hat | 9.4% | 24 | |
| Leather Jerkin | 9.4% | 24 | |
| Red Plaid Kilt | 7.8% | 20 | |
| White Linen Shirt | 6.6% | 17 | |
| Black Silk Kimono | 6.3% | 16 | |
| Black Woolen Breeches | 6.3% | 16 | |
| Gold Silk Pantaloons | 6.3% | 16 | |
| Silver Brocaded Bodice | 6.3% | 16 | |
| Blue Suede Shoes | 3.1% | 8 | |
| Elven Boots | 3.1% | 8 | |
| Silver Sash | 3.1% | 8 | |
| Crystal Belt | 1.6% | 4 | |
| Elven Cloak | 1.6% | 4 | |
| Stealth Suit | 1.2% | 3 |
List 6: Potions
| Item | Chance | Out of 256 | Bar |
|---|---|---|---|
| Potion of Fruit Juice | 12.5% | 32 | |
| Potion of Healing | 12.5% | 32 | |
| Potion of Fleetness | 6.6% | 17 | |
| Potion of Charisma | 6.3% | 16 | |
| Potion of Dexterity | 6.3% | 16 | |
| Potion of Endurance | 6.3% | 16 | |
| Potion of Hemlock | 6.3% | 16 | |
| Potion of Intelligence | 6.3% | 16 | |
| Potion of Restoration | 6.3% | 16 | |
| Potion of Strength | 6.3% | 16 | |
| Potion of Inebriation | 5.9% | 15 | |
| Potion of Infra-Vision | 3.1% | 8 | |
| Potion of Regeneration | 3.1% | 8 | |
| Potion of Wizard Eye | 3.1% | 8 | |
| Potion of Antidote | 1.6% | 4 | |
| Potion of Cleansing | 1.6% | 4 | |
| Potion of Inv. Air | 0.8% | 2 | |
| Potion of Inv. Blunt | 0.8% | 2 | |
| Potion of Inv. Cold | 0.8% | 2 | |
| Potion of Inv. Earth | 0.8% | 2 | |
| Potion of Inv. Fire | 0.8% | 2 | |
| Potion of Inv. Mental | 0.8% | 2 | |
| Potion of Inv. Sharp | 0.8% | 2 | |
| Potion of Inv. Water | 0.8% | 2 |
list pointers $EE7A/$EE80 · thresholds $EF43/$EF49 (treasure file loaded at $D000–$EFFF)
Unidentified potions
When the game creates a potion as treasure, it rolls twice. If the first roll is 64 or more (3 in 4) and the second, halved, is at least your Wisdom, it cuts the name short after "Potion", so you don't know what it is.
With Wisdom 15 that's about 66%, which matches the 66.5% the emulator produced. At Wisdom 128 or more, found potions are always named. Lucky's Potion Brewery offers to identify potions for silver.
D0D8
Quest drops and special treasure
A few monsters set the first treasure class themselves in their death code, with bit 7 set, instead of using the two rolls. With bit 6 clear, the low bits pick one of eight fixed quest items: Silver Key, Goblin Ring Half, Troll Ring Half, Staff Piece, PAC card, Mirrored Shield, Reforged Ring, Bloodstone. With bit 6 also set, a quest-aware routine chooses instead.
- Goblin Lord: the Goblin Ring Half. If a particular quest flag is already set, it gives the Reforged Ring instead.
- Troll Tyrant: the Troll Ring Half, with the same switch to the Reforged Ring.
- Basilisk: the Bloodstone.
- Devourer: the quest-aware routine. It checks your quest flags and what you're carrying, and always adds one roll on list 1 (scrolls, cards and tomes).
There are also 32 special treasures, each tied to a fixed spot or event in the dungeon. These are where the unique items come from: The Star (card), Winged Sandals, Potion of Restoration, Morgana's Tiara, Helm of Light, Truesilver coat, Cloak of Levitation, Crystal Breastplate, Page of Cups (card), Junai's Sword, Robin's Hood, Death (card), Iron Palm Salve, Death (card), Sword of The Adept, Razor Ice, Whetstone, Saurian Brandy, Blue Pearl Dagger, Six pack [6], Melvin's Helm, Crossbow [03], Amethyst Rod, Map Stone, Flame Quarrels [10], Thunder Quarrels [10], Staff of Amber, Loadstone, Golden Apple, Gauss Rifle [95], Solar Suit, Beam Weapon [25]. We haven't mapped which spot gives which.
D13A quest logic · $EF4F/$EF57 quest items · $EE86/$EEA6 special treasures