potions

The !. Each unknown potion has a liquid's color. NetHack 3.7 shows them gray from afar.

Terminal
potions in Codex, first person
Codex: first person

Builtneeds review3 changes builtSeen on every levelLast touched November 29, 2026: a change of its own was written or changed. Commit 7ad625d82.

In the terminal

'!' in its description's color (13 colors). The 25 descriptions other than 'clear' are assigned to the 25 potions other than water each game (no spares), the color and the glass going with the description. In 3.7 a potion not yet seen up close is a gray generic '!' and takes its color as the hero comes within about two squares. Names: 'potion' (not seen up close), '<description> potion', 'potion called <name>', 'potion of <identity>'; 'clear potion' for water, 'potion of holy water' and 'unholy water' once known; 'diluted' after a dip in water; a lit potion of oil '(lit)'. Potions break into shards when thrown and their vapors act on whoever breathes them; heat boils and explodes them, cold freezes and shatters them.

Quotes from NetHack

Potions are distinguished by the color of the liquid inside the flask.
doc/Guidebook.mn:3052
3 more quotes
static const char *bottlenames[] = { "bottle", "phial", "flagon", "carafe", "flask", "jar", "vial" };
src/potion.c:1478, a vessel word is rolled each time; hallucinating, from 24 more (jug, pitcher, barrel, tin, bag, box, glass, beaker, tumbler, vase, flowerpot, pan, thingy, mug, teacup, teapot, keg, bucket, thermos, amphora, wineskin, parcel, bowl, ampoule)
pline_The("mixture looks %s.", hcolor(OBJ_DESCR(objects[obj->otyp])));
src/potion.c:2581, the description serves as the color word; 'The mixture bubbles, then clears.' when it becomes water; 'The mixture glows brightly and evaporates.' when it fails
Huge buzz! [drinks] Oh good! See things no one else can see, do things no one else can do.
dat/data.base: *potion*, Big Trouble in Little China; the entry opens with Bierce's 'POTABLE, n.'

Decisions

A letter for a whole class stays a letter, evolved in place. The tool box was taken back.

Letter kept, changed in place
Full text

A glyph for a whole class stays its letter, evolved in place (Dad, director, 2026-10-29). Revises D-52: a box for every ( ("including the lamp") "short-circuits the creative constraint and forces it to transmogrify too much"; keep tools "as close as possible to the default NetHack experience but tastefully incorporating new evolutions". A glyph that is one thing (a boulder) may still become that thing (D-18). tool_forms stays as a knob, off.

Backlog decisions: D-54, D-52

In Codex

An object is its letter made solid, standing on the floor in a material chosen by its color.

Builtneeds reviewLetter

Details

Object letters with body (D-54): each object stays its terminal letter, given thickness (object_thickness of its size) with sides built from the font's own outline, resting on the floor stones and turning to face the camera, made of what its color means among NetHack's objects (objects.h: brown HI_WOOD as wood, cyan HI_METAL as metal, yellow HI_GOLD and HI_COPPER as brass, gray HI_SILVER and HI_MINERAL as stone or silver, bright cyan HI_GLASS as glass, others matte), lit by the torch like the stone and burning in its own color (object_glow 32: white-hot at the core, its color at the edges, inside a glow of its own shape blurred, object_halo 24 and object_halo_size 1.6; N-331, the director: 'I kind of liked the white-hot glow... made them special when encountered', produced on purpose after the old edge smoothing had made it by accident; N-280: color is identity in NetHack, brown mold against yellow mold, a potion's appearance, a kind of trap), its base color half the palette's so the torch only shades it; metal is told by its sheen, metallic at most 0.25, since a metallic surface has nothing to reflect in the dark and a yellow '(' drew darker than a brown one. A corpse is its '%' in the corpse's color, made of that color's material. Only class, character and color reach the client, so every object of a look is the same solid letter. object_thickness 0 gives flat upright letters instead.

Id
codex.object_body
Exact state
Built, not reviewed
Playtests
gallery-forms
Settings
characters.object_thickness, characters.object_glow, characters.object_halo, characters.object_halo_size, characters.feature_glow, characters.object_size, dungeon.floor_stones
Code
crates/nh-scene/src/build/occupant.rs, crates/codex-client/src/atlas.rs, crates/codex-client/src/draw/world.rs
N-54DoneA box should look like a chest

An object letter redrawn in another color comes up in it over a third of a second.

Builtneeds reviewTransition

Details

An object letter's color comes up eased (N-662, the slate of 2026-11-16, D-138: "Go ahead"). A potion, gem or spellbook not yet seen up close is drawn as its class's character in gray (objects.h GENERIC, CLR_GRAY; display.h obj_is_generic); once the hero sees its square within the near distance the game draws it again in its own color (display.c map_object, observe_object). Where the terminal changes the letter's color in one frame, the letter's own material (its color and its own glow) and its halo travel from the old color to the new one over object_color_ease_seconds (0.35 s), slowly at first and at the end, in every 3D view, the high ones too; the corner map draws the game's state and changes at once, as the terminal does. No light is added and nothing moves. Before the redraw a gray letter is drawn exactly as any gray object (a smoky potion, a gray stone), so nothing marks it as a stand-in, and every change of an object letter's color on its square, same character and class, is eased the same way whatever caused it: a pile whose top is now another thing of the class too. Not eased: a change of class, a monster, the hero's square, a boulder, statue or iron ball, a square a glide begins or ends on in that look, the map drawn again (^R, a detection), a new level, a trip (the letters melt there instead, codex.trip_melt), and a square still showing a letter the trip rolled. A change, never a reaction (D-81): it hurries while keys wait (none starts then) and a second change of the same letter waits for the first to end. The ink behind the letter is the new color's at once (only black and blue letters take pale ink).

Id
codex.object_color_ease
Exact state
Built, not reviewed
Settings
characters.object_color_ease_seconds
Code
crates/nh-moments/src/recolor.rs, crates/nh-plays/src/recolor.rs, crates/nh-knobs/src/characters/object_color_ease.rs, crates/codex-client/src/draw/recolor.rs
N-662To doA letter's color comes up eased

When the hero drinks, the screen's edges wash slowly in the potion's color and fade.

BuiltReaction to an event

When the hero drinks, the screen's edges wash slowly in the potion's color and fade.
Details

Animation 15, the color (N-35): the screen's edges wash slowly in the potion's color, rising and falling, the color its inventory letter last showed in a menu (its appearance's color, never its identity); no wash when no menu has shown that letter.

Id
codex.quaff_wash
Exact state
Built
Playtests
journey-game
Settings
animations.drink_color_wash, animations.drink_seconds
Code
crates/nh-moments/src/quaff.rs, crates/nh-plays/src/wash.rs, crates/codex-client/src/wash.rs
N-35Done6 | Animation 15:
Applies to everything on the map (2)
  • Every symbol is a plain keyboard character, even when the player's symbol set draws lines.
  • 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

A change to how this looks is compared with these pictures before it is accepted.

  • potions in Codex, first personfirst person
  • potions in Codex, close third personclose third person
  • potions in Codex, director's viewdirector's view
  • potions in Codex, map viewmap view
Gallery scene gallery-monsters-objects, monsters objects. Accepted November 21, 2026. Renderer: NVIDIA GeForce GTX 1660 Super.

Playtests: gallery-forms, journey-game

Planned and proposed

Planned A player's own forms for the hero, objects and features, not only monsters.

Details for builders

Id: potions. Lexicon subjects: object.potion.

Design notes from NetHack

Descriptions name the liquid: ruby, pink, orange, yellow, emerald, dark green, cyan, sky blue, brilliant blue, magenta, purple-red, puce, milky, swirly, bubbly, smoky, cloudy, effervescent, black, golden, brown, fizzy, dark, white, murky, and clear. Messages name the vessel at random: bottle, phial, flagon, carafe, flask, jar, vial (hallucinating: jug, teapot, amphora, wineskin, thermos...).

A gray '!' may be the generic potion, redrawn in its real color when the hero comes within about two squares.

Dipping into holy or unholy water: 'glows with a light blue aura' (blessed), 'glows amber', 'glows brown', 'glows with a black aura' (cursed).

Lit, it reads '(lit)' and gives a radius-1 'very dim light' until it 'has burnt away'.

Backlog rows

N-54DoneA box should look like a chest
N-662To doA letter's color comes up eased
N-35Done6 | Animation 15:
N-353To doOwn forms for the hero, objects and features