light from monsters and lamps
Gold dragons, yellow lights, fire elementals and lit lamps light the squares around them. The terminal shows the lit squares, not the light.
Built1 change builtSeen on some levelsLast touched November 17, 2026: a backlog row it names changed (N-351). Commit aca01857e.
In the terminal
The light is real game light: squares within one step of the monster are lit, so in a dark room or corridor the floor around it shows as lit and the monster itself can be seen from afar. Gnomes and others carrying a lit candle or lamp light their surroundings the same way (radius of the light source). Nothing marks the monster itself.
The hero always sees the eight adjacent squares, even in darkness (night vision radius 1); lit rooms are seen whole. A lit lamp, lantern or magic lamp carried lights radius 3; candles radius 2 (1 to 3 candles), 3 (4 to 8), 4 (9 to 15) and so on; the Candelabrum of Invocation 2, 3 or 4 by candles attached; a burning potion of oil 1; Sunsword lit 1 to 3 by blessing; worn gold dragon scale mail 2 to 4, scales 1 to 3 (3.7). Polymorphed into a light-emitting monster, radius 1. The light shows only as lit floor around the hero.
Quotes from NetHack
this returns the light's range, or 0 if none; if we add more light-emitting monsters, we'll likely have to add a new light range field to mons[]
5 more quotes
the light ranges above were reduced to 1 for performance, otherwise screen updating on the plane of fire slowed to a crawl.
%s%s is now on.
The special candelabrum emits more light than the corresponding number of candles would.
radiantly
brilliantly
In Codex
The hero always carries a warm flickering torch that lights the walls, floor and objects nearby.
BuiltCamera or view
Details
The hero always carries a torch: a warm point light (torch_brightness, torch_reach squares, torch_color) in a warm lamplight (torch_color 1.0, 0.75, 0.50: N-283 took it from the orange 1.0, 0.70, 0.42, which melted brown and yellow letters into its pool, to 1.0, 0.80, 0.58, and the director asked for it a little warmer again, midway) held like a lantern (N-277): torch_height above the floor, torch_behind behind the hero and torch_to_the_side to their right, so the floor a few squares ahead takes more of it than the hero's own square, the wall ahead in first person is not blown out, and shadows fall forward where the camera sees them; breathing slowly and swaying a little (N-314: three slow waves on the game's clock, torch_flicker and torch_sway; the director's go-ahead under D-17 on 2026-11-03), casting shadows; it lights the stone, the floor and the objects (the mist only takes a faint warmth from it close by, N-275); monster letters glow by themselves. It is Codex's own light, not NetHack's: it does not follow whether the hero stands in a lit room. Out in the terminal view and while Blind. When the game says the hero's own light went out ("Your lamp is now off.", "Your lantern has run out of power.", "You snuff out your candle.", a `Lamp` moment, X-137, D-114 question 13: a lamp turned off dims the torch) it burns at torch_with_your_lamp_out of its brightness, fading over torch_lamp_fade_seconds, and back when one is lit again; D-128 (question 68): half (0.5), until the game says a lamp is lit again; at 1 nothing changes. Filmed in tests/films/lamp-out-*.json. The game never says whether another light the hero carries still burns: the last of its words is taken.
- Id
codex.torch- Exact state
- Built
- Playtests
gallery-hero,gallery-dark-corridor,gallery-lit-room,lamp-out-as-was,lamp-out-half- Settings
light.torch_brightness,light.torch_reach,light.torch_color,light.torch_flicker,light.torch_sway,light.torch_casts_shadows,light.torch_height,light.torch_behind,light.torch_to_the_side,light.torch_with_your_lamp_out,light.torch_lamp_fade_seconds- Code
crates/codex-client/src/pov.rs,crates/nh-plays/src/light.rs,crates/codex-client/src/conditions.rs,crates/nh-moments/src/catalog.rs
Applies to everything on the map (5)
- The hero is seen as their own map letter, standing upright and glowing, except in first person.
- A monster is its letter, standing upright and glowing in its own color so it shows in the dark.
- Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
- What the game showed on a square stays drawn under a monster or object that now stands there.
- The map is drawn as a 3D world of walls and floors, lit by the hero's torch and a faint glow.
Accepted pictures and playtests
Playtests: gallery-hero, gallery-dark-corridor, gallery-lit-room, lamp-out-as-was, lamp-out-half
Planned and proposed
Idea A player's own form plays its idle movement while it stands.
In progress Letters seen from afar resolve into their forms up close.
Asked for in these words: “Danny, 2026-10-28 (NORTH_STAR.md, notes from the director): "Or maybe the letters are visible from afar and as the monsters come closer they step-through into focus where they are actually rendered"”
Left to do: Which letters are drawn inside themselves next is the director's choice.
Planned A player's own forms for the hero, objects and features, not only monsters.
Details for builders
Id: monster_light. Lexicon subjects: creature.light_emitting, hero.light.
Design notes from NetHack
The squares within one step of the monster are lit, even in a dark room.
Lit floor squares around the hero, by radius; shine messages say 'dimly', 'brightly', 'brilliantly' or 'radiantly'.
Backlog rows
| N-354 | Done | A player's form stands still |
| N-2 | Built, not reviewed | Letter↔form study and prototype (letters at distance resolve into forms up close), behind a toggle. |
| N-351 | Built, not reviewed | The next letters to draw inside themselves |
| N-353 | To do | Own forms for the hero, objects and features |
