Light (monster class)

From NetHackWiki
Jump to navigation Jump to search

The light is a monster class that appears in NetHack, and is represented by the lowercase y glyph (y). Lights are designated internally by the macro S_LIGHT.[1]

The class contains two monsters:[2]

Common traits

Lights are neutral monsters that are amorphous, mindless and unsolid. They are unbreathing and capable of floating, which is treated as "permanent" levitation rather than flight (e.g. when a hero is polymorphed into a light).[3][4] Lights are immune to the blinding effects of flashes from expensive cameras, though a sleeping light will still be awakened by one.[5] Both lights have a fairly-low 0 AC and no MR score.

A light's only form of offense is an explosion attack directed at the target's square: this destroys the light, causes a status affliction if it hits the hero or a monster (blindness for yellow lights and hallucination or confusion for black lights), and also creates noise that can wake nearby sleeping monsters. Lights possess every resistance property other than magic resistance.

Body parts

Lights have a special hard-coded set of body parts, with "hand" replaced with "ray", "handed" replaced with "rayed", and all other body parts replaced with "beam".[6]

Generation

Randomly-generated lights are always created as hostile.

A hero reading a scroll of light while confused will summon multiple tame and cancelled lights if they are not extinct or subjected to genocide:[7][8] an uncursed scroll will summon 3–4 yellow lights, a blessed scroll will summon 5–6 yellow lights, and a cursed scroll will summon 3–4 black lights.

Lights do not leave corpses upon death.

History

The yellow light first appears in Hack 1.21 and Hack for PDP-11, which are both based on Jay Fenlason's Hack, and is part of the initial bestiary for Hack 1.0. The black light first appears in NetHack 3.2.0.

In versions up to NetHack 3.6.7, including variants based on those versions, reading a scroll of light while confused darkens the area surrounding the hero and has a 1⁄5 chance of summoning a light monster if they are not extinct or subjected to genocide.[9][10] NetHack 5.0.0 updates the behavior of reading the scroll while confused via commit 1ba1422e so that multiple lights are summoned.

Variants

Many NetHack variants add new monsters to the light monster class, with some implementing the will o' wisp from the biodiversity patch—in the original patch, they can explode and render a target confused for several turns, and their exact traits across variants will vary.

UnNetHack

In UnNetHack, reading a scroll of light while confused summons multiple tame and cancelled lights, as in NetHack 5.0.0. An uncursed scroll will summon 3–4 yellow lights, a blessed scroll will summon 5–6 yellow lights, and a cursed scroll will summon 3–4 black lights.

dNetHack

dNetHack, notdNetHack and notnotdNetHack add three monsters to the monster class:

Coure Eladrin turn into motes of light to flee and recover at low health, while Queen Mab turns into a coterie of motes for similar purposes. The tiny being of light is one of the many insight merchants.

SpliceHack

SpliceHack and its rewrite both add the will o' wisp, but implement it differently from the biodiversity patch.

SlashTHEM

SlashTHEM incorporates the will o' wisp, with most of the same traits as in the biodiversity patch.

References