<?php
// ============================================================================
//  THE HOLLOW HILL — the world of NERGmud Two.
//
//  Everything about the world lives in this one file: rooms, scenery, items,
//  and the rules that make items do things. Edit it, save it, reload the page.
//  (If you add a new item spawn, run `php bin/migrate.php` once to place it.)
//
//  WORLD STATE: puzzles flip shared switches like 'rat_gone' or 'crypt_open'.
//  Every player sees the same switches. Most switches last a while and then
//  reset (the rat comes back, the brambles grow), so the puzzles are there
//  for the next person too. A number is how many seconds it lasts; 0 = forever.
//
//  TEXT: {name} is replaced with the acting player's name.
//
//  MAP
//    Chapter 1  Hollowmere village, the Hill Gate tunnels, the crypt, the shrine.
//    Outskirts  The inn, the bell tower, the graveyard, the orchard, the mill,
//               the river, the far bank, the standing stones, the marsh.
//    Chapter 2  Opens when someone rings the bell at the Hollow Shrine: the deep
//               door in the Deep Tunnel leads to the Bellwrights' Halls, the lift
//               down to the lower caverns, the underground river, the Echoing
//               Maze, the Chamber of Three Bells and the Heart of the Hill.
// ============================================================================

return [

    'start' => 'square',
    'carry_limit' => 6,

    // ------------------------------------------------------------------ items
    // Things players can pick up and carry.
    //   lightable: can be lit (at a fire, or from another flame)
    //   glows:     always gives light, never needs lighting
    //   eat:       can be eaten; the text is what the player sees
    'items' => [
        // --- Chapter 1
        'torch' => [
            'name' => 'torch', 'nouns' => ['torch', 'brand'],
            'desc' => 'A stick wrapped in pitch-soaked rag.',
            'lit_desc' => 'It burns with a smoky orange flame.',
            'lightable' => true,
        ],
        'dagger' => [
            'name' => 'dagger', 'nouns' => ['dagger', 'knife', 'blade'],
            'desc' => 'A short, sharp dagger. Good for close work.',
        ],
        'rope' => [
            'name' => 'coil of rope', 'nouns' => ['rope', 'coil'],
            'desc' => 'Thirty feet of sturdy hemp rope.',
        ],
        'sickle' => [
            'name' => 'rusty sickle', 'nouns' => ['sickle'],
            'desc' => 'Rusty, but the curved edge is still keen.',
        ],
        'apple' => [
            'name' => 'apple', 'nouns' => ['apple', 'fruit'],
            'desc' => 'A red apple. It smells sweet.',
            'eat' => 'Crisp and sweet. You feel no different, but happier.',
        ],
        'iron_key' => [
            'name' => 'iron key', 'nouns' => ['key'],
            'desc' => 'A heavy iron key crusted with mud. It looks like it belongs to a very old door.',
        ],
        'silver_bell' => [
            'name' => 'silver bell', 'nouns' => ['bell'],
            'desc' => 'A small silver bell. Its note would carry a long way underground.',
        ],
        'moonstone' => [
            'name' => 'moonstone', 'nouns' => ['moonstone', 'stone', 'gem'],
            'desc' => 'A smooth, pale stone that glows faintly, like a little moon.',
        ],
        'prybar' => [
            'name' => 'prybar', 'nouns' => ['prybar', 'crowbar', 'bar', 'pry'],
            'desc' => 'A long iron bar, flattened and bent at one end. Made for prying open things that would rather stay shut.',
        ],

        // --- Outskirts
        'bread' => [
            'name' => 'loaf of bread', 'nouns' => ['bread', 'loaf'],
            'desc' => 'A crusty brown loaf from the inn.',
            'eat' => 'Warm and filling. Marta bakes a good loaf.',
        ],
        'plank' => [
            'name' => 'plank', 'nouns' => ['plank', 'board', 'wood'],
            'desc' => 'A long, sturdy plank of oak, a little longer than you are tall.',
        ],
        'oar' => [
            'name' => 'oar', 'nouns' => ['oar', 'paddle'],
            'desc' => 'A worn wooden oar. The blade is painted with a faded bell.',
        ],
        'honeycomb' => [
            'name' => 'honeycomb', 'nouns' => ['honeycomb', 'honey', 'comb'],
            'desc' => 'A slab of wild honeycomb, dripping and golden. Something with a sweet tooth would love this.',
            'eat' => 'Sticky, sweet and gone far too fast. Perhaps you should have saved it for someone.',
        ],
        'brass_gear' => [
            'name' => 'brass gear', 'nouns' => ['gear', 'cog', 'wheel'],
            'desc' => 'A heavy brass gear the size of a dinner plate, its teeth worn smooth. Stamped on it: a bell, and the word LIFT.',
        ],

        // --- Chapter 2
        'iron_crank' => [
            'name' => 'iron crank', 'nouns' => ['crank', 'handle'],
            'desc' => 'A bent iron handle with a square socket on one end. It would fit a winch.',
        ],
        'coal' => [
            'name' => 'lump of coal', 'nouns' => ['coal', 'lump'],
            'desc' => 'A heavy black lump of coal. It leaves your fingers grimy.',
        ],
        'bronze_ingot' => [
            'name' => 'bronze ingot', 'nouns' => ['ingot', 'bronze'],
            'desc' => 'A bar of dull bronze, stamped with a bell. Bell metal.',
        ],
        'bronze_clapper' => [
            'name' => 'bronze clapper', 'nouns' => ['clapper', 'tongue'],
            'desc' => 'A great bronze clapper, still faintly warm from the mould. It is far too big for any ordinary bell.',
        ],
        'brass_key' => [
            'name' => 'brass key', 'nouns' => ['key'],
            'desc' => 'A small brass key with a book engraved on its bow.',
        ],
        'bellwright_key' => [
            'name' => 'bellwright key', 'nouns' => ['key'],
            'desc' => 'A long key of black iron, its bow shaped like a bell. Silt still clings to it.',
        ],
        'tuning_fork' => [
            'name' => 'tuning fork', 'nouns' => ['fork', 'tuning'],
            'desc' => 'A silver tuning fork as long as your forearm. Strike it and listen: in the right places, the echo tells you things.',
        ],
        'glowcap' => [
            'name' => 'glowcap', 'nouns' => ['glowcap', 'mushroom', 'cap'],
            'desc' => 'A fat mushroom the size of your fist, glowing a soft blue-green. Enough light to see by, and it never goes out.',
            'glows' => true,
        ],
        'star_crystal' => [
            'name' => 'star crystal', 'nouns' => ['crystal', 'star'],
            'desc' => 'A crystal shaped like a six-pointed star. Points of light drift inside it like a night sky. It feels like it wants to see the real one.',
        ],
    ],

    // ------------------------------------------------------------------ rooms
    // exits:  'n' => 'room'  or  'n' => ['to' => 'room', 'if' => 'switch', 'fail' => 'why not']
    // things: scenery you can examine (and read), but not take.
    //         'if' => 'switch' / '!switch' shows a thing only while true / false.
    // details: extra lines of description depending on switches.
    // spawns: item => seconds. Keeps one of that item in the room; if someone
    //         takes it, a new one appears after that many seconds.
    // dark:   needs a light (a lit torch or glowing thing carried by anyone here, or lying here).
    // fire:   you can light things here.
    'rooms' => [

        // ==================================================================
        //  CHAPTER 1 — HOLLOWMERE AND THE HILL
        // ==================================================================

        'square' => [
            'name' => 'Village Square',
            'desc' => "A cobbled square in the village of Hollowmere, quiet under a grey sky. An old stone well stands in the middle beside a leaning notice board, and a small brass plaque is set into the well's rim. Lanes lead north toward the hill, east to the smithy, west to a walled garden and south to the chapel. Lamplight spills from the inn to the northeast.",
            'details' => [
                ['if' => 'well_rope', 'text' => 'A rope is tied to the well and hangs down into the dark.'],
            ],
            'exits' => [
                'n' => 'old_road', 'e' => 'smithy', 'w' => 'garden', 's' => 'chapel', 'ne' => 'inn',
                'd' => ['to' => 'well_bottom', 'if' => 'well_rope',
                        'fail' => 'The well is a sheer drop. You would need a rope tied to it to climb down.'],
            ],
            'things' => [
                'well' => ['nouns' => ['well', 'windlass'],
                    'desc' => 'A round well of mossy stone. Its windlass rotted away long ago. Far below, something glints in the mud.'],
                'board' => ['nouns' => ['board', 'notice', 'notices', 'sign'],
                    'desc' => 'Most of the notices have rotted to pulp, but one is still legible.',
                    'read' => "NOTICE, by order of the Elder:\n• The Hill Gate is CLOSED. Brambles have been let grow over it.\n• The crypt is LOCKED. Brother Anselm threw the key down the well in a temper.\n• Anyone hearing BELLS from under the hill is to report it at once."],
                'plaque' => ['nouns' => ['plaque', 'brass', 'memorial', 'rim'],
                    'desc' => 'A small brass plaque, polished bright by many thumbs. Someone keeps it clean. There is writing on it.',
                    'read' => "In memory of the original Nergmud.\n1996-1998\nAll hail the WarRat!"],
            ],
        ],

        'smithy' => [
            'name' => 'The Smithy',
            'desc' => 'Heat rolls off a forge that never quite goes out. Tools hang from pegs, and a rack by the door holds torches for anyone foolish enough to go into the hill. The square is back to the west.',
            'fire' => true,
            'exits' => ['w' => 'square'],
            'things' => [
                'forge' => ['nouns' => ['forge', 'coals', 'fire'],
                    'desc' => 'Coals glow orange in the forge. You could light something here.'],
                'anvil' => ['nouns' => ['anvil'], 'desc' => 'A scarred black anvil. Someone has scratched "BRING BACK MY TORCHES" into it.'],
                'rack' => ['nouns' => ['rack', 'pegs', 'tools'], 'desc' => 'Pegs and a rack for torches. The smith keeps it stocked.'],
            ],
            'spawns' => ['torch' => 20, 'dagger' => 60, 'rope' => 60],
        ],

        'garden' => [
            'name' => 'Walled Garden',
            'desc' => 'Overgrown beds and a gnarled apple tree, closed in by crumbling walls. Bees drift between the weeds. The square is east, and a gap in the north wall opens onto an orchard.',
            'exits' => ['e' => 'square', 'n' => 'orchard'],
            'things' => [
                'tree' => ['nouns' => ['tree', 'branches'], 'desc' => 'An old apple tree. Ripe apples drop from it now and then.'],
                'beds' => ['nouns' => ['beds', 'weeds', 'bed'], 'desc' => 'Whoever tended this garden left in a hurry, and left their tools behind.'],
            ],
            'spawns' => ['sickle' => 60, 'apple' => 30],
        ],

        'chapel' => [
            'name' => 'Chapel of the Quiet Bell',
            'desc' => 'Dust hangs in coloured light from a cracked window. Behind the altar, an iron-banded door leads down to the crypt. A narrow stair climbs into the bell tower, a side door opens west onto the graveyard, and the square is north.',
            'details' => [
                ['if' => '!crypt_open', 'text' => 'The crypt door is shut and locked.'],
                ['if' => 'crypt_open', 'text' => 'The crypt door stands open. Cold air breathes up the stairs.'],
            ],
            'exits' => [
                'n' => 'square', 'u' => 'tower_base', 'w' => 'graveyard',
                'd' => ['to' => 'crypt', 'if' => 'crypt_open', 'fail' => 'The crypt door is locked. The keyhole is large and old.'],
            ],
            'things' => [
                'window' => ['nouns' => ['window', 'glass'],
                    'desc' => 'The stained glass shows a green hill with a bell inside it. Above the bell, a pale stone glows like a moon. Beneath them both, a door.'],
                'altar' => ['nouns' => ['altar'], 'desc' => 'A plain stone altar with a worn cloth.'],
                'door' => ['nouns' => ['door', 'lock', 'keyhole'], 'desc' => 'A heavy door banded with iron, with a large old keyhole.'],
            ],
        ],

        'crypt' => [
            'name' => 'Crypt',
            'dark' => true,
            'desc' => 'Niches of old bones line the walls, each one labelled in faded paint. Stairs climb back up to the chapel. A low passage runs west, into the hill.',
            'exits' => ['u' => 'chapel', 'w' => 'deep_tunnel'],
            'things' => [
                'niches' => ['nouns' => ['niches', 'niche', 'bones', 'labels'],
                    'desc' => 'Brother This, Sister That. One niche is labelled ANSELM, NOT YET, and is empty.'],
            ],
            'spawns' => ['silver_bell' => 120],
        ],

        'old_road' => [
            'name' => 'Old Road',
            'desc' => 'A rutted road climbs north out of the village toward the green hump of the hill. Crows watch from a fence post. The square is south, and a lane branches east toward the sound of running water.',
            'exits' => ['s' => 'square', 'n' => 'hill_gate', 'e' => 'mill_lane'],
            'things' => [
                'hill' => ['nouns' => ['hill'], 'desc' => 'Too round and too green to be natural. Nothing grows on its very top.'],
            ],
        ],

        'hill_gate' => [
            'name' => 'Hill Gate',
            'desc' => 'An archway of grey stone is set into the hillside. Whatever gate it once held is long gone. The road runs back south.',
            'details' => [
                ['if' => '!brambles_cut', 'text' => 'A wall of thorny brambles chokes the archway.'],
                ['if' => 'brambles_cut', 'text' => 'The brambles have been cleared, leaving a path north into the hill.'],
            ],
            'exits' => [
                's' => 'old_road',
                'n' => ['to' => 'tunnel_mouth', 'if' => 'brambles_cut',
                        'fail' => 'The brambles are far too thick to push through. They need cutting back, or burning.'],
            ],
            'things' => [
                'brambles' => ['nouns' => ['brambles', 'bramble', 'thorns'], 'if' => '!brambles_cut',
                    'desc' => 'Thick, thorny and tough as wire. A curved blade would make short work of them. So would fire.'],
                'arch' => ['nouns' => ['arch', 'archway', 'gate'], 'desc' => 'Carved above the arch: a bell.'],
            ],
        ],

        'tunnel_mouth' => [
            'name' => 'Tunnel Mouth',
            'desc' => 'Daylight reaches a few yards into the hill and gives up. A tunnel leads east into darkness. The gate is back to the south.',
            'exits' => ['s' => 'hill_gate', 'e' => 'dark_tunnel'],
            'things' => [
                'carvings' => ['nouns' => ['carvings', 'carving', 'wall'],
                    'desc' => 'Scratched into the wall: a rat wearing a crown, and in front of it a bowl of fruit. Someone thought rats could be bargained with.'],
            ],
        ],

        'dark_tunnel' => [
            'name' => 'Dark Tunnel',
            'dark' => true,
            'desc' => 'A tunnel of packed earth and old timber props. It runs west back toward daylight and east toward a faint glow. A shaft with rough steps drops into deeper dark.',
            'details' => [
                ['if' => '!rat_gone', 'text' => 'A fat rat crouches in the eastern passage, teeth bared, guarding the way.'],
            ],
            'exits' => [
                'w' => 'tunnel_mouth', 'd' => 'deep_tunnel',
                'e' => ['to' => 'shrine', 'if' => 'rat_gone',
                        'fail' => 'The rat hisses and lunges at your ankles. You back off. It will not let you past.'],
            ],
            'things' => [
                'rat' => ['nouns' => ['rat'], 'if' => '!rat_gone',
                    'desc' => 'It is the size of a small dog and looks very well fed. It is not moving out of that passage.'],
                'props' => ['nouns' => ['props', 'timber', 'timbers'], 'desc' => 'Old pit props, soft with rot. Best not to lean on them.'],
            ],
        ],

        'deep_tunnel' => [
            'name' => 'Deep Tunnel',
            'dark' => true,
            'desc' => 'Water drips somewhere in the dark. Rough steps lead up. Passages run north, toward a faint green light, and east toward the smell of old stone and candle wax. In the floor is a round slab carved with a bell.',
            'details' => [
                ['if' => 'deep_door', 'text' => 'The bell-carved slab has sunk away into the floor, revealing a stair spiralling down into the deep.'],
            ],
            'exits' => [
                'u' => 'dark_tunnel', 'n' => 'collapsed_hall', 'e' => 'crypt',
                'd' => ['to' => 'deep_stair', 'if' => 'deep_door',
                        'fail' => 'The bell-carved slab in the floor will not move. There is no handle, no keyhole, nothing. Perhaps something has to call it open.'],
            ],
            'things' => [
                'floor_slab' => ['nouns' => ['slab', 'floor', 'carving'],
                    'desc' => 'A round slab set flush in the floor, carved with a bell above a crescent moon. It does not look like it was made to be opened by hand.'],
            ],
        ],

        'collapsed_hall' => [
            'name' => 'Collapsed Hall',
            'desc' => 'Glowing fungus coats the fallen pillars of a great hall, filling it with a sickly green light. To the north, a stone slab the height of two people blocks an archway. A passage leads south.',
            'details' => [
                ['if' => 'slab_open', 'text' => 'The great slab has been pushed aside. The archway north is open.'],
            ],
            'exits' => [
                's' => 'deep_tunnel',
                'n' => ['to' => 'echo_hall', 'if' => 'slab_open', 'fail' => 'The stone slab blocks the archway.'],
            ],
            'things' => [
                'slab' => ['nouns' => ['slab', 'stone', 'handholds', 'handhold', 'gap'],
                    'desc' => 'Smooth stone, far too heavy for one person. Two handholds are worn into it, side by side. At its base there is a narrow gap, just wide enough to wedge something into.'],
                'fungus' => ['nouns' => ['fungus', 'pillars'], 'desc' => 'It glows. It also smells faintly of mushrooms and regret.'],
            ],
        ],

        'echo_hall' => [
            'name' => 'Hall of Echoes',
            'desc' => 'Every footstep comes back to you a dozen times over. The walls are carved with hundreds of bells, all of them silent. The archway is back to the south.',
            'exits' => ['s' => 'collapsed_hall'],
            'things' => [
                'walls' => ['nouns' => ['walls', 'bells', 'carvings'], 'desc' => 'Every carved bell hangs above a small round hollow.'],
            ],
            'spawns' => ['moonstone' => 300],
        ],

        'shrine' => [
            'name' => 'Hollow Shrine',
            'desc' => 'A shaft of daylight falls from far above onto a stone altar. In the face of the altar is a round hollow. The tunnel leads back west.',
            'details' => [
                ['if' => 'moonstone_set', 'text' => 'A pale moonstone sits in the hollow, glowing softly. It seems to be waiting for something.'],
            ],
            'exits' => ['w' => 'dark_tunnel'],
            'things' => [
                'altar' => ['nouns' => ['altar'], 'desc' => 'Carved on the altar: a bell above a moon. Something is meant to rest in the hollow, and something is meant to ring.'],
                'hollow' => ['nouns' => ['hollow', 'hole'], 'desc' => 'A smooth round hollow, about the size of a hen\'s egg.'],
                'shaft' => ['nouns' => ['shaft', 'light', 'daylight'], 'desc' => 'Far above, a coin of sky. The top of the hill, perhaps.'],
            ],
        ],

        'well_bottom' => [
            'name' => 'Bottom of the Well',
            'desc' => 'Cold mud up to your ankles, and a circle of sky far above. The rope hangs within reach.',
            'exits' => ['u' => 'square'],
            'things' => [
                'mud' => ['nouns' => ['mud', 'muck'], 'desc' => 'Cold, deep and full of things people have dropped down here over the years.'],
            ],
            'spawns' => ['iron_key' => 120, 'prybar' => 120],
        ],

        // ==================================================================
        //  THE OUTSKIRTS — around Hollowmere
        // ==================================================================

        'inn' => [
            'name' => 'The Drowsy Lantern',
            'desc' => 'A low-beamed inn that smells of woodsmoke and fresh bread. A fire crackles in a wide hearth, and Marta the innkeeper polishes the same mug she was polishing yesterday. A trapdoor behind the bar leads down to the cellar. The door out to the square is southwest.',
            'fire' => true,
            'exits' => ['sw' => 'square', 'd' => 'inn_cellar'],
            'things' => [
                'marta' => ['nouns' => ['marta', 'innkeeper', 'keeper', 'woman'],
                    'desc' => 'Broad, floury and missing nothing. She nods at you. Ask her about the hill, if you like.'],
                'hearth' => ['nouns' => ['hearth', 'fire', 'fireplace'], 'desc' => 'A good fire. You could light a torch here.'],
                'bar' => ['nouns' => ['bar', 'counter', 'trapdoor'], 'desc' => 'Behind the bar, a trapdoor stands open on steps down to the cellar.'],
            ],
            'spawns' => ['bread' => 30],
        ],

        'inn_cellar' => [
            'name' => 'Inn Cellar',
            'dark' => true,
            'desc' => 'Barrels and dusty crates crowd a cellar that is colder than it should be. In one corner, the stone wall has cracked open onto older stonework. Steps lead back up to the inn.',
            'exits' => ['u' => 'inn'],
            'things' => [
                'crate' => ['nouns' => ['crate', 'crates', 'box', 'lid'],
                    'desc' => 'One crate is different from the rest: older, banded with brass, its lid nailed down tight. A bell is branded on the side.'],
                'barrels' => ['nouns' => ['barrels', 'barrel', 'casks'], 'desc' => 'Ale, mostly. One is labelled DO NOT.'],
                'crack' => ['nouns' => ['crack', 'stonework', 'wall'], 'desc' => 'Behind the crack, the stone is carved with tiny bells. Whoever built this inn built it on top of something much older.'],
            ],
        ],

        'tower_base' => [
            'name' => 'Bell Tower Stair',
            'desc' => 'A narrow stone stair winds up inside the tower and stops at a landing. Above it, the old ladder to the belfry has rotted away to a few rungs, but a stout beam crosses the shaft overhead. The stair leads back down to the chapel.',
            'details' => [
                ['if' => 'tower_rope', 'text' => 'A rope hangs from the beam, knotted for climbing.'],
            ],
            'exits' => [
                'd' => 'chapel',
                'u' => ['to' => 'belfry', 'if' => 'tower_rope', 'fail' => 'The ladder is rotten through. You would need a rope over that beam to climb up.'],
            ],
            'things' => [
                'beam' => ['nouns' => ['beam', 'shaft'], 'desc' => 'An oak beam, black with age, sturdy as the day it was set. A rope over it would hold.'],
                'ladder' => ['nouns' => ['ladder', 'rungs'], 'desc' => 'Three rungs left, and those look ready to give up.'],
            ],
        ],

        'belfry' => [
            'name' => 'Belfry',
            'desc' => 'Wind whistles through the open arches at the top of the tower. The great wooden frame where the chapel bell once hung is empty. From here you can see all of Hollowmere, the mill wheel to the east, and the round green hill to the north.',
            'exits' => ['d' => 'tower_base'],
            'things' => [
                'frame' => ['nouns' => ['frame', 'bell', 'beams'],
                    'desc' => 'An empty bell frame, scored by old ropes. Carved into the crossbeam is a line of verse. You could read it.',
                    'read' => "Carved into the crossbeam, in the old hand:\n\"When we sang the hill to sleep, the first note was the deepest.\""],
                'view' => ['nouns' => ['view', 'village', 'hollowmere', 'arches'], 'desc' => 'Rooftops, the square, the well. East, the mill wheel sits still in its stream. North, the hill. From up here it looks like a sleeping animal.'],
            ],
        ],

        'graveyard' => [
            'name' => 'Graveyard',
            'desc' => 'Lichen-covered headstones lean at tired angles in the long grass. One grave, near the wall, is tended and has fresh flowers. The chapel door is east.',
            'exits' => ['e' => 'chapel'],
            'things' => [
                'grave' => ['nouns' => ['grave', 'headstone', 'stone', 'flowers', 'wenna'],
                    'desc' => 'A tended grave with fresh flowers. The inscription is clear.',
                    'read' => "HERE LIES WENNA BELLWRIGHT\nLast of her craft in Hollowmere.\n\"Low to sleep, and high to dream, and one note in between.\""],
                'headstones' => ['nouns' => ['headstones', 'graves', 'stones'], 'desc' => 'Most of the names have worn away. Many of them end in BELLWRIGHT.'],
            ],
        ],

        'orchard' => [
            'name' => 'Orchard',
            'desc' => 'Rows of old apple trees, heavy with fruit and loud with wasps. A wooden ladder leans against the biggest tree, going nowhere in particular. The garden is back to the south.',
            'exits' => ['s' => 'garden'],
            'things' => [
                'trees' => ['nouns' => ['trees', 'tree', 'apples'], 'desc' => 'More apples than anyone could eat. The windfalls attract wasps, and other things with a sweet tooth.'],
                'ladder' => ['nouns' => ['ladder'], 'desc' => 'Someone has carved "W.B. loves the hill" into a rung.'],
            ],
            'spawns' => ['apple' => 30],
        ],

        'mill_lane' => [
            'name' => 'Mill Lane',
            'desc' => 'A muddy lane runs beside a fast stream, between hedges full of blackberries. The Old Road is west. Ahead to the east, a mill wheel rises over the hedge.',
            'exits' => ['w' => 'old_road', 'e' => 'mill_yard'],
            'things' => [
                'stream' => ['nouns' => ['stream', 'water'], 'desc' => 'Quick, cold and clear. It runs east toward the mill, and somewhere beyond it, down into the ground.'],
                'hedges' => ['nouns' => ['hedges', 'blackberries', 'hedge'], 'desc' => 'The blackberries are not ripe yet. The thorns are.'],
            ],
        ],

        'mill_yard' => [
            'name' => 'Mill Yard',
            'desc' => 'A stone mill stands over the stream, its great wheel dripping. A ladder climbs to the loft above. A woodpile is stacked against the wall. The lane runs back west, and a path leads south down to the riverbank.',
            'details' => [
                ['if' => '!mill_running', 'text' => 'The wheel is stuck fast: a thick branch is jammed between its paddles and the wall.'],
                ['if' => 'mill_running', 'text' => 'The wheel turns with a steady creak and splash, and the sluice beside it roars. Somewhere under your feet, water is draining away.'],
            ],
            'exits' => ['w' => 'mill_lane', 'u' => 'mill_loft', 's' => 'riverbank'],
            'things' => [
                'wheel' => ['nouns' => ['wheel', 'waterwheel', 'paddles', 'mill'],
                    'desc' => 'A great wooden water wheel. When it turns, it opens the sluice that drains the stream underground.'],
                'branch' => ['nouns' => ['branch', 'log'], 'if' => '!mill_running',
                    'desc' => 'A thick branch, wedged hard between the wheel and the wall. You would need to cut it, or lever it free.'],
                'woodpile' => ['nouns' => ['woodpile', 'pile', 'logs'], 'desc' => 'Firewood, and a few good planks the miller kept back.'],
            ],
            'spawns' => ['plank' => 60],
        ],

        'mill_loft' => [
            'name' => 'Mill Loft',
            'desc' => 'Flour dust hangs in the light from a small window. Sacks are stacked to the rafters, and on a desk under the window lies the miller\'s journal. The ladder goes back down to the yard.',
            'exits' => ['d' => 'mill_yard'],
            'things' => [
                'journal' => ['nouns' => ['journal', 'diary', 'book', 'desk'],
                    'desc' => 'A water-stained journal, open to its last page.',
                    'read' => "From the miller's journal:\n\"When the wheel turns, the sluice opens and the stream drains down into the hill. Grandfather said it fills a drowned gallery down there, and when the wheel turns the gallery empties.\n\"He also said the bellwrights sang the hill shut with three notes. The second was the highest. He never told me the others. Stubborn old goat.\""],
                'sacks' => ['nouns' => ['sacks', 'flour', 'sack'], 'desc' => 'Flour, and a great deal of it.'],
            ],
        ],

        'riverbank' => [
            'name' => 'Riverbank',
            'desc' => 'The stream widens into a slow brown river here, edged with reeds. A boathouse sits on stilts to the west. East, a footbridge crosses the river. The mill yard is up the path to the north.',
            'exits' => [
                'n' => 'mill_yard', 'e' => 'broken_bridge',
                'w' => ['to' => 'boathouse', 'if' => 'boathouse_open', 'fail' => 'The boathouse door is swollen shut in its frame. It would take some leverage to open it.'],
            ],
            'details' => [
                ['if' => 'boathouse_open', 'text' => 'The boathouse door has been levered open.'],
            ],
            'things' => [
                'boathouse_door' => ['nouns' => ['door', 'boathouse'], 'desc' => 'Damp has swollen the door hard into its frame. Hands won\'t do it.'],
                'reeds' => ['nouns' => ['reeds', 'river'], 'desc' => 'Reeds, mud and the occasional suspicious frog.'],
            ],
        ],

        'boathouse' => [
            'name' => 'Boathouse',
            'desc' => 'Fishing nets hang from the rafters of a creaking boathouse. There is no boat here any more, just its empty cradle and a rack of oars. The door back to the riverbank is east.',
            'exits' => ['e' => 'riverbank'],
            'things' => [
                'cradle' => ['nouns' => ['cradle', 'nets'], 'desc' => 'An empty boat cradle. Painted on the wall above it: THE BELLWRIGHTS\' FERRY — UNDER THE HILL.'],
                'oar_rack' => ['nouns' => ['rack', 'oars'], 'desc' => 'A rack for oars. Someone always seems to leave one behind.'],
            ],
            'spawns' => ['oar' => 60],
        ],

        'broken_bridge' => [
            'name' => 'Broken Footbridge',
            'desc' => 'A wooden footbridge spans the river. Halfway across, a section of planks has rotted and fallen away, leaving a gap too wide to jump. The riverbank is west.',
            'details' => [
                ['if' => 'bridge_fixed', 'text' => 'A fresh plank has been laid across the gap. The way east is passable.'],
            ],
            'exits' => [
                'w' => 'riverbank',
                'e' => ['to' => 'far_bank', 'if' => 'bridge_fixed', 'fail' => 'The gap in the bridge is far too wide to jump. A plank laid across it would do.'],
            ],
            'things' => [
                'bridge' => ['nouns' => ['bridge', 'gap', 'footbridge'], 'desc' => 'A gap a little shorter than you are tall. One good plank would bridge it.'],
            ],
        ],

        'far_bank' => [
            'name' => 'Far Bank',
            'desc' => 'Open meadow rolls away from the river. To the north, grey standing stones crown a low rise. To the south, the ground turns soft and a white mist hangs over a marsh. The footbridge is west.',
            'exits' => ['w' => 'broken_bridge', 'n' => 'standing_stones', 's' => 'marsh'],
            'things' => [
                'meadow' => ['nouns' => ['meadow', 'grass'], 'desc' => 'Long grass, buttercups and a lot of sky.'],
            ],
        ],

        'standing_stones' => [
            'name' => 'Standing Stones',
            'desc' => 'Nine tall stones stand in a ring on the rise, each carved with a bell. The wind makes a low humming sound between them. The meadow slopes away south.',
            'exits' => ['s' => 'far_bank'],
            'things' => [
                'stones' => ['nouns' => ['stones', 'ring', 'stone'],
                    'desc' => 'Each stone is carved with a bell, and each bell is a different size. They seem to be listening for something.'],
            ],
        ],

        'marsh' => [
            'name' => 'Misty Marsh',
            'desc' => 'Mist clings to dark pools and tussocks of grass. Little blue lights bob over the water in the distance and vanish when you look straight at them. A hut stands on a dry hummock to the east. The meadow is north.',
            'exits' => ['n' => 'far_bank', 'e' => 'hermit_hut'],
            'things' => [
                'lights' => ['nouns' => ['lights', 'wisps', 'will'], 'desc' => 'Marsh lights. Follow them and you will end up wet, at best.'],
                'pools' => ['nouns' => ['pools', 'water', 'mist'], 'desc' => 'Black water, and no telling how deep.'],
            ],
        ],

        'hermit_hut' => [
            'name' => "Hermit's Hut",
            'desc' => 'A one-room hut of driftwood and turf, empty but tidy. A note is pinned to the door. Outside, a wild beehive hums in a hollow log. The marsh is west.',
            'exits' => ['w' => 'marsh'],
            'things' => [
                'note' => ['nouns' => ['note', 'door', 'paper'],
                    'desc' => 'A note in a careful, spidery hand.',
                    'read' => "Gone below. Don't follow.\nIf you do follow:\n• Webs burn. Blades work too, but fire is quicker.\n• Old Grumbleback, who digs in the deep, lets nobody pass, but he would sell his own mother for something sweet.\n• Smoke calms bees. Mind your fingers.\n— A."],
                'hive' => ['nouns' => ['hive', 'beehive', 'log', 'bees'],
                    'desc' => 'Bees boil in and out of a hollow log. Inside, you can see the gleam of honeycomb. Reaching in now would be a painful mistake. Bees hate smoke, though.'],
            ],
        ],

        // ==================================================================
        //  CHAPTER 2 — THE BELLWRIGHTS' HALLS
        // ==================================================================

        'deep_stair' => [
            'name' => 'The Deep Stair',
            'dark' => true,
            'desc' => 'A stair of worn stone spirals down and down, much further than the hill is tall. Bells are carved on every step. The air grows warmer as you go. The stair climbs back up to the Deep Tunnel and continues down into a gatehouse.',
            'exits' => ['u' => 'deep_tunnel', 'd' => 'gatehouse'],
            'things' => [
                'steps' => ['nouns' => ['steps', 'stair', 'stairs', 'bells'], 'desc' => 'Thousands of tiny bells, one on every step, worn smooth by feet that stopped coming a long time ago.'],
            ],
        ],

        'gatehouse' => [
            'name' => 'Gatehouse',
            'dark' => true,
            'desc' => 'Two stone giants, each holding a bell in its arms, guard a great archway to the north. An iron portcullis bars the way. Beside it is a winch with an empty square socket. A door leads west into a guardroom, and the stair climbs back up.',
            'details' => [
                ['if' => 'portcullis_up', 'text' => 'The portcullis has been winched up. The archway north is open.'],
            ],
            'exits' => [
                'u' => 'deep_stair', 'w' => 'guardroom',
                'n' => ['to' => 'great_hall', 'if' => 'portcullis_up', 'fail' => 'The iron portcullis is down. It would need winching up.'],
            ],
            'things' => [
                'portcullis' => ['nouns' => ['portcullis', 'gate', 'bars'], 'desc' => 'A heavy iron grid, its points sunk in the floor. Far too heavy to lift by hand.'],
                'winch' => ['nouns' => ['winch', 'socket', 'drum'], 'desc' => 'A winch drum with chain wound on it. The handle is missing; just an empty square socket.'],
                'statues' => ['nouns' => ['statues', 'giants', 'statue', 'giant'], 'desc' => 'Stone bellwrights, three times your height. One has a small bird\'s nest in its ear.'],
            ],
        ],

        'guardroom' => [
            'name' => 'Guardroom',
            'dark' => true,
            'desc' => 'Stone benches, an empty weapon rack and a table with an unfinished game of stones still laid out on it. Whoever left did not expect to be gone long. The gatehouse is east.',
            'exits' => ['e' => 'gatehouse'],
            'things' => [
                'table' => ['nouns' => ['table', 'game', 'stones'], 'desc' => 'Black is winning. Black has been winning for three hundred years.'],
                'weapon_rack' => ['nouns' => ['rack', 'benches', 'bench'], 'desc' => 'No weapons. Bellwrights were makers, not fighters. Just hooks for tools.'],
            ],
            'spawns' => ['iron_crank' => 60],
        ],

        'great_hall' => [
            'name' => 'Great Hall of the Bellwrights',
            'desc' => 'A vast hall carved from the living rock, its pillars shaped like ropes and its ceiling set with crystals that glow like a winter sky. Doorways open on every side: the foundry to the west, a library to the east, barracks to the northeast, kitchens to the northwest, and a lift shaft to the southeast. A great iron-bound door stands at the north end. Steps lead down to a cistern, and the gatehouse is south.',
            'details' => [
                ['if' => 'treasury_open', 'text' => 'The great iron-bound door to the north stands open.'],
            ],
            'exits' => [
                's' => 'gatehouse', 'w' => 'foundry', 'e' => 'library', 'ne' => 'barracks', 'nw' => 'kitchens',
                'se' => 'lift_top', 'd' => 'cistern',
                'n' => ['to' => 'treasury', 'if' => 'treasury_open', 'fail' => 'The great door is locked. Its keyhole is shaped like a bell.'],
            ],
            'things' => [
                'treasury_door' => ['nouns' => ['door', 'keyhole'], 'desc' => 'Iron bands, oak as hard as stone, and a keyhole shaped like a bell. Above it: TREASURY OF THE CRAFT.'],
                'crystals' => ['nouns' => ['crystals', 'ceiling', 'sky'], 'desc' => 'Crystals set in the ceiling in the patterns of the stars. They give off a cold, steady light.'],
                'pillars' => ['nouns' => ['pillars', 'pillar', 'ropes'], 'desc' => 'Each pillar is carved to look like a bell rope, pulled taut from floor to ceiling.'],
            ],
        ],

        'foundry' => [
            'name' => 'The Foundry',
            'dark' => true,
            'desc' => 'A huge cold furnace squats at the heart of this sooty cavern, with a great leather bellows beside it. In front of the furnace, a casting mould is set into the floor: the shape of a bell clapper, as long as a man. A doorway leads north to a coal store. The Great Hall is east.',
            'details' => [
                ['if' => 'furnace_fueled', 'text' => 'Coal is heaped in the furnace, ready to burn.'],
                ['if' => 'furnace_lit', 'text' => 'The furnace roars with white-hot fire. The crucible above the mould glows. Anything bronze dropped in now would melt and run.'],
            ],
            'exits' => ['e' => 'great_hall', 'n' => 'coal_store'],
            'things' => [
                'furnace' => ['nouns' => ['furnace', 'crucible', 'firebox'], 'desc' => 'A furnace big enough to walk into. It needs fuel, and then fire.'],
                'mould' => ['nouns' => ['mould', 'mold', 'cast', 'casting'], 'desc' => 'A clapper-shaped hollow, lined with fine clay. A channel runs to it from the crucible. Feed bronze to the fire and it will run into the mould.'],
                'bellows' => ['nouns' => ['bellows', 'leather'], 'desc' => 'Enormous bellows, cracked but still whole. Not much use without a fire.'],
            ],
        ],

        'coal_store' => [
            'name' => 'Coal Store',
            'dark' => true,
            'desc' => 'Black dust coats everything in a long, low cave heaped with coal. A rusted cart sits on rails that run into the wall and stop. The foundry is south.',
            'exits' => ['s' => 'foundry'],
            'things' => [
                'heap' => ['nouns' => ['heap', 'pile', 'coal'], 'desc' => 'Enough coal to fire a furnace for a hundred years. You can only carry a lump at a time.'],
                'cart' => ['nouns' => ['cart', 'rails'], 'desc' => 'A coal cart, rusted solid to its rails.'],
            ],
            'spawns' => ['coal' => 30],
        ],

        'library' => [
            'name' => 'Library of Tones',
            'desc' => 'Shelves of stone books line a round room lit by little lamps of cold blue fire. A heavy tome lies open on a lectern, a ledger sits on a desk, and a map is painted on the floor. An iron grate to the north closes off an archive. The Great Hall is west.',
            'details' => [
                ['if' => 'archive_open', 'text' => 'The iron grate to the archive stands open.'],
            ],
            'exits' => [
                'w' => 'great_hall',
                'n' => ['to' => 'archive', 'if' => 'archive_open', 'fail' => 'The iron grate is locked. A small keyhole has a book engraved around it.'],
            ],
            'things' => [
                'tome' => ['nouns' => ['tome', 'lectern', 'verse', 'poem'],
                    'desc' => 'A tome open at a page of verse.',
                    'read' => "THE WAY THROUGH THE ECHOES\n\"North to begin, then twice toward the rising sun,\n north once more, then west where the whispers run.\n Turn wrong, and the echoes will lead you home.\""],
                'ledger' => ['nouns' => ['ledger', 'desk'],
                    'desc' => 'A ledger of the foundry\'s work.',
                    'read' => "FOUNDRY LEDGER, final entry:\n\"The Great Bell is hung in the Heart, but we have not cast its clapper. Bring coal to the furnace, set it alight, and feed bronze to the fire. The mould will do the rest.\n\"Bronze from the treasury, or what the digger dragged off to his den.\""],
                'floor_map' => ['nouns' => ['map', 'floor'],
                    'desc' => 'A map painted on the floor.',
                    'read' => "A map of the Halls: the Great Hall at the centre; the lift going down to the Glowing Wood; from there, the river to the east, where a ferry crosses to the Echoes; beyond the Echoes, the Chamber of Three Bells, and the Heart."],
                'grate' => ['nouns' => ['grate', 'keyhole'], 'desc' => 'An iron grate with a small keyhole. A book is engraved around the lock.'],
            ],
        ],

        'archive' => [
            'name' => 'Archive',
            'dark' => true,
            'desc' => 'Narrow aisles of shelves hold instruments instead of books: tuning forks, pitch pipes, little hammers, all laid out in velvet-lined drawers. The library is south.',
            'exits' => ['s' => 'library'],
            'things' => [
                'drawers' => ['nouns' => ['drawers', 'shelves', 'instruments'], 'desc' => 'Most of the drawers are empty now. One always seems to have a tuning fork in it.'],
            ],
            'spawns' => ['tuning_fork' => 120],
        ],

        'treasury' => [
            'name' => 'Treasury of the Craft',
            'dark' => true,
            'desc' => 'Not gold, but bell metal: stacks of bronze ingots, chests of tin, and racks of bells in every size, each one stopped with felt so it cannot ring. The Great Hall is south.',
            'exits' => ['s' => 'great_hall'],
            'things' => [
                'racks' => ['nouns' => ['racks', 'bells', 'chests', 'tin'], 'desc' => 'Thousands of bells, every one of them silenced with felt.'],
                'stacks' => ['nouns' => ['stacks', 'ingots'], 'desc' => 'Most of the ingots are fused together. One always seems to come loose.'],
            ],
            'spawns' => ['bronze_ingot' => 120],
        ],

        'barracks' => [
            'name' => 'Barracks',
            'dark' => true,
            'desc' => 'Rows of stone bunks, each with a footlocker at its foot. Blankets are folded neatly, as if their owners will be back tonight. The Great Hall is southwest.',
            'exits' => ['sw' => 'great_hall'],
            'things' => [
                'footlocker' => ['nouns' => ['footlocker', 'locker', 'footlockers', 'chest'],
                    'desc' => 'Most footlockers hold folded clothes. One is jammed shut.'],
                'bunks' => ['nouns' => ['bunks', 'bunk', 'blankets'], 'desc' => 'Someone has scratched a tally of days into the wall above one bunk. It stops at three hundred and twelve.'],
            ],
        ],

        'kitchens' => [
            'name' => 'Kitchens',
            'dark' => true,
            'desc' => 'Great stone ovens line the walls, cold for centuries. Copper pots hang from hooks, and a long table is set for a meal nobody ate. The Great Hall is southeast.',
            'exits' => ['se' => 'great_hall'],
            'things' => [
                'ovens' => ['nouns' => ['ovens', 'oven'], 'desc' => 'Cold, clean, and big enough to bake bread for an army.'],
                'jar' => ['nouns' => ['jar', 'honey', 'shelf'], 'desc' => 'A jar labelled FOR GRUMBLEBACK. The honey inside has set as hard as stone.'],
                'table' => ['nouns' => ['table', 'pots', 'plates'], 'desc' => 'Places laid for forty. A note on one plate says: BACK SOON.'],
            ],
        ],

        'cistern' => [
            'name' => 'Cistern',
            'dark' => true,
            'desc' => 'Steps lead down into a pillared cistern. Still black water fills most of it, reflecting your light back at you. A dry walkway runs east along the wall. Steps climb back up to the Great Hall.',
            'exits' => ['u' => 'great_hall', 'e' => 'tomb'],
            'things' => [
                'water' => ['nouns' => ['water', 'cistern', 'pillars'], 'desc' => 'Utterly still. When you drop a pebble in, the ripples come back sounding like a far-off bell.'],
            ],
        ],

        'tomb' => [
            'name' => "Bellwrights' Tomb",
            'dark' => true,
            'desc' => 'A quiet vault at the end of the walkway. In the middle stands a stone sarcophagus carved with a bell and a sleeping woman. The walls are covered in carvings. The cistern is west.',
            'exits' => ['w' => 'cistern'],
            'things' => [
                'sarcophagus' => ['nouns' => ['sarcophagus', 'coffin', 'tomb', 'woman'],
                    'desc' => 'Carved on the lid, a woman with a hammer and a bell. There is an inscription.',
                    'read' => "HERE SLEEPS ALDA, FIRST BELLWRIGHT\n\"We sang the hill to sleep so the Great Bell could rest.\n When it wakes, wake it gently: give it a voice, and ring it once.\""],
                'tomb_carvings' => ['nouns' => ['carvings', 'walls'], 'desc' => 'Scenes of bellwrights at work: hauling coal, feeding a furnace, pouring bronze into a mould, hanging a great bell in a cavern of light.'],
            ],
        ],

        'lift_top' => [
            'name' => 'Lift Platform',
            'desc' => 'An iron cage hangs in a shaft that drops into darkness, chains running up into the rock. A lever stands beside it, and next to the lever is a mechanism of gears in a glass case. The Great Hall is northwest.',
            'details' => [
                ['if' => '!lift_fixed', 'text' => 'One gear is missing from the mechanism, leaving an empty spindle.'],
                ['if' => 'lift_fixed', 'text' => 'The mechanism is complete. Its gears tick softly, ready to turn.'],
            ],
            'exits' => ['nw' => 'great_hall'],
            'things' => [
                'lever' => ['nouns' => ['lever'], 'desc' => 'A long iron lever. Pull it to send the cage down.'],
                'mechanism' => ['nouns' => ['mechanism', 'gears', 'case', 'spindle'], 'desc' => 'A clockwork of brass gears. One is missing; the empty spindle is stamped LIFT.'],
                'cage' => ['nouns' => ['cage', 'lift', 'shaft', 'chains'], 'desc' => 'A cage big enough for six people. You step into it whenever you pull the lever.'],
            ],
        ],

        // ==================================================================
        //  CHAPTER 2 — THE LOWER CAVERNS
        // ==================================================================

        'lift_bottom' => [
            'name' => 'Bottom of the Shaft',
            'dark' => true,
            'desc' => 'The lift cage rests at the bottom of the shaft. A lever here sends it back up. A soft blue-green glow comes from a cavern to the north.',
            'exits' => ['n' => 'glowing_wood'],
            'things' => [
                'lever' => ['nouns' => ['lever', 'cage', 'lift'], 'desc' => 'The lever that sends the cage back up. This end always works; a counterweight sees to that.'],
            ],
        ],

        'glowing_wood' => [
            'name' => 'The Glowing Wood',
            'desc' => 'A forest of giant mushrooms fills an enormous cavern, their caps glowing blue and green and gold. Spores drift like snow. Paths wind away in every direction: a web-hung gallery to the east, a flooded gallery to the west, a roost of chittering things to the north, a burrow to the northeast and the sound of a river to the southeast. The lift shaft is south.',
            'exits' => [
                's' => 'lift_bottom', 'e' => 'spider_gallery', 'w' => 'drowned_gallery',
                'n' => 'bat_roost', 'ne' => 'mole_tunnel', 'se' => 'river_dock',
            ],
            'things' => [
                'mushrooms' => ['nouns' => ['mushrooms', 'fungi', 'toadstools', 'caps', 'forest'], 'desc' => 'Some are taller than houses. The small ones that grow at their feet can be picked and carried; they glow on their own.'],
                'spores' => ['nouns' => ['spores', 'snow'], 'desc' => 'They tickle your nose. Try not to sneeze.'],
            ],
            'spawns' => ['glowcap' => 30],
        ],

        'spider_gallery' => [
            'name' => 'Webbed Gallery',
            'dark' => true,
            'desc' => 'Pillars of rock rise into darkness, and between them hang sheets of grey web, thick as sailcloth. The way east is completely blocked. The Glowing Wood is west.',
            'details' => [
                ['if' => '!web_cleared', 'text' => 'Something large shifts in the webs above, watching you with a great many eyes.'],
                ['if' => 'web_cleared', 'text' => 'A ragged hole has been cleared through the webs to the east. Whatever lives up there is sulking.'],
            ],
            'exits' => [
                'w' => 'glowing_wood',
                'e' => ['to' => 'spider_lair', 'if' => 'web_cleared', 'fail' => 'The webs are far too thick and sticky to push through. Fire would clear them. So would a blade, more slowly.'],
            ],
            'things' => [
                'web' => ['nouns' => ['web', 'webs', 'cobweb'], 'if' => '!web_cleared', 'desc' => 'Thick, grey and sticky. It would burn beautifully.'],
                'spider' => ['nouns' => ['spider', 'eyes'], 'desc' => 'You can only see its eyes, which is plenty. It seems more interested in its webs than in you.'],
            ],
        ],

        'spider_lair' => [
            'name' => "Spider's Larder",
            'dark' => true,
            'desc' => 'The spider\'s pantry: dozens of silk-wrapped bundles hang from the ceiling. Most are cave fish and the odd unlucky bat. One bundle near the floor has split open, spilling a few things. The gallery is back to the west.',
            'exits' => ['w' => 'spider_gallery'],
            'things' => [
                'bundles' => ['nouns' => ['bundles', 'bundle', 'silk', 'cocoons'], 'desc' => 'You do not want to know. The split one held a bellwright\'s satchel, now empty but for what spilled out.'],
            ],
            'spawns' => ['brass_key' => 120],
        ],

        'mole_tunnel' => [
            'name' => 'Grumbleback\'s Burrow',
            'dark' => true,
            'desc' => 'A wide, round tunnel dug through soft earth, piled with heaps of spoil. It runs north toward a warm, musty smell. The Glowing Wood is southwest.',
            'details' => [
                ['if' => '!mole_moved', 'text' => 'Blocking the tunnel is Old Grumbleback: a mole the size of a cart horse, with claws like shovels and a very bad temper. He snuffles at you and does not move.'],
            ],
            'exits' => [
                'sw' => 'glowing_wood',
                'n' => ['to' => 'mole_den', 'if' => 'mole_moved', 'fail' => 'Old Grumbleback plants his enormous claws and grumbles. You are not getting past him like that.'],
            ],
            'things' => [
                'mole' => ['nouns' => ['mole', 'grumbleback', 'claws'], 'if' => '!mole_moved',
                    'desc' => 'He is enormous, nearly blind and sniffing the air hopefully. His nose twitches at anything that smells sweet.'],
                'spoil' => ['nouns' => ['spoil', 'heaps', 'earth'], 'desc' => 'Freshly dug. He has been busy.'],
            ],
        ],

        'mole_den' => [
            'name' => 'Grumbleback\'s Den',
            'desc' => 'A snug den lit by glowcaps that Grumbleback has planted in rows. He collects things: a hoard of shiny odds and ends is heaped in one corner. The burrow is south.',
            'exits' => ['s' => 'mole_tunnel'],
            'things' => [
                'hoard' => ['nouns' => ['hoard', 'heap', 'odds', 'ends'], 'desc' => 'Buttons, spoons, a broken lantern, and bronze. He likes bronze.'],
            ],
            'spawns' => ['bronze_ingot' => 120],
        ],

        'drowned_gallery' => [
            'name' => 'Drowned Gallery',
            'desc' => 'Glowing fungus lights a long gallery whose floor drops away into a deep basin. Carved steps lead down into it. The Glowing Wood is east.',
            'details' => [
                ['if' => '!mill_running', 'text' => 'The basin is full to the brim with black, still water. The steps vanish beneath it.'],
                ['if' => 'mill_running', 'text' => 'The water is draining away with a hollow gurgle. The steps lead down to the silty floor below.'],
            ],
            'exits' => [
                'e' => 'glowing_wood',
                'd' => ['to' => 'gallery_floor', 'if' => 'mill_running', 'fail' => 'The basin is full of black water. You would need to drain it first. Water seems to run in from somewhere far above.'],
            ],
            'things' => [
                'basin' => ['nouns' => ['basin', 'water', 'steps'], 'desc' => 'A channel high in the wall feeds water in from far above. It is the stream from the surface, by the taste of it.'],
            ],
        ],

        'gallery_floor' => [
            'name' => 'Bottom of the Gallery',
            'dark' => true,
            'desc' => 'Silt sucks at your feet on the floor of the drained basin. Fish flap in the last puddles. A drowned bellwright\'s tools lie scattered in the mud. The steps climb back up.',
            'exits' => ['u' => 'drowned_gallery'],
            'things' => [
                'silt' => ['nouns' => ['silt', 'mud', 'tools', 'puddles', 'fish'], 'desc' => 'Hammers, tongs, and something long and black half-buried in the silt.'],
            ],
            'spawns' => ['bellwright_key' => 120],
        ],

        'bat_roost' => [
            'name' => 'Bat Roost',
            'dark' => true,
            'desc' => 'The ceiling is alive with bats, thousands of them, hanging in a squeaking, rustling carpet. A passage glitters to the north. The Glowing Wood is south.',
            'details' => [
                ['if' => '!bats_gone', 'text' => 'Every time you step toward the northern passage, the bats drop in a shrieking cloud and drive you back.'],
                ['if' => 'bats_gone', 'text' => 'The bats have fled deeper into the cave. The passage north is clear.'],
            ],
            'exits' => [
                's' => 'glowing_wood',
                'n' => ['to' => 'crystal_grotto', 'if' => 'bats_gone', 'fail' => 'The bats explode from the ceiling in a shrieking cloud and drive you back. They hate something about you. Or perhaps they would hate a loud, clear noise even more.'],
            ],
            'things' => [
                'bats' => ['nouns' => ['bats', 'bat', 'ceiling'], 'desc' => 'Thousands of bats. They flinch at every sharp sound. A good loud ring would send them packing.'],
            ],
        ],

        'crystal_grotto' => [
            'name' => 'Crystal Grotto',
            'desc' => 'A small cave lined with crystals that catch any light and throw it back a thousandfold. Words are carved into the largest crystal. The bat roost is south.',
            'exits' => ['s' => 'bat_roost'],
            'things' => [
                'big_crystal' => ['nouns' => ['inscription', 'words', 'crystals', 'walls'],
                    'desc' => 'Words carved inside the crystal itself, somehow.',
                    'read' => "\"To open the Heart, sing as we sang:\n LOW, and then HIGH, and then MIDDLE.\""],
            ],
            'spawns' => ['star_crystal' => 300],
        ],

        'river_dock' => [
            'name' => 'Underground River',
            'desc' => 'A black river slides past a stone jetty, wide and fast and silent. Glowworms light the ceiling like stars. A ferry boat is tied to the jetty, painted with a faded bell. On the far side, a landing glimmers. The Glowing Wood is northwest.',
            'exits' => ['nw' => 'glowing_wood'],
            'things' => [
                'boat' => ['nouns' => ['boat', 'ferry', 'jetty'], 'desc' => 'A sturdy little ferry. No oars in it. You would need to bring your own.'],
                'river' => ['nouns' => ['river', 'water', 'glowworms'], 'desc' => 'Too fast to swim, and much too cold.'],
            ],
        ],

        'river_landing' => [
            'name' => 'Far Landing',
            'desc' => 'The ferry bumps against a landing on the far side of the river. A carved archway to the north opens on a dark passage full of strange echoes. A slippery ledge leads back along the wall toward the jetty; going the other way, the current has torn it away.',
            'exits' => ['n' => 'maze_entry', 'w' => 'river_dock'],
            'things' => [
                'boat' => ['nouns' => ['boat', 'ferry'], 'desc' => 'The ferry, tied up and waiting. With an oar you could row back.'],
                'ledge' => ['nouns' => ['ledge'], 'desc' => 'Narrow and wet, but you could edge back along it to the jetty. Only one way, though.'],
            ],
        ],

        // ==================================================================
        //  CHAPTER 2 — THE ECHOING MAZE AND THE HEART
        //  Way through: N (into the maze), E, E, N, W.
        // ==================================================================

        'maze_entry' => [
            'name' => 'Mouth of the Echoes',
            'dark' => true,
            'desc' => 'Every sound you make here comes back wrong: too late, too loud, from the wrong side. A sign is carved over the passage north. The landing is south.',
            'exits' => ['s' => 'river_landing', 'n' => 'maze1'],
            'things' => [
                'sign' => ['nouns' => ['sign', 'carving'], 'desc' => 'A carved sign.',
                    'read' => "THE ECHOES\n\"Strike true and listen. Turn wrong, and the echoes will lead you home.\""],
            ],
        ],

        'maze1' => [
            'name' => 'Echoing Passage', 'dark' => true,
            'desc' => 'Twisting passages lead off in every direction. Your footsteps come back to you from all of them at once.',
            'exits' => ['e' => 'maze2', 'n' => 'maze5', 'w' => 'maze_entry', 's' => 'maze_entry'],
        ],
        'maze2' => [
            'name' => 'Echoing Passage', 'dark' => true,
            'desc' => 'Twisting passages lead off in every direction. Your footsteps come back to you from all of them at once.',
            'exits' => ['e' => 'maze3', 'n' => 'maze1', 'w' => 'maze1', 's' => 'maze5'],
        ],
        'maze3' => [
            'name' => 'Echoing Passage', 'dark' => true,
            'desc' => 'Twisting passages lead off in every direction. Your footsteps come back to you from all of them at once.',
            'exits' => ['n' => 'maze4', 'e' => 'maze5', 's' => 'maze_entry', 'w' => 'maze2'],
        ],
        'maze4' => [
            'name' => 'Echoing Passage', 'dark' => true,
            'desc' => 'Twisting passages lead off in every direction. Your footsteps come back to you from all of them at once. A faint whispering comes from somewhere.',
            'exits' => ['w' => 'whisper_chamber', 'n' => 'maze5', 'e' => 'maze1', 's' => 'maze3'],
        ],
        'maze5' => [
            'name' => 'Echoing Passage', 'dark' => true,
            'desc' => 'Twisting passages lead off in every direction. Your footsteps come back to you from all of them at once.',
            'exits' => ['n' => 'maze_entry', 'e' => 'maze_entry', 's' => 'maze_entry', 'w' => 'maze_entry'],
        ],

        'whisper_chamber' => [
            'name' => 'Chamber of Whispers',
            'dark' => true,
            'desc' => 'The echoes fall silent here, replaced by whispers that seem to come from the stone itself. They say the same three words over and over. An archway leads north. The maze is east.',
            'exits' => ['e' => 'maze4', 'n' => 'bell_chamber'],
            'things' => [
                'whispers' => ['nouns' => ['whispers', 'stone', 'voices', 'words'], 'desc' => 'You lean close and listen. "Low... high... middle... low... high... middle..."'],
            ],
        ],

        'bell_chamber' => [
            'name' => 'Chamber of Three Bells',
            'dark' => true,
            'desc' => 'Three bronze bells hang in a row from a carved beam: a deep one, broad as a barrel; a tiny high one; and one between. Behind them, a round door of polished bronze fills the north wall. The whispering chamber is south.',
            'details' => [
                ['if' => 'great_door', 'text' => 'The round bronze door has rolled aside. Warm golden light spills from the north.'],
            ],
            'exits' => [
                's' => 'whisper_chamber',
                'n' => ['to' => 'heart', 'if' => 'great_door', 'fail' => 'The round bronze door is shut fast. It has no handle. Three bells hang before it, waiting.'],
            ],
            'things' => [
                'low_bell' => ['nouns' => ['low', 'deep', 'bass', 'big', 'deepest'], 'desc' => 'The deep bell, broad as a barrel. Ring the low bell to hear it.'],
                'high_bell' => ['nouns' => ['high', 'small', 'tiny', 'treble', 'highest'], 'desc' => 'A tiny bell. Ring the high bell to hear it.'],
                'middle_bell' => ['nouns' => ['middle', 'mid', 'medium', 'between'], 'desc' => 'The one between. Ring the middle bell to hear it.'],
                'bronze_door' => ['nouns' => ['door', 'bronze'], 'desc' => 'A great round door of polished bronze. Your reflection looks back, worried.'],
            ],
        ],

        'heart' => [
            'name' => 'Heart of the Hill',
            'desc' => 'A cavern of golden stone, shaped like the inside of a bell. In the centre, hanging from chains thicker than tree trunks, is the Great Bell: silent, enormous and very old. High above, a shaft climbs toward a speck of sky. The Chamber of Three Bells is south.',
            'details' => [
                ['if' => '!bell_voiced', 'text' => 'The Great Bell has no clapper. It hangs empty and voiceless.'],
                ['if' => 'bell_voiced', 'text' => 'A bronze clapper now hangs inside the Great Bell. It only needs a ring.'],
                ['if' => 'hill_awake', 'text' => 'Golden light pours up the shaft, and rough steps have opened in the wall, climbing toward the top of the hill.'],
            ],
            'exits' => [
                's' => 'bell_chamber',
                'u' => ['to' => 'hilltop', 'if' => 'hill_awake', 'fail' => 'The shaft rises sheer and smooth. There is no way up. Not yet.'],
            ],
            'things' => [
                'great_bell' => ['nouns' => ['bell', 'great', 'chains'], 'desc' => 'The Great Bell of the bellwrights, bigger than a house. Inside, an empty hook waits for a clapper.'],
                'hook' => ['nouns' => ['hook'], 'desc' => 'A hook inside the bell, made for a clapper as long as a man.'],
            ],
        ],

        'hilltop' => [
            'name' => 'Top of the Hollow Hill',
            'desc' => 'Wind and wide sky. You stand on the bare round top of the hill, beside the shaft you climbed out of. Hollowmere lies below: the square, the chapel tower, the mill wheel turning. A sheep track winds south down the hillside to the Old Road.',
            'exits' => ['d' => 'heart', 's' => 'old_road'],
            'things' => [
                'sky' => ['nouns' => ['sky', 'view', 'village', 'stars'], 'desc' => 'All of Hollowmere, and beyond it fields and forest to the edge of the world. It would be a good place to hold something up to the sky.'],
            ],
        ],
    ],

    // ------------------------------------------------------------------ rules
    // What happens when someone tries something. The first matching rule wins,
    // so put specific rules before general ones.
    //
    //   verbs   words that trigger the rule
    //   target  the thing or item acted on ('rat', 'brambles', 'rope'…)
    //   with    item the player must be carrying to use ('dagger'). If the player
    //           types no "with …" and carries one, it is used automatically.
    //   lit     true = the 'with' item must be lit
    //   room    only in this room
    //   if      switches that must be on ('x') or off ('!x')
    //   set     switches to turn on: ['rat_gone' => 300] (seconds, 0 = forever)
    //   unset   switches to turn off
    //   consume 'with' or 'target': that carried item is used up
    //   give    an item handed to the player
    //   move    a room the player is moved to (a boat, a lift); 'arrive' = what people there see
    //   coop    needs this many different players doing it within 'window' seconds
    //   say     what the player sees; others = what everyone else in the room sees
    //   journal entry added to the journal of everyone in the room
    'rules' => [

        // ============================================================ CHAPTER 1

        // --- The rat (Dark Tunnel)
        ['verbs' => ['kill', 'attack', 'stab', 'hit', 'fight', 'slay'], 'target' => 'rat', 'with' => 'dagger',
         'room' => 'dark_tunnel', 'if' => ['!rat_gone'], 'set' => ['rat_gone' => 300],
         'say' => 'You lunge with the dagger. The rat squeals once and goes still. The way east is clear, for now. There are always more rats.',
         'others' => '{name} kills the rat with a dagger. The way east is clear.'],
        ['verbs' => ['kill', 'attack', 'stab', 'hit', 'fight', 'slay', 'kick', 'punch'], 'target' => 'rat',
         'say' => 'You swing at the rat. It dodges easily and nips your hand. You need a blade.'],
        ['verbs' => ['give', 'throw', 'feed', 'offer', 'toss'], 'target' => 'apple', 'with' => 'rat', 'consume' => 'target',
         'room' => 'dark_tunnel', 'if' => ['!rat_gone'], 'set' => ['rat_gone' => 300],
         'say' => 'You toss the apple. The rat snatches it and waddles off into a crack in the wall, very pleased with itself. The way east is clear.',
         'others' => '{name} bribes the rat with an apple. It waddles off. The way east is clear.'],
        ['verbs' => ['feed'], 'target' => 'rat', 'with' => 'apple', 'consume' => 'with',
         'room' => 'dark_tunnel', 'if' => ['!rat_gone'], 'set' => ['rat_gone' => 300],
         'say' => 'You toss the apple. The rat snatches it and waddles off into a crack in the wall, very pleased with itself. The way east is clear.',
         'others' => '{name} bribes the rat with an apple. It waddles off. The way east is clear.'],

        // --- The brambles (Hill Gate)
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'chop', 'trim'], 'target' => 'brambles', 'with' => 'sickle',
         'room' => 'hill_gate', 'if' => ['!brambles_cut'], 'set' => ['brambles_cut' => 1800],
         'say' => 'You swing the sickle in long sweeps. Thorns snag your sleeves, but the brambles fall away. A path opens north into the hill.',
         'others' => '{name} hacks through the brambles with a sickle. A path opens north.'],
        ['verbs' => ['burn', 'light', 'ignite', 'torch'], 'target' => 'brambles', 'with' => 'torch', 'lit' => true,
         'room' => 'hill_gate', 'if' => ['!brambles_cut'], 'set' => ['brambles_cut' => 1800],
         'say' => 'You touch the torch to the brambles. They crackle, smoke and shrivel back. A path opens north into the hill.',
         'others' => '{name} burns away the brambles with a torch. A path opens north.'],
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'chop', 'trim'], 'target' => 'brambles', 'with' => 'dagger',
         'say' => 'You saw at the brambles with the dagger and get nowhere. You need something with a longer, curved blade.'],
        ['verbs' => ['burn', 'ignite', 'light'], 'target' => 'brambles', 'with' => 'torch',
         'say' => 'Your torch is not lit. Light it first.'],
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'chop', 'trim', 'burn', 'pull', 'push'], 'target' => 'brambles',
         'say' => 'You tug at the brambles and get a handful of thorns for your trouble. You need a blade, or fire.'],

        // --- The well (Village Square)
        ['verbs' => ['tie', 'attach', 'fasten', 'lower', 'hang'], 'target' => 'rope', 'with' => 'well', 'consume' => 'target',
         'room' => 'square', 'if' => ['!well_rope'], 'set' => ['well_rope' => 3600],
         'say' => 'You knot the rope firmly around the well and let it drop. Anyone can climb down now.',
         'others' => '{name} ties a rope to the well. Anyone can climb down now.'],
        ['verbs' => ['tie', 'attach', 'fasten', 'lower', 'hang'], 'target' => 'rope', 'with' => 'well',
         'room' => 'square', 'if' => ['well_rope'], 'say' => 'There is already a rope tied to the well.'],

        // --- The crypt door (Chapel)
        ['verbs' => ['unlock', 'open'], 'target' => 'door', 'with' => 'iron_key',
         'room' => 'chapel', 'if' => ['!crypt_open'], 'set' => ['crypt_open' => 1800],
         'say' => 'The iron key turns with a grinding clunk. You haul the door open. Stairs lead down into the cold dark of the crypt.',
         'others' => '{name} unlocks the crypt door. Stairs lead down.'],
        ['verbs' => ['open', 'unlock', 'push', 'pull'], 'target' => 'door', 'room' => 'chapel', 'if' => ['!crypt_open'],
         'say' => 'The door is locked. The keyhole is large and old.'],

        // --- The slab (Collapsed Hall): two people at once, or one person with a prybar
        ['verbs' => ['pry', 'prise', 'prize', 'lever', 'force', 'jimmy', 'wedge', 'push', 'move', 'shove', 'heave', 'slide'],
         'target' => 'slab', 'with' => 'prybar',
         'room' => 'collapsed_hall', 'if' => ['!slab_open'], 'set' => ['slab_open' => 600],
         'say' => 'You wedge the prybar into the gap at the base of the slab and throw your weight on it. Inch by grinding inch, the slab slides aside. The archway north is open.',
         'others' => '{name} levers the great slab aside with a prybar. The archway north is open.'],
        ['verbs' => ['push', 'move', 'shove', 'heave', 'pull', 'slide'], 'target' => 'slab',
         'room' => 'collapsed_hall', 'if' => ['!slab_open'], 'coop' => 2, 'window' => 30, 'set' => ['slab_open' => 600],
         'say' => 'You both brace against the handholds and heave. With a grinding roar, the slab slides aside. The archway north is open.',
         'others' => 'The slab grinds aside! The archway north is open.',
         'waiting' => 'You strain against the slab. It shifts a finger\'s width, then settles back. One pair of hands is not enough. If someone else pushes too, within the next half minute… Or if you had something to lever it with, there is a gap at the base.',
         'waiting_others' => '{name} strains against the stone slab. It shifts slightly. It needs a second pair of hands.'],

        // --- The shrine finale: opens the way to Chapter 2
        ['verbs' => ['put', 'place', 'insert', 'set', 'fit'], 'target' => 'moonstone', 'with' => 'hollow', 'consume' => 'target',
         'room' => 'shrine', 'if' => ['!moonstone_set'], 'set' => ['moonstone_set' => 900],
         'say' => 'The moonstone settles into the hollow as if it grew there. Its glow brightens. The shrine seems to hold its breath.',
         'others' => '{name} sets a moonstone into the hollow in the altar. It glows brighter.'],
        ['verbs' => ['ring', 'shake', 'chime'], 'target' => 'silver_bell', 'room' => 'shrine', 'if' => ['moonstone_set'],
         'unset' => ['moonstone_set'], 'set' => ['deep_door' => 21600], 'journal' => 'The Hollow Hill: rang the bell at the Hollow Shrine',
         'say' => "You ring the silver bell. The note rolls down into the hill and comes back a hundredfold. The moonstone flares white and crumbles to glowing dust, and the whole hill seems to breathe out.\nFar below, in the Deep Tunnel, a door you have never seen grinds open.\n(Chapter 1 complete! Your journal has been updated. Chapter 2 waits beneath the Deep Tunnel.)",
         'others' => "{name} rings a silver bell. The note rolls through the hill and the moonstone flares white and crumbles to dust. Far below, a door grinds open.\n(Chapter 1 complete! Your journal has been updated. Chapter 2 waits beneath the Deep Tunnel.)"],
        ['verbs' => ['ring', 'shake', 'chime'], 'target' => 'silver_bell', 'room' => 'shrine',
         'say' => 'The bell\'s note dies against the altar. The hollow stays dark. Something belongs in it first.'],

        // ============================================================ OUTSKIRTS

        // --- Marta at the inn
        ['verbs' => ['ask', 'question', 'greet', 'hello', 'chat'], 'target' => 'marta',
         'say' => "Marta leans on the bar. \"The hill? My gran said the bellwrights went down there and sang it to sleep, and never came back up. Three notes, she said. If you want the notes, go and read Wenna's grave. And if you want the wheel at the mill turned, take a blade or a bar. That branch has been stuck since spring.\""],

        // --- The cellar crate: a brass gear for the lift
        ['verbs' => ['pry', 'prise', 'prize', 'lever', 'force', 'jimmy', 'open', 'break'], 'target' => 'crate', 'with' => 'prybar',
         'room' => 'inn_cellar', 'if' => ['!crate_open'], 'set' => ['crate_open' => 300], 'give' => 'brass_gear',
         'say' => 'You jam the prybar under the lid and heave. The nails shriek out one by one. Inside, packed in straw, lies a heavy brass gear stamped LIFT.',
         'others' => '{name} pries open the old crate in the corner.'],
        ['verbs' => ['pry', 'prise', 'lever', 'force', 'open', 'break', 'search'], 'target' => 'crate', 'room' => 'inn_cellar', 'if' => ['crate_open'],
         'say' => 'The crate is empty now. Somebody has already taken what was inside. (More turns up in a few minutes; Marta never throws anything away.)'],
        ['verbs' => ['open', 'break', 'pull', 'kick'], 'target' => 'crate',
         'say' => 'The lid is nailed down hard. You would need something to lever it up with.'],

        // --- The bell tower
        ['verbs' => ['tie', 'attach', 'fasten', 'throw', 'hang', 'loop'], 'target' => 'rope', 'with' => 'beam', 'consume' => 'target',
         'room' => 'tower_base', 'if' => ['!tower_rope'], 'set' => ['tower_rope' => 3600],
         'say' => 'You toss the rope over the beam and knot it tight. Now you can climb up to the belfry.',
         'others' => '{name} throws a rope over the beam. The belfry is reachable.'],

        // --- The mill wheel: draining the gallery far below
        ['verbs' => ['cut', 'slash', 'hack', 'chop', 'saw'], 'target' => 'branch', 'with' => 'sickle',
         'room' => 'mill_yard', 'if' => ['!mill_running'], 'set' => ['mill_running' => 1800],
         'say' => 'You hack at the branch until it cracks and tears free. The wheel lurches, groans and begins to turn. The sluice opens with a roar, and water pours away down a channel into the ground.',
         'others' => '{name} cuts the branch free. The mill wheel begins to turn, and the sluice roars open.'],
        ['verbs' => ['pry', 'prise', 'prize', 'lever', 'force', 'jimmy', 'pull', 'remove', 'free'], 'target' => 'branch', 'with' => 'prybar',
         'room' => 'mill_yard', 'if' => ['!mill_running'], 'set' => ['mill_running' => 1800],
         'say' => 'You wedge the prybar behind the branch and heave. It pops free and spins away downstream. The wheel lurches, groans and begins to turn. The sluice opens with a roar, and water pours away down a channel into the ground.',
         'others' => '{name} levers the branch free. The mill wheel begins to turn, and the sluice roars open.'],
        ['verbs' => ['cut', 'pull', 'remove', 'free', 'pry', 'push', 'kick'], 'target' => 'branch',
         'say' => 'The branch is jammed solid. You would need a blade to cut it, or a bar to lever it out.'],

        // --- The boathouse door
        ['verbs' => ['pry', 'prise', 'prize', 'lever', 'force', 'jimmy', 'open'], 'target' => 'boathouse_door', 'with' => 'prybar',
         'room' => 'riverbank', 'if' => ['!boathouse_open'], 'set' => ['boathouse_open' => 1800],
         'say' => 'You jam the prybar into the frame and lean on it. With a wet crack, the swollen door pops open.',
         'others' => '{name} levers the boathouse door open.'],
        ['verbs' => ['open', 'push', 'pull', 'kick', 'force'], 'target' => 'boathouse_door', 'room' => 'riverbank', 'if' => ['!boathouse_open'],
         'say' => 'The door is swollen solid in its frame. You would need something to lever it open.'],

        // --- The footbridge
        ['verbs' => ['put', 'place', 'lay', 'set', 'drop', 'use'], 'target' => 'plank', 'with' => 'bridge', 'consume' => 'target',
         'room' => 'broken_bridge', 'if' => ['!bridge_fixed'], 'set' => ['bridge_fixed' => 3600],
         'say' => 'You lay the plank across the gap and stamp on it. It holds. The way east is open.',
         'others' => '{name} lays a plank across the gap in the bridge. The way east is open.'],
        ['verbs' => ['jump', 'leap', 'cross'], 'target' => 'bridge', 'if' => ['!bridge_fixed'],
         'say' => 'You eye the gap, think about the cold brown river, and decide against it. A plank would do it.'],

        // --- The standing stones: they answer a bell
        ['verbs' => ['ring', 'shake', 'chime'], 'target' => 'silver_bell', 'room' => 'standing_stones',
         'say' => "You ring the silver bell. One by one the stones answer, each in its own voice, until the whole ring is humming.\nThe hum settles on a single note, neither low nor high but somewhere in between, and holds there, as if to say: this one comes last.",
         'others' => '{name} rings a silver bell, and the standing stones hum in answer, settling on a note in between.'],

        // --- The beehive: honeycomb for Grumbleback
        ['verbs' => ['smoke', 'burn', 'light', 'hold', 'wave', 'use'], 'target' => 'hive', 'with' => 'torch', 'lit' => true,
         'room' => 'hermit_hut', 'if' => ['!hive_smoked'], 'set' => ['hive_smoked' => 120], 'give' => 'honeycomb',
         'say' => 'You wave the smoking torch at the hive. The bees go drowsy and slow. Carefully, you reach in and lift out a dripping slab of honeycomb.',
         'others' => '{name} smokes the beehive with a torch and lifts out a honeycomb.'],
        ['verbs' => ['smoke', 'burn', 'light', 'use'], 'target' => 'hive', 'with' => 'torch',
         'say' => 'Your torch is not lit. Bees are not scared of a stick.'],
        ['verbs' => ['open', 'search', 'reach', 'rob', 'smoke', 'take', 'get'], 'target' => 'hive', 'if' => ['hive_smoked'],
         'say' => 'The bees are still sulking after the last raid. Give them a couple of minutes.'],
        ['verbs' => ['open', 'search', 'reach', 'rob', 'kick', 'hit', 'touch'], 'target' => 'hive',
         'say' => 'You reach for the hive and the bees pour out in a furious cloud. You retreat, swatting and yelping. Smoke would calm them.'],

        // ============================================================ CHAPTER 2: THE HALLS

        // --- The portcullis
        ['verbs' => ['turn', 'wind', 'crank', 'use', 'fit', 'put', 'insert', 'attach'], 'target' => 'winch', 'with' => 'iron_crank',
         'room' => 'gatehouse', 'if' => ['!portcullis_up'], 'set' => ['portcullis_up' => 1800],
         'say' => 'You fit the crank into the socket and wind. Chain rattles onto the drum, and with a shriek of iron the portcullis rises. The archway north is open.',
         'others' => '{name} winches up the portcullis. The archway north is open.'],
        ['verbs' => ['put', 'fit', 'insert', 'attach', 'use'], 'target' => 'iron_crank', 'with' => 'winch',
         'room' => 'gatehouse', 'if' => ['!portcullis_up'], 'set' => ['portcullis_up' => 1800],
         'say' => 'You fit the crank into the socket and wind. Chain rattles onto the drum, and with a shriek of iron the portcullis rises. The archway north is open.',
         'others' => '{name} winches up the portcullis. The archway north is open.'],
        ['verbs' => ['turn', 'wind', 'crank', 'pull', 'push'], 'target' => 'winch',
         'say' => 'The winch has no handle, just an empty square socket.'],
        ['verbs' => ['lift', 'raise', 'pull', 'push', 'pry', 'open'], 'target' => 'portcullis',
         'say' => 'It weighs as much as a house. It is meant to be winched up.'],

        // --- The treasury door
        ['verbs' => ['unlock', 'open'], 'target' => 'treasury_door', 'with' => 'bellwright_key',
         'room' => 'great_hall', 'if' => ['!treasury_open'], 'set' => ['treasury_open' => 1800],
         'say' => 'The bell-shaped key slides home. Something deep inside the door rings softly, and it swings open on the Treasury of the Craft.',
         'others' => '{name} unlocks the treasury door. It swings open.'],
        ['verbs' => ['open', 'unlock', 'push', 'pull', 'pry'], 'target' => 'treasury_door', 'if' => ['!treasury_open'],
         'say' => 'Locked, and too strong to force. The keyhole is shaped like a bell.'],

        // --- The archive grate
        ['verbs' => ['unlock', 'open'], 'target' => 'grate', 'with' => 'brass_key',
         'room' => 'library', 'if' => ['!archive_open'], 'set' => ['archive_open' => 1800],
         'say' => 'The little brass key turns sweetly. The grate swings open on the archive.',
         'others' => '{name} unlocks the archive grate.'],
        ['verbs' => ['open', 'unlock', 'pull', 'push', 'pry'], 'target' => 'grate', 'if' => ['!archive_open'],
         'say' => 'The grate is locked. Its little keyhole has a book engraved around it.'],

        // --- The barracks footlocker (a little story)
        ['verbs' => ['pry', 'prise', 'lever', 'force', 'open', 'jimmy'], 'target' => 'footlocker', 'with' => 'prybar',
         'room' => 'barracks',
         'say' => "You lever the jammed footlocker open. Inside, under folded clothes, is a letter:\n\"Dear Mam, the singing is tomorrow. They say the hill will sleep and the Great Bell will rest, and we will sleep with it a while. Don't worry. Wenna says we will wake when someone rings it again. Save me a loaf. — Tam\""],
        ['verbs' => ['open', 'pull', 'kick'], 'target' => 'footlocker', 'say' => 'It is jammed shut. A bar would open it.'],

        // --- The foundry: casting a clapper for the Great Bell
        ['verbs' => ['put', 'place', 'add', 'drop', 'throw', 'shovel', 'load', 'fuel'], 'target' => 'coal', 'with' => 'furnace', 'consume' => 'target',
         'room' => 'foundry', 'if' => ['!furnace_fueled'], 'set' => ['furnace_fueled' => 900],
         'say' => 'You heave the coal into the furnace. It is ready to light.',
         'others' => '{name} loads coal into the furnace.'],
        ['verbs' => ['put', 'place', 'add', 'drop', 'throw'], 'target' => 'coal', 'with' => 'furnace', 'room' => 'foundry',
         'say' => 'The furnace already has plenty of coal in it.'],
        ['verbs' => ['light', 'ignite', 'burn', 'fire', 'kindle', 'use'], 'target' => 'furnace', 'with' => 'torch', 'lit' => true,
         'room' => 'foundry', 'if' => ['furnace_fueled', '!furnace_lit'], 'set' => ['furnace_lit' => 900],
         'say' => 'You thrust the torch into the coal. It smoulders, catches, and then the furnace bursts into a white-hot roar that fills the foundry with light. The crucible above the mould begins to glow.',
         'others' => '{name} lights the great furnace. It roars into white-hot life.'],
        ['verbs' => ['light', 'ignite', 'burn', 'fire', 'kindle'], 'target' => 'furnace', 'if' => ['!furnace_fueled'],
         'say' => 'There is nothing in the furnace to burn. It needs coal first.'],
        ['verbs' => ['light', 'ignite', 'burn', 'fire', 'kindle'], 'target' => 'furnace', 'if' => ['furnace_lit'],
         'say' => 'The furnace is already roaring.'],
        ['verbs' => ['light', 'ignite', 'burn', 'fire', 'kindle'], 'target' => 'furnace',
         'say' => 'You need a burning torch to light it.'],
        ['verbs' => ['put', 'place', 'drop', 'pour', 'melt', 'cast', 'throw', 'add', 'feed'], 'target' => 'bronze_ingot', 'with' => 'mould', 'consume' => 'target',
         'room' => 'foundry', 'if' => ['furnace_lit'], 'give' => 'bronze_clapper',
         'say' => "You drop the ingot into the glowing crucible. It slumps, melts and runs down the channel in a bright ribbon, filling the mould with a hiss. You wait while it cools, then lever it out: a great bronze clapper, still warm.",
         'others' => '{name} melts a bronze ingot in the furnace and casts a great bronze clapper.'],
        ['verbs' => ['put', 'place', 'drop', 'pour', 'melt', 'cast', 'throw', 'add', 'feed'], 'target' => 'bronze_ingot', 'with' => 'furnace', 'consume' => 'target',
         'room' => 'foundry', 'if' => ['furnace_lit'], 'give' => 'bronze_clapper',
         'say' => "You drop the ingot into the glowing crucible. It slumps, melts and runs down the channel in a bright ribbon, filling the mould with a hiss. You wait while it cools, then lever it out: a great bronze clapper, still warm.",
         'others' => '{name} melts a bronze ingot in the furnace and casts a great bronze clapper.'],
        ['verbs' => ['put', 'place', 'drop', 'pour', 'melt', 'cast', 'throw', 'add', 'feed'], 'target' => 'bronze_ingot', 'with' => 'mould',
         'say' => 'Cold bronze in a cold mould does nothing. The furnace has to be roaring first.'],
        ['verbs' => ['pump', 'work', 'use', 'push', 'squeeze'], 'target' => 'bellows', 'room' => 'foundry', 'if' => ['furnace_lit'],
         'say' => 'You pump the great bellows. The furnace howls and spits sparks. Very satisfying, and entirely unnecessary.'],
        ['verbs' => ['pump', 'work', 'use', 'push', 'squeeze'], 'target' => 'bellows',
         'say' => 'The bellows wheeze dust into a cold furnace.'],

        // --- The lift
        ['verbs' => ['put', 'place', 'fit', 'insert', 'attach', 'install', 'use'], 'target' => 'brass_gear', 'with' => 'mechanism', 'consume' => 'target',
         'room' => 'lift_top', 'if' => ['!lift_fixed'], 'set' => ['lift_fixed' => 3600],
         'say' => 'The brass gear slides onto the empty spindle and meshes with a satisfying click. The whole mechanism shivers and begins to tick.',
         'others' => '{name} fits a brass gear into the lift mechanism. It begins to tick.'],
        ['verbs' => ['pull', 'push', 'use', 'move', 'yank', 'throw'], 'target' => 'lever', 'room' => 'lift_top', 'if' => ['lift_fixed'],
         'move' => 'lift_bottom',
         'say' => 'You step into the cage and haul on the lever. Chains rattle, gears whir, and the cage drops smoothly into the dark, down and down, until it settles with a clank.',
         'others' => '{name} pulls the lever and sinks out of sight in the lift cage.',
         'arrive' => 'The lift cage rattles down the shaft. {name} steps out.'],
        ['verbs' => ['pull', 'push', 'use', 'move', 'yank', 'throw'], 'target' => 'lever', 'room' => 'lift_top',
         'say' => 'The lever will not budge. Peering at the mechanism, you see why: one gear is missing from its spindle.'],
        ['verbs' => ['pull', 'push', 'use', 'move', 'yank', 'throw'], 'target' => 'lever', 'room' => 'lift_bottom',
         'move' => 'lift_top',
         'say' => 'You step into the cage and pull the lever. The counterweight drops past you in the dark, and the cage rises smoothly all the way up to the Halls.',
         'others' => '{name} rides the lift cage back up out of sight.',
         'arrive' => 'The lift cage rises out of the shaft. {name} steps out.'],

        // ============================================================ CHAPTER 2: THE CAVERNS

        // --- The webs
        ['verbs' => ['burn', 'light', 'ignite', 'torch', 'use'], 'target' => 'web', 'with' => 'torch', 'lit' => true,
         'room' => 'spider_gallery', 'if' => ['!web_cleared'], 'set' => ['web_cleared' => 600],
         'say' => 'You touch the torch to the web. Flame races across it with a crackling hiss, and the whole sheet shrivels away. Above, something big scuttles off in a huff. The way east is open.',
         'others' => '{name} burns a hole through the webs. The way east is open.'],
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'use', 'chop'], 'target' => 'web', 'with' => 'dagger',
         'room' => 'spider_gallery', 'if' => ['!web_cleared'], 'set' => ['web_cleared' => 600],
         'say' => 'You saw through the sticky strands with the dagger, a long and gummy job, until there is a hole big enough to squeeze through. The way east is open.',
         'others' => '{name} cuts a way through the webs. The way east is open.'],
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'use', 'chop'], 'target' => 'web', 'with' => 'sickle',
         'room' => 'spider_gallery', 'if' => ['!web_cleared'], 'set' => ['web_cleared' => 600],
         'say' => 'You sweep the sickle through the webs. The strands part, stickily. The way east is open.',
         'others' => '{name} cuts a way through the webs. The way east is open.'],
        ['verbs' => ['cut', 'slash', 'hack', 'clear', 'burn', 'pull', 'push', 'tear'], 'target' => 'web',
         'say' => 'The web sticks to your hands like glue. You need fire, or a blade.'],
        ['verbs' => ['kill', 'attack', 'hit', 'fight', 'stab'], 'target' => 'spider',
         'say' => 'It is up in the dark, well out of reach, and frankly bigger than you. Leave it be. It only wants its webs.'],

        // --- Old Grumbleback
        ['verbs' => ['give', 'feed', 'offer', 'throw', 'toss'], 'target' => 'honeycomb', 'with' => 'mole', 'consume' => 'target',
         'room' => 'mole_tunnel', 'if' => ['!mole_moved'], 'set' => ['mole_moved' => 600],
         'say' => 'You hold out the honeycomb. Grumbleback\'s nose quivers. He snatches it with surprising delicacy, sighs with deep contentment, and shuffles aside to eat it in peace. The way north is clear.',
         'others' => '{name} gives Grumbleback a honeycomb. He shuffles aside, munching. The way north is clear.'],
        ['verbs' => ['feed'], 'target' => 'mole', 'with' => 'honeycomb', 'consume' => 'with',
         'room' => 'mole_tunnel', 'if' => ['!mole_moved'], 'set' => ['mole_moved' => 600],
         'say' => 'You hold out the honeycomb. Grumbleback\'s nose quivers. He snatches it with surprising delicacy, sighs with deep contentment, and shuffles aside to eat it in peace. The way north is clear.',
         'others' => '{name} gives Grumbleback a honeycomb. He shuffles aside, munching. The way north is clear.'],
        ['verbs' => ['give', 'feed', 'offer', 'throw', 'toss'], 'target' => 'apple', 'with' => 'mole',
         'say' => 'Grumbleback sniffs the apple and sneezes on it. Sweet, but not sweet enough.'],
        ['verbs' => ['give', 'feed', 'offer', 'throw', 'toss'], 'target' => 'bread', 'with' => 'mole',
         'say' => 'Grumbleback sniffs the bread, considers it, and turns his nose up. He wants something much sweeter.'],
        ['verbs' => ['kill', 'attack', 'hit', 'fight', 'stab', 'push', 'shove', 'pry'], 'target' => 'mole',
         'say' => 'You might as well shove the hill itself. Grumbleback grumbles. He wants something sweet.'],

        // --- The bats
        ['verbs' => ['ring', 'shake', 'chime'], 'target' => 'silver_bell', 'room' => 'bat_roost', 'if' => ['!bats_gone'],
         'set' => ['bats_gone' => 600],
         'say' => 'You ring the silver bell, loud and clear. The roost erupts: thousands of bats pour off the ceiling in a shrieking river and flee deep into the cave. The way north is clear.',
         'others' => '{name} rings a silver bell, and the bats flee shrieking. The way north is clear.'],

        // --- The ferry
        ['verbs' => ['row', 'board', 'sail', 'launch', 'paddle', 'take', 'use', 'cross', 'ride'], 'target' => 'boat', 'with' => 'oar',
         'room' => 'river_dock', 'move' => 'river_landing',
         'say' => 'You climb into the ferry, cast off and row. The current tugs at the boat, but the oar bites deep, and the black water slides by until you bump against the far landing.',
         'others' => '{name} rows the ferry across the black river.',
         'arrive' => 'The ferry bumps against the landing. {name} climbs out.'],
        ['verbs' => ['row', 'board', 'sail', 'launch', 'paddle', 'take', 'use', 'cross', 'ride'], 'target' => 'boat', 'with' => 'oar',
         'room' => 'river_landing', 'move' => 'river_dock',
         'say' => 'You push off and row back across the river to the jetty.',
         'others' => '{name} rows the ferry back across the river.',
         'arrive' => 'The ferry glides out of the dark and bumps against the jetty. {name} climbs out.'],
        ['verbs' => ['row', 'board', 'sail', 'launch', 'paddle', 'cross', 'ride', 'swim'], 'target' => 'boat',
         'say' => 'There are no oars in the boat, and the current is far too strong to paddle with your hands. You need an oar.'],
        ['verbs' => ['swim', 'cross', 'wade'], 'target' => 'river',
         'say' => 'You dip a toe in. The cold bites like teeth. No.'],

        // --- The tuning fork in the maze
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze_entry',
         'say' => 'You strike the fork. Its note runs north into the passages and comes back clear. That is the way in.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze1',
         'say' => 'You strike the fork. The note rings truest to the east.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze2',
         'say' => 'You strike the fork. The note rings truest to the east.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze3',
         'say' => 'You strike the fork. The note rings truest to the north.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze4',
         'say' => 'You strike the fork. The note rings truest to the west, where the whispering is.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork', 'room' => 'maze5',
         'say' => 'You strike the fork. The note dies flat in every direction. This passage goes nowhere but home.'],
        ['verbs' => ['strike', 'ring', 'tap', 'hit', 'sound', 'use', 'listen'], 'target' => 'tuning_fork',
         'say' => 'The fork hums a pure, clean note. Somewhere with stranger echoes, it might tell you more.'],

        // --- The Chamber of Three Bells: LOW, HIGH, MIDDLE
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'low_bell', 'room' => 'bell_chamber',
         'if' => ['!great_door', '!tone1'], 'set' => ['tone1' => 120],
         'say' => 'BONNNG. The low bell\'s note rolls through the chamber and seems to sink into the floor. The bronze door shivers.',
         'others' => '{name} rings the low bell. BONNNG.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'high_bell', 'room' => 'bell_chamber',
         'if' => ['!great_door', 'tone1', '!tone2'], 'set' => ['tone2' => 120],
         'say' => 'TING. The high bell answers, bright and clear, and the low note still hums beneath it. The bronze door shivers again.',
         'others' => '{name} rings the high bell. TING.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'middle_bell', 'room' => 'bell_chamber',
         'if' => ['!great_door', 'tone2'], 'unset' => ['tone1', 'tone2'], 'set' => ['great_door' => 1800],
         'say' => 'DONNG. The middle bell finds the place between the other two, and all three notes ring together in one chord. With a deep, grinding hum, the round bronze door rolls aside. Golden light spills from the north.',
         'others' => '{name} rings the middle bell. The three notes join, and the bronze door rolls aside!'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'low_bell', 'room' => 'bell_chamber',
         'if' => ['great_door'], 'say' => 'BONNNG. The door is already open.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'high_bell', 'room' => 'bell_chamber',
         'if' => ['great_door'], 'say' => 'TING. The door is already open.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'middle_bell', 'room' => 'bell_chamber',
         'if' => ['great_door'], 'say' => 'DONNG. The door is already open.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'low_bell', 'room' => 'bell_chamber',
         'unset' => ['tone1', 'tone2'],
         'say' => 'BONNNG. The note clashes with what came before. The chamber shudders and falls silent. You will have to begin again.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'high_bell', 'room' => 'bell_chamber',
         'unset' => ['tone1', 'tone2'],
         'say' => 'TING. A thin, lonely note with nothing beneath it. The bronze door does not stir. Whatever you sang, it was not the right song. Begin again.'],
        ['verbs' => ['ring', 'strike', 'hit', 'pull', 'sound', 'chime'], 'target' => 'middle_bell', 'room' => 'bell_chamber',
         'unset' => ['tone1', 'tone2'],
         'say' => 'DONNG. The note wanders, looking for something to sit between, and fades. Nothing happens. Begin again.'],

        // --- The Great Bell: Chapter 2 finale
        ['verbs' => ['put', 'hang', 'place', 'attach', 'fit', 'insert', 'install', 'use'], 'target' => 'bronze_clapper', 'with' => 'great_bell', 'consume' => 'target',
         'room' => 'heart', 'if' => ['!bell_voiced'], 'set' => ['bell_voiced' => 1800],
         'say' => 'You haul the clapper up onto the hook inside the Great Bell. It settles with a soft clink that hums through the whole cavern. The bell has its voice back.',
         'others' => '{name} hangs a bronze clapper inside the Great Bell.'],
        ['verbs' => ['put', 'hang', 'place', 'attach', 'fit', 'insert', 'install', 'use'], 'target' => 'bronze_clapper', 'with' => 'hook', 'consume' => 'target',
         'room' => 'heart', 'if' => ['!bell_voiced'], 'set' => ['bell_voiced' => 1800],
         'say' => 'You haul the clapper up onto the hook inside the Great Bell. It settles with a soft clink that hums through the whole cavern. The bell has its voice back.',
         'others' => '{name} hangs a bronze clapper inside the Great Bell.'],
        ['verbs' => ['ring', 'strike', 'pull', 'swing', 'sound', 'chime', 'push', 'hit'], 'target' => 'great_bell', 'room' => 'heart',
         'if' => ['bell_voiced'], 'unset' => ['bell_voiced'], 'set' => ['hill_awake' => 3600],
         'journal' => 'The Hollow Hill: woke the Great Bell in the Heart of the Hill',
         'say' => "You set your shoulder to the Great Bell and push. It swings, slowly, slowly, and the clapper meets bronze.\nBOOOOOOOOM.\nThe note is too big to hear. You feel it in your bones, in the stone, in the roots of the world. Far above, every bell in Hollowmere rings at once. Up through the stone come voices, a great many of them, yawning and laughing and calling names: the bellwrights, waking from a three-hundred-year sleep.\nGolden light floods the shaft above, and steps open in the wall, climbing toward the sky.\n(Chapter 2 complete! Your journal has been updated.)",
         'others' => "{name} swings the Great Bell. BOOOOOOOOM. The note shakes the roots of the world, every bell in Hollowmere rings at once, and far above, the bellwrights wake. Steps open in the wall toward the sky.\n(Chapter 2 complete! Your journal has been updated.)"],
        ['verbs' => ['ring', 'strike', 'pull', 'swing', 'sound', 'chime', 'push', 'hit'], 'target' => 'great_bell', 'room' => 'heart',
         'if' => ['hill_awake'],
         'say' => 'The Great Bell is still humming from its last ring. The whole hill is awake, and listening.'],
        ['verbs' => ['ring', 'strike', 'pull', 'swing', 'sound', 'chime', 'push', 'hit'], 'target' => 'great_bell', 'room' => 'heart',
         'say' => 'You swing the Great Bell. It moves, ponderously, and makes no sound at all. It has no clapper, no voice. Perhaps one could be made.'],

        // --- The star crystal: a little reward on the hilltop
        ['verbs' => ['raise', 'hold', 'lift', 'show', 'wave'], 'target' => 'star_crystal', 'room' => 'hilltop',
         'journal' => 'The Hollow Hill: raised the star crystal to the sky',
         'say' => 'You hold the star crystal up to the open sky. The points of light inside it flare and swirl, and for a moment you can see stars in broad daylight, a whole sky of them, wheeling overhead. Then they fade, and the crystal is quiet and content.',
         'others' => '{name} raises a star crystal to the sky, and for a moment there are stars in broad daylight.'],

        // --- The silver bell anywhere else (keep this last among bell rules)
        ['verbs' => ['ring', 'shake', 'chime'], 'target' => 'silver_bell',
         'say' => 'A clear silver note. Somewhere deep under the hill, something answers.',
         'others' => '{name} rings a little silver bell.'],
    ],
];
