praying and the gods
Prayer answered or not, divine wrath, turning undead.
Builtneeds review2 changes builtSeen on some levelsLast touched November 29, 2026: a backlog row it names changed (N-515). Commit bfd1a5180.
In the terminal
With paranoid_confirmation:pray (on by default) the game first asks "Are you sure you want to pray? [yn] (n)". Then "You begin praying to <god>." (on an altar, to the altar's god). If the prayer will be heard and the hero can see: "You are surrounded by a shimmering light." The hero is helpless for three turns (and, when heard, cannot be hurt); then "You finish your prayer." and the answer follows as messages. The map does not change; the @ stays where it is.
Messages only. The milder answers are a feeling or a voice; the worst is lightning and a disintegration beam from the heavens, told in words (no ray is drawn), with the magic-shield sparkle on the hero when it is reflected or resisted. Wrath sets the prayer timeout.
"Calling upon <god>, you chant an arcane formula." Undead in sight within range flee, are destroyed ("You destroy the <undead>!") or, for a chaotic, become peaceful; the hero is then helpless for 1 to 5 turns ("You can move again."). Confused: "Unfortunately, your voice falters." Refused: "For some reason, <god> seems to ignore you." In Gehennom: "Since you are in Gehennom, <god> can't help you."
Quotes from NetHack
You begin praying to %s.
7 more quotes
You are surrounded by a shimmering light.
You finish your prayer.
Whatever a man prays for, he prays for a miracle. Every prayer reduces itself to this: Great God, grant that twice two be not four.
The voice of %s %s: %s%s%s
Thou hast angered me.
Calling upon %s, you chant an arcane formula.
Unfortunately, your voice falters.
Decisions
Go for the prayer shimmer and the engraving shiver.
Codex draws itFull text
New animations: go (director). The golden prayer shimmer (N-58, Klimt's gold) and the engraving shiver (N-60) are built, from what the game says, detected in nh-moments.
Backlog decisions: D-51In Codex
An angry god's voice brings a dark red light that pulses three times, displeasure one faint beat.
Builtneeds reviewReaction to an event
Details
N-482, Dad's own words (2026-11-10): "if you pray at a bad time a voice booms thou art arrogant mortal!! And there should be a dark red pulsing light for a few seconds." It plays where NetHack's god speaks in anger (pray.c `angrygods`): "The voice of <god> booms out: "Thou hast angered me."" (pray.c:1431, before the black glow, the punishment and the god's bolt), "Thou art arrogant, mortal." or "Thou hast strayed from the path, mortal." and "Thou must relearn thy lessons!" (pray.c:734, :740, before a level is lost), "Thou durst call upon me?" and "Then die, mortal!" (pray.c:764, :769, before a minion is sent). One look of the voice is one light, however many of its lines it holds; a line of the voice in a later look while it plays carries it on. One lamp high over the hero, and nothing else: a light with a source and a direction that falls on the floor and the walls round the hero as far as they stand (a ring laid on the floor, tried first, showed through the wall on the rock outside and read as a ring). It comes on in about half a second, beats three times (bright at about one and two seconds, dimmer between), and is gone by three seconds; nothing waits on it. Its red barely lifts the lightness of what it falls on, so the hero's letter keeps its ground: at the brightest beat the @ is 2.79:1 against the lit square in the director's view (3.55:1 with the knob at 0) and 1.57:1 on the map's pale floor (1.60:1 at 0). Its color is a dark, saturated red: never the blessing's gold (gold lights only what is divine and kind, D-75), never the potions' rose (N-483). The quiet answer, "You feel that <god> is displeased." (pray.c:728, "bummed" while hallucinating), the mildest of `angrygods` with no voice, plays a little red, as the director asked (2026-11-27, N-5031: "Show a little red, yes."): the same lamp and red at under half the voice's strength, one slow rise and fall over two seconds (on over about 0.9 s, gone by 2 s), no beats, since there is no voice. At its peak (0.9 s) the @ is 4.57:1 against its ground in close third (4.99:1 with the knob at 0), 2.92:1 in the director's view (3.33:1) and 3.16:1 on the map (3.63:1). The kind answers ("well-pleased", "satisfied", "ticklish" and the rest, pray.c:1077) are the golden cloud's and never red; "A black glow surrounds you." (pray.c:756) comes after "Thou hast angered me." in the same look and adds nothing; the voice's lead with no words (pray.c:1424) is also a gift's and plays nothing. A blind hero hears the voice and is shown no light. Nothing shakes, nothing flashes, and nothing tells what the god will do next.
- Id
codex.angry_god- Exact state
- Built, not reviewed
- Settings
animations.angry_god_strength- Code
crates/nh-moments/src/catalog/happened/wrath.rs,crates/nh-plays/src/brings/wrath.rs,crates/nh-knobs/src/animations/angry_god.rs
| N-482 | Built, not reviewed | An angry god: a dark red light |
| N-5031 | Done | The angry god's quiet answer, "You feel that <god> is displeased." (pray.c:728, no voice): |
A successful prayer surrounds the hero with soft gold light and drifting gold flecks.
Builtneeds reviewReaction to an event
Details
When a prayer succeeds (N-58, D-51), round 2: a soft gold light with no hard edge surrounds the hero (a halo facing the camera that slowly grows and shrinks), spreads on the floor around them, and flecks of gold drift up through it like dust in a sunbeam, glinting; a gold point light comes up on the walls and the screen's edges warm. It gathers slowly, holds and fades more slowly still (an S-curve both ways, prayer_seconds); a second blessing while it shines holds it at full. Once per look, however many kind words; the hopeful feeling and the reconciliation are the game's words after a sacrifice that shortens the prayer timeout, so the light plays then too. Round 1's trembling golden rings were removed ("Sonic the Hedgehog"). Round 3 (N-227, judged by the film): light that behaves like light, from above: the halo is a shaft over the hero's head, twice as tall as wide, the pool on the floor at their feet a third smaller, and the gold point light above their head, so its falloff on the floor and the walls is real. In a trip (N-490a, X-157) its gold takes the color the game named in the same look ("You are surrounded by a paisley glow."), as bright as it was (D-84), when it named exactly one; a second blessing while it shines takes the newest color named, as the room does, turning to it over 0.6 s and never in one frame; one that names none keeps the color it has (X-201, D-89). The trip's words for the hopeful feeling and the reconciliation ("You realize that the gods are not like you and I.", "Overall, there is a smell of fried onions.", pray.c:2073, 2081) play the same gold, and only while the status line shows Hallu.
- Id
codex.blessing- Exact state
- Built, not reviewed
- Settings
animations.prayer_light,animations.prayer_seconds,animations.prayer_glow,animations.prayer_glow_size,animations.prayer_gold_flecks,animations.prayer_light_on_walls,animations.prayer_screen_warmth,characters.monster_size,dungeon.floor_stones- Code
crates/nh-moments/src/catalog.rs,crates/nh-plays/src/blessing.rs,crates/nh-plays/src/trip/gel.rs,crates/nh-plays/src/light.rs,crates/codex-client/src/draw/in_flight.rs,crates/codex-client/src/draw/glow.rs,crates/nh-plays/src/wash.rs
| N-58 | Done | Blessed by a prayer: shimmer and light up |
Accepted pictures and playtests
No accepted pictures or playtests yet.
Planned and proposed
Planned One prayer's light plays once, never twice for the same words.
Idea A summoned monster arrives in the cloud the game names.
Asked for in these words: “Danny, 2026-11-14 (D-102, N-515): "Yes, I'd like to work on the animation primitives for these purposes, as well as backlog them."”
In progress A population of motes drawn from one buffer, moving between formations.
Asked for in these words: “Danny, 2026-11-14 (D-102, N-512, X-337): "I really want us to discern these from first principles so they're useful for the whole backlog's animation needs."”
Left to do: Only the butterflies are drawn from the buffer. The sacrifice, the sights, the blessing and the teleport still draw a part each.
Details for builders
Id: pray. Lexicon subjects: moment.pray, moment.wrath, moment.turn_undead.
Design notes from NetHack
A shimmering light around the hero when the prayer will be heard, three helpless turns, then the god's answer as messages. Kneeling is never mentioned.
Three wordings, most pleased first: 'well-pleased', 'pleased', 'satisfied'.
One message per trouble cured ('You feel more limber.', 'The slime disappears.', 'You can breathe again.', 'Looks like you are back in Kansas.'); the matching status conditions clear.
'Your <item> softly glows amber.', one message per item; a blessed object dropped on an altar flashes the same amber.
The wielded weapon 'softly glows amber' (uncursed) or glows 'with a light blue aura' (blessed); 'as good as new' when rust or burns are repaired.
A golden glow around the hero, then HP at its maximum on the status line.
'You hear a divine music...', then the tune's five notes as letters A to G.
A light blue aura around the hero, then an amber glow on each item that is uncursed.
The god's voice 'booms out' (or thunders, rings out) and names the gift: Telepathy, Speed, Stealth or protection.
A spellbook glyph appears under the hero ('appears at your feet!'), or, in 3.7, 'Divine knowledge of <spell> fills your mind!'.
The god gives a title (the Hand of Elbereth, Envoy of Balance, chosen to steal souls); the sword 'shines brightly', 'goes snicker-snack' or, a black sword, 'hums ominously'.
Potions on the altar 'glow light blue' (holy) or 'glow black' (unholy) 'for a moment'.
No message. The corpse or statue leaves the altar square and the pet's glyph appears beside the hero.
A sound with no source, 'diabolical laughter all around you', then 'Nothing else happens.'
An archaic rebuke ('Vile creature, thou durst call upon me?'), 'You feel like you are falling apart.', and the hero's glyph returns to @.
No shimmering light, only 'Since you are in Gehennom, <god> can't help you.'
The god's voice 'booms out', 'thunders' or 'rings out'; a black glow; lightning and a disintegration beam as messages, with no ray drawn; minions beside the hero.
One message, 'You feel that <god> is displeased.' ('bummed' when hallucinating), and no other effect.
The god's rebuke in archaic English ('Thou must relearn thy lessons!'); Xp level, HP and max HP fall on the status line.
'A black glow surrounds you.', then 'You feel a malignant aura surround you.' as items are cursed.
An iron ball (0) and a chain (_) appear on and beside the hero's square; 'Your iron ball gets heavier.' when already punished.
'Then die, mortal!', and a hostile minion (A, E or &, by the god's alignment) appears next to the hero.
In messages only: a bolt of lightning, then a wide-angle disintegration beam with a black glow. The shield sparkle shows on the hero when reflected or resisted.
'Calling upon <god>, you chant an arcane formula.'; undead in sight move away or vanish; then 1 to 5 helpless turns.
Backlog rows
| N-482 | Built, not reviewed | An angry god: a dark red light |
| N-5031 | Done | The angry god's quiet answer, "You feel that <god> is displeased." (pray.c:728, no voice): |
| N-58 | Done | Blessed by a prayer: shimmer and light up |
| T-103 | To do | One prayer's light plays twice |
| N-515 | To do | Arriving in a cloud |
| X-337 | Built, not reviewed | Motes drawn from one buffer |
