weapons

The ), in the colors of their materials.

Terminal
weapons in Codex, first person
Codex: first person

Builtneeds review1 change builtSeen on every levelLast touched November 15, 2026: a change of its own was written or changed. Commit ab9a6ad6f.

In the terminal

')' in the color of its working material: cyan for iron and other metal (43 types, about 71% of weapons generated), brown for wood and leather (elven weapons, bows, clubs, staves, whips, slings, the rubber hose; 21%), black for orcish iron and the runesword and orcish bow (6%), gray for silver (2.5%), white for bone (worm tooth, crysknife). Weapon descriptions are fixed, never shuffled: a weapon with one reads by it until identified ('runed dagger', 'crude spear', 'vulgar polearm', 'throwing star'), the rest by name. The inventory line adds 'poisoned', erosion ('rusty', 'very corroded', 'thoroughly burnt', 'rotted'), proofing once known ('rustproof', 'fireproof'), the enchantment once known ('+2'), and what the hero does with it: '(weapon in hand)', '(weapon in hands)' for two-handed, '(wielded)' for stacks, ammunition, missiles and non-weapons, '(alternate weapon; not wielded)', '(in quiver)', '(at the ready)'. Samurai call some by Japanese names: wakizashi, ninja-to, nunchaku, naginata, shito.

Quotes from NetHack

missiles; materiel reflects the arrowhead, not the shaft
include/objects.h:140
3 more quotes
A weapon is a device for making your enemy change his mind.
dat/data.base: weapon, The Vor Game, by Lois McMaster Bujold
Your long sword glows blue for a moment.
src/wield.c:1013, rendered; pattern '%s %s for a %s.': blue for enchanting, black for disenchanting; 'while' instead of 'moment' for more than one point
Most weapons are subject to some type of damage like rust.
doc/Guidebook.mn:2693

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
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.

  • weapons in Codex, first personfirst person
  • weapons in Codex, close third personclose third person
  • weapons in Codex, director's viewdirector's view
  • weapons 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

Planned and proposed

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

Details for builders

Id: weapons. Lexicon subjects: object.weapon.

Design notes from NetHack

Descriptions mark the maker: runed (elven), crude (orcish), stout or broad (dwarvish), bamboo or samurai (Japanese). A missile's material is its arrowhead's. Enchanted, a weapon glows blue (black from a cursed scroll); overenchanted, it 'violently glows blue for a while and then evaporates'. Erosion has three levels: rusty, very rusty, thoroughly rusty.

Black: orcish iron weapons, and the runesword described as 'his great black battle-blade'.

Elven weapons are brown and 'runed', orcish ones black and 'crude', dwarvish ones cyan and 'broad' or 'stout'.

Both read 'runed broadsword' and differ only in color, brown for the elven broadsword and black for the runesword.

Most descriptions name the head's shape: single-edged, forked, angled, cleaver, sickle, pruning hook, hooked, pronged, beaked.

A gray ')' is always silver (HI_SILVER is CLR_GRAY); against a silver-hater, 'The silver sears <monster>!'

White, like the worm tooth it comes from; its proofing word is 'fixed', from Dune's 'fixed' and 'unfixed'.

A hand reaches up 'from the murky depths', then 'the fountain disappears' and its square becomes floor; the encyclopedia's blade 'gleamed like a beacon in the night'.

Its drain message is the only artifact hit message that names a color: 'The black blade draws the life from <monster>!'

'Lightning strikes <monster>!' on a hit; thrown by a strong Valkyrie, it flies back: 'Mjollnir returns to your hand!'

The encyclopedia quotes Conan: 'black-haired, sullen-eyed, sword in hand'.

Glows red (artilist.h CLR_RED); the verb changes with the number of elves: 'flickers', 'glimmers', 'gleams' ('quivers' when blind).

Glows light blue (artilist.h CLR_BRIGHT_BLUE, 'actually light blue'); the verb changes with the number of orcs: 'flickers', 'glimmers', 'gleams' ('quivers' when blind).

Glows light blue with four verbs by orc count: quivers (blind), flickers, glimmers, gleams; the message ends '!' when the glow strengthens, '.' when it weakens.

The hit message's verb names the effect: probes, stuns, scares, cancels (prods, amazes, tickles, purges when hallucinating).

Hit message 'The ice-cold blade freezes <monster>!'; invoked, a snowstorm.

Hit message 'The fiery blade burns <monster>!'; invoked, a firestorm.

The encyclopedia: 'the ancestral blade would keep its edge'.

Gray, NetHack's color for silver (HI_SILVER): a silver mace.

Gray, for silver; a hit on a werecreature 'sears' it.

Gray (silver); while it is wielded, hallucination does not change the map.

While it is wielded, the status line's Co field reads 25.

'Vorpal Blade beheads <monster>!' or 'decapitates'; the encyclopedia's 'snicker-snack'.

The Mikado, quoted in artilist.h and the encyclopedia: 'from my sheath / I drew my Snickersnee!'

Light 'of no particular color' (artilist.h) on the squares around the wielder, shining 'dimly', 'brightly' or 'brilliantly' by curse state; invoked, a blinding ray in a direction.

Invoked, it causes conflict: 'You feel like a rabble-rouser.'

Brown wood; invoked, it heals ('You feel better.').

Invoked, it creates a supply of arrows.

Hit message 'The razor-sharp blade cuts <monster> in half!'; the encyclopedia: hardened steel that never rusts, 'its main power is terrible to behold'.

Backlog rows

N-54DoneA box should look like a chest
N-353To doOwn forms for the hero, objects and features