Game Internals › Nonograms Katana › Dungeon loot

Dungeon loot

Almost everything in a dungeon run is decided when the map is made. Each chest, pot and monster holds exactly one item, rolled once from a weighted table or fixed by the monster's type, and every pickup gives exactly one. The only surprise left for later is whether a container turns out to be a mimic.

How loot is rolled

  • One item per slot. Every container and monster carries one item. It's rolled when the map is generated, from the same seed as the layout, so the contents are fixed before you enter.
  • One unit per pickup. Opening, picking up or killing always adds exactly 1 of the item. Nothing in the dungeon adds more than one at a time.
  • Weighted tables. Containers and chests draw from tables whose entries unlock by level. An entry that isn't unlocked yet either drops out of the draw or falls back to a common item. Since version 22.11 an entry can also stop after a level (the tombs use this).
  • Mimics are rolled when you open. Small containers (the tombs' jars included) are mimics 20% of the time, and crates 8% in the forest and caves. Since 22.11 the mimic carries the container's own item, so you still get it by beating the mimic; up to 21.4 that item was lost and the mimic carried its usual drop instead.

Weights in the tables below are relative: an entry's chance is its weight divided by the total weight of the entries that are in play on that level.

Chests and containers

Locked chests

Locked chests need 4 mental power to open. If a chest rolls Treasure it becomes a treasure chest when the map is made, so you can see which chest holds it.

ItemWeightFromChance from 5A on
Meteoric iron721A65%
Catacombs map fragment13 + 5 + 51B; more from 4A and 5A21%
Coffee beans53A (iron before)4.5%
Gold ingot43A (iron before)3.6%
Glass44A (iron before)3.6%
Treasure25A (iron before)1.8%

So chests on 1A always hold meteoric iron, and on 1B–2C they're 87% iron and 13% map fragment. The forest uses the same table without gold and glass. The caves replace glass with tofu, and from 6C also add spices and titanium.

Small containers

ItemPots and boxesCratesNotes
Crypto-coin473917 of the 47 are empty on 1A
Meteoric iron1529
Rice7–
Wheat7–
Thread5–Empty on 1A
Reagent1520From 3A; before that empty (pots) or not drawn (crates)
Mandrake root912From 4A; before that crypto-coin (pots) or not drawn (crates)

Rescued travellers pay with one of two healing potions, an energy potion, an Ambrosia, or a catacombs map fragment, 20% each.

The tombs (EA–ED, version 22.11)

The tombs have no ordinary chests, pots or pages. Their locked chests, the pharaoh sarcophagi (4 mental power), draw from a relic table: ankhs, heart scarabs, mummy bandages, ibis mummies, statuettes of Bastet and Anubis, bronze mirrors, fragments of wall painting and catacombs map fragments, with Pharaoh's daggers on EA and EB only. From EC the table adds rare scarabs and the Eye of Horus, and once quest 70 is finished, the crook and flail and the Crown of Upper and Lower Egypt. Entries that haven't unlocked yet give an Ushabti or a Pharaoh's dagger. Free jars and urns hold the same relics, Ushabti most often, and some wheat and thread. The papyri lie on black pedestals (5 mental power).

What each level holds

Counts are the most the generator tries to place. Placement can occasionally fail, so a map may have fewer. Ancient pages need 4 mental power, grimoires 5.

LevelChestsAncient pagesGrimoiresKey doorsRing chestEntry cost
1A3–43–4–0
1B4–54–5–1
1C5–65–6–1
2A4–54–5–1
2B4–54–5–1
2C5–65–6–2Ring, level 1
3A4–54–5–2
3B5–65–6–2
3C6–76–7–3Ring, level 2
4A5–65–6–2
4B5–65–6–3
4C6–76–7–4Ring, level 3
5A5–65–6–3
5B7–87–8–4
5C8–98–9–5Ring, level 4
F13–44–5–01 onigiri, 4 coins
F23–43–42–301 onigiri, 5 coins
F33–44–53–401 onigiri, 6 coins, 1 bedroll
F44–55–64–50Ring, level 4+ (extra chest)1 onigiri, 7 coins, 1 bedroll
6A5–65–6–31 onigiri, 8 coins
6B7–84–53–441 onigiri, 9 coins
6C8–95–64–55Ring, level 4+ (extra chest)1 onigiri, 10 coins, 1 bedroll
6D8–95–64–551 onigiri, 11 coins, 1 bedroll
EA5–65–7 papyri–3
EB7–86–8 papyri–4
EC8–99–10 papyri–5Whip; Enzyme (a Pharaoh's dagger until quest 50 is finished)
ED8–99–10 papyri–5Enzyme (a Pharaoh's dagger until quest 50 is finished)

Each key door locks a room with only one door, usually a chest room; its key is carried by a random ordinary monster on the same level. The ring chest on 2C–5C is one of the level's normal chests; on F4 and 6C it's an extra one. On ring levels outside the forest, the ring sits in the secret mosaic room when that room exists. In the tombs the "pages" are Ancient Egyptian papyri (5 mental power each), and EC and ED put their special items in some of the level's own chests.

The levels also scatter gatherables: ore and crystals that give materials (crystals also give 5 mental power), mushrooms, cherries, herbs and honey. Honey restores 8 energy but has a 50% chance to release bees. The tombs have chariots, infrared dates and papyrus plants, and on EC and ED mummy-honey; chariots and mummy-honey also restore 8 energy. Since 22.11 the forest levels F3 and F4 also have olives.

Bosses and special drops

The boss's item depends on whether you've cleared the level before.

  • First clear: an Emerald tablet shard on dungeons 1–5 and the tombs, and MALU in the forest (the forest's second boss carries one too). On 6A–6C it's a red diamond, but only while the matching quest is active.
  • Later clears, in priority order: the active quest's item; a special drop (dragon teeth or salamander hide from certain bosses while their quest is active, always a red diamond from the 6D boss, a Desert impactite from the EC boss once its quest has started, and always Pharaoh's golden mask from the ED boss); a grimoire on levels that have grimoires; otherwise an ancient page, or an Ankh in the tombs.
  • The tombs' guardian on EA–EC carries a Secret name (an Ancient Egyptian papyrus instead in some quest states).
  • Forest gates: the forest bosses drop the emerald key that opens the level's jade gate and exit.

Monster drops

A monster's drop isn't a chance on death: it's whatever item it was given when the map was made. Most species always carry the same thing, such as crypto-coins, meteoric iron, thread, reagent, mandrake root, bones or dinars. A few draw from the small-container table, and a few carry nothing.

Notable carriers:

  • One dungeon 1–5 species carries a treasure map fragment plus a bone.
  • One dungeon 1–5 species and one cave species carry an ancient page.
  • On dungeon 1 (1A–1C) some monsters carry a katana or a fan, the puzzle tools.
  • On 6C and 6D the unique monsters carry a grimoire, an anchor and a diamond.

The game has no names for its monster species, so this page doesn't list them by name.

Completing a level

On dungeons 1–5, the caves and the tombs, a level is complete when every locked chest, treasure chest, ancient page and grimoire (in the tombs, every pharaoh sarcophagus and every papyrus on its black pedestal) has been collected and every mental-power boss is dead. Opened chests and collected pages are removed from the map, so the count reaches zero.

The forest counts differently: its chests and pages are optional. It counts the jade gate and the bosses, plus one more condition we haven't identified.

A generated map must have at least 4 of these objectives, or it's thrown away and made again.

What you keep

Your whole bag comes home whether you complete the level, leave early or are knocked out. The differences are:

OutcomeLootOther effects
CompletedEverything+20% experience, next level unlocked, 2 h rest, equipment −1 durability
Left earlyEverything6 h rest, equipment −1 durability
Knocked outEverything except all Emerald tablet shards, MALU and red diamonds, plus about 20% (at least 1) of coins, crypto-coins and meteoric iron (and, since 22.11, of Ushabti and Pharaoh's daggers)6 h rest, equipment −2 durability
  • Always discarded: keys, the golden kunai, flamethrowers, grappling hooks, familiar and pet tokens, and the Ring of the Dark Lady. These only exist for the run.
  • Tomb relics (version 22.11): the crook and flail, the Crown of Upper and Lower Egypt, Nefersah's golden mask, the Forbidden chapter of Seth and the Book of the Dead of Nefersah only come home from a completed ED; leaving any other way, they're taken. A tomb run also adds 2 hours to the rest.
  • Unused mental power goes back to your stock.
  • Limits: you can only ever bank one Emerald tablet shard per level. Anything above your storage limit is converted to coins.
  • Above hero level 25, each level gained also pays a bundle: a ruby, 5 ancient pages, 10 meteoric iron, a drum, soy sauce, a Greek grenade, 3 kunai and a healing potion.

Autonomous hero

The autonomous hero doesn't play a generated map at all. It takes its supplies at the start, waits out a timer, and pays out from a fixed table per level. It's available on 1A, 2A, 3A, 4A, 5A, F1, 6A and EA once you've cleared the matching C level (or F4 / 6C / EC), and have the skill level, other skills and equipment each needs (EA needs the hero's sword, armour and shield).

Most entries are a count range with a 20% chance of one less and 20% of one more. Map fragments are a percentage chance.

Payout per level
LevelTimeMental powerExperienceMain payout
1A5 h240620Crypto 9–15, iron 6–10, bones 3–5, pages 4–5, fragment 30%
2A6 h300880Crypto 12–18, iron 8–12, thread 2–6, drums 0–3, pages 5–6, fragment 60%
3A8 h4001,280Crypto 13–19, iron 9–13, bones 7–11, reagent 5–9, pages 5–6, fragment 75%
4A10 h5001,660Crypto 15–21, iron 13–17, mandrake 5–9, reagent 3–7, pages 6–7, fragment 1 + 15%
5A12 h5703,220Crypto 20–26, iron 18–22, reagent 8–12, pages 7–8, fragment 1 + 33%
F115 h6603,900Iron 15–19, bones 9–15, herbs 7–11, cinnabar 5–10, pages 4–5, grimoires 3–4, fragment 75%
6A15 h6804,900Crypto 22–28, iron 20–24, reagent 10–14, crystals, pages 7–9, grimoires 4–5, fragment 1 + 33%
EA15 h6603,900Ushabti 14–20, Pharaoh's daggers 13–17, papyri 10–14, thread 10–14, bones 7–13, dates, papyrus plants and statuettes of Bastet 7–9, ankhs 4–7, other relics

Each level also pays smaller amounts of cherries, mushrooms, thread and other materials. Senpai halves the time and lowers some supply costs.

Sources and confidence

  • No loot bonus applies in the dungeon. "Increases loot" effects, extra expedition loot and sushi don't appear anywhere in the code that places or pays out dungeon loot. They apply to puzzles and expeditions.
  • Read from the code (version 21.4, rechecked against 22.11): the tables, the per-level settings, boss drops, the completion rule and the end-of-run rules. The tables for 1A–6D are unchanged in 22.11; what changed is noted above.
  • Measured with the simulator: which tomb objects hold what.
  • Inferred: the names of the small containers (pots, boxes, crates), the forest's last completion condition, and which quests gate the special drops.
  • Not yet checked in the game. Quick checks: chests on 1A should only ever give meteoric iron; being knocked out should cost all shards but keep pages and grimoires.