<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Object_detection</id>
	<title>Object detection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Object_detection"/>
	<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;action=history"/>
	<updated>2026-06-04T01:01:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.5</generator>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=199886&amp;oldid=prev</id>
		<title>Umbire the Phantom: detailing - forgot to dig into some clairvoyance-specific stuff prior, will do later</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=199886&amp;oldid=prev"/>
		<updated>2026-02-28T16:05:37Z</updated>

		<summary type="html">&lt;p&gt;detailing - forgot to dig into some clairvoyance-specific stuff prior, will do later&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:05, 28 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection can occur in multiple forms, depending on the source:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection can occur in multiple forms, depending on the source:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a [[potion of object detection]] reveals all items on the current level (including [[buried]] and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;underwater &lt;/del&gt;objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a [[potion of object detection]] reveals all items on the current level (including [[buried]] and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;submerged &lt;/ins&gt;objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Casting]] the [[spell of detect treasure]] replicates the effects of quaffing the non-cursed potion as detailed above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Casting]] the [[spell of detect treasure]] replicates the effects of quaffing the non-cursed potion as detailed above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, including buried and submerged objects&lt;/ins&gt;.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;reveal &lt;/del&gt;[[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Gold (material)|&lt;/del&gt;golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps and ''also'' mark them as traps.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, including buried and submerged objects&lt;/ins&gt;.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;detect &lt;/ins&gt;[[golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps and ''also'' mark them as traps.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(including buried and submerged objects)&lt;/ins&gt;.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [[Clairvoyance]] magically maps a roughly-circular 19-by-11 area centered on the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/del&gt;hero&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/del&gt;'s location, and can be obtained from a few sources including the {{+ of|clairvoyance}} spell (which can affect mapping based on the hero's skill in [[divination spells]]).{{refsrc|src/spell.c|1186-L1190|nethack=3.6.7}}{{refsrc|src/detect.c|1306|nethack=3.6.7}}{{refsrc|src/detect.c|1316-L1320|nethack=3.6.7}} In both cases&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/del&gt;clairvoyance does not detect buried objects &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;unlike the other forms of object detection discussed&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [[Clairvoyance]] magically maps a roughly-circular 19-by-11 area centered on the hero's location, and can be obtained from a few sources including the {{+ of|clairvoyance}} spell (which can affect mapping based on the hero's skill in [[divination spells]]).{{refsrc|src/spell.c|1186-L1190|nethack=3.6.7}}{{refsrc|src/detect.c|1306|nethack=3.6.7}}{{refsrc|src/detect.c|1316-L1320|nethack=3.6.7}} In both cases clairvoyance does not detect buried objects&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, but can detect submerged objects&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Most forms of object detection, if not all of them, [[exercise]] [[wisdom]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Most forms of object detection, if not all of them, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;will &lt;/ins&gt;[[exercise]] [[wisdom]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;when performed&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Detection maps===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Detection maps===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Any form &lt;/del&gt;of object &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;detection &lt;/del&gt;will mark the locations of the discovered objects against a black map, and stale object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}}{{refsrc|src/detect.c|1325|nethack=3.6.7}}{{refsrc|src/detect.c|1363-L1365|nethack=3.6.7}}{{refsrc|src/detect.c|1396|nethack=3.6.7}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Detection &lt;/ins&gt;of &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;specific &lt;/ins&gt;object &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;types or all objects &lt;/ins&gt;will mark the locations of the discovered objects against a black map, and stale object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}}{{refsrc|src/detect.c|1325|nethack=3.6.7}}{{refsrc|src/detect.c|1363-L1365|nethack=3.6.7}}{{refsrc|src/detect.c|1396|nethack=3.6.7}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;these &lt;/del&gt;location markers disappear once they are in the hero's line of sight, the object in question is either buried, submerged or else has been moved.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Clairvoyance that detects submerged objects nearby will display the map of the immediate area it covers around the hero, with the locations of detected items displayed temporarily.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;item &lt;/ins&gt;location markers disappear once they are in the hero's line of sight, the object in question is either buried, submerged or else has been moved.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=199885&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ word choice</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=199885&amp;oldid=prev"/>
		<updated>2026-02-28T15:49:52Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; word choice&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:49, 28 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps ''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and&lt;/del&gt;'' &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;also appropriately &lt;/del&gt;mark them.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;also&lt;/ins&gt;'' mark them &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as traps&lt;/ins&gt;.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [[Clairvoyance]] magically maps a roughly-circular 19-by-11 area centered on the [[hero]]'s location, and can be obtained from a few sources including the {{+ of|clairvoyance}} spell (which can affect mapping based on the hero's skill in [[divination spells]]).{{refsrc|src/spell.c|1186-L1190|nethack=3.6.7}}{{refsrc|src/detect.c|1306|nethack=3.6.7}}{{refsrc|src/detect.c|1316-L1320|nethack=3.6.7}} In both cases, clairvoyance does not detect buried objects unlike the other forms of object detection discussed.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** [[Clairvoyance]] magically maps a roughly-circular 19-by-11 area centered on the [[hero]]'s location, and can be obtained from a few sources including the {{+ of|clairvoyance}} spell (which can affect mapping based on the hero's skill in [[divination spells]]).{{refsrc|src/spell.c|1186-L1190|nethack=3.6.7}}{{refsrc|src/detect.c|1306|nethack=3.6.7}}{{refsrc|src/detect.c|1316-L1320|nethack=3.6.7}} In both cases, clairvoyance does not detect buried objects unlike the other forms of object detection discussed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194413&amp;oldid=prev</id>
		<title>Umbire the Phantom: clairvoyance, citations, variants, etc.</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194413&amp;oldid=prev"/>
		<updated>2025-10-24T08:38:46Z</updated>

		<summary type="html">&lt;p&gt;clairvoyance, citations, variants, etc.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 08:38, 24 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps ''and'' also appropriately mark them.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces, while a non-cursed scroll that is read while confused will detect traps ''and'' also appropriately mark them.{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}{{refsrc|src/detect.c|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;582&lt;/del&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;version&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;NetHack &lt;/del&gt;3.6.7|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;comment&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;** [[Clairvoyance]] magically maps a roughly-circular 19-by-11 area centered on the [[hero]]'s location, and can be obtained from a few sources including the {{+ of|clairvoyance}} spell (which can affect mapping based on the hero's skill in [[divination spells]]).{{refsrc|src/spell.c|1186-L1190|nethack=3.6.7&lt;/ins&gt;}}{{refsrc|src/detect.c|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1306&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;nethack&lt;/ins&gt;=3.6.7&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}{{refsrc|src/detect.c|1316-L1320&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;nethack&lt;/ins&gt;=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3.6.7&lt;/ins&gt;}} &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In both cases, clairvoyance does not detect buried objects unlike the other forms of object detection discussed.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Most forms of object detection, if not all of them, [[exercise]] [[wisdom]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Detection maps===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Detection maps===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Any form of object detection will mark the locations of the discovered objects against a black map, and stale object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Any form of object detection will mark the locations of the discovered objects against a black map, and stale object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}{{refsrc|src/detect.c|1325|nethack=3.6.7}}{{refsrc|src/detect.c|1363-L1365|nethack=3.6.7}}{{refsrc|src/detect.c|1396|nethack=3.6.7&lt;/ins&gt;}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If these location markers disappear once they are in the hero's line of sight, the object in question is either buried, submerged or else has been moved.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If these location markers disappear once they are in the hero's line of sight, the object in question is either buried, submerged or else has been moved.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Some [[variant]]s of ''NetHack'' may add either new forms of object detection or alternate sources of the effect.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Some [[variant]]s of ''NetHack'' may add either new forms of object detection or alternate sources of the effect.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===GruntHack===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[GruntHack]] adds the [[scroll of detect magic]], which can detect all [[magical item]]s on the current level including any items that have [[object properties]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===UnNetHack===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===UnNetHack===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot; &gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One of [[Itlachiayaque (xNetHack)|Itlachiayaque's]] invocation effects allows the holder to gaze into it for the same effect as a crystal ball of the same beatitude, akin to [[the Orb of Detection]] (which it replaces as the Archeologist quest artifact).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;One of [[Itlachiayaque (xNetHack)|Itlachiayaque's]] invocation effects allows the holder to gaze into it for the same effect as a crystal ball of the same beatitude, akin to [[the Orb of Detection]] (which it replaces as the Archeologist quest artifact).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===EvilHack===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[EvilHack]] adds the scroll of magic detection, which is renamed from the GruntHack item and functions as it does in that variant.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Sokoban/EvilHack|Sokoban]] is retooled so that the hero must choose between a prize tool (a bag of holding or a [[magic marker]]), a prize armor (a [[helm of speed]] or a pair of [[gauntlets of protection]]), or a prize amulet (an amulet of reflection or [[amulet of magic resistance|magic resistance]]) as their reward from one of the three closets: the other doors will seal as soon as one of the doors is opened, and once an item is picked up by the hero, the others will disappear&amp;amp;mdash;this necessitates some form of object detection beforehand for players desiring a specific possible reward.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===SlashTHEM===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In [[SlashTHEM]], [[zapping]] a [[wand of wonder]] has a {{frac|21}} chance of performing object detection and exercising wisdom.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194394&amp;oldid=prev</id>
		<title>Umbire the Phantom: fix</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194394&amp;oldid=prev"/>
		<updated>2025-10-24T07:06:47Z</updated>

		<summary type="html">&lt;p&gt;fix&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:06, 24 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} A blessed scroll will additionally reveal [[Gold (material)|golden]] items, i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, while a non-cursed scroll that is read while confused will detect traps ''and'' also appropriately mark them.&lt;/ins&gt;{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a non-cursed [[crystal ball]] that has charges while they are not [[blind]], and the player selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194393&amp;oldid=prev</id>
		<title>Umbire the Phantom: still more detailing - more than safe to de-stub atp</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194393&amp;oldid=prev"/>
		<updated>2025-10-24T07:06:01Z</updated>

		<summary type="html">&lt;p&gt;still more detailing - more than safe to de-stub atp&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:06, 24 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection can occur in multiple forms, depending on the source:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection can occur in multiple forms, depending on the source:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a potion of object detection reveals all items on the current level (including [[buried]] and underwater objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;potion of object detection&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;reveals all items on the current level (including [[buried]] and underwater objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Casting]] the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{+ &lt;/del&gt;of&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;detect treasure&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}} spell &lt;/del&gt;replicates the effects of quaffing the non-cursed potion as detailed above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Casting]] the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[spell &lt;/ins&gt;of detect treasure&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;replicates the effects of quaffing the non-cursed potion as detailed above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell replicates the effects of reading the non-cursed scroll as described above, dependent on the caster's skill level.&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;. A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] (and [[gold golem]]s) on the level.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/read.c|1473|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; in detect.c depending on beatitude and status}}{{refsrc|src/detect.c|303|nethack=3.6.7|name=&amp;quot;gold_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|316|nethack=3.6.7}}{{refsrc|src/detect.c|319|nethack=3.6.7}}{{refsrc|src/detect.c|326|nethack=3.6.7}}{{refsrc|src/detect.c|341|nethack=3.6.7}} &lt;/ins&gt;A blessed scroll will additionally reveal [[Gold (material)|golden]] items&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/detect.c|328|nethack=3.6.7}}{{refsrc|src/detect.c|342|nethack=3.6.7}} &lt;/ins&gt;A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/detect.c|932|nethack=3.6.7|name=&amp;quot;trap_detect&amp;quot;|comment=&amp;lt;tt&amp;gt;trap_detect()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|899|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;detect_obj_traps()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|942|nethack=3.6.7}}{{refsrc|src/detect.c|946|nethack=3.6.7}}{{refsrc|src/detect.c|953|nethack=3.6.7}}{{refsrc|src/detect.c|959|nethack=3.6.7}}{{refsrc|src/detect.c|965|nethack=3.6.7}}{{refsrc|src/detect.c|975|nethack=3.6.7}}{{refsrc|src/detect.c|978|nethack=3.6.7}}{{refsrc|src/detect.c|998|nethack=3.6.7}&lt;/ins&gt;&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;non-cursed &lt;/ins&gt;[[crystal ball]] that has charges &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;while they are not [[blind]], &lt;/ins&gt;and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the player &lt;/ins&gt;selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/detect.c|1095|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;use_crystal_ball()&amp;lt;/tt&amp;gt; function}}{{refsrc|src/detect.c|1102|version=NetHack 3.6.7|name=&amp;quot;outlookblank&amp;quot;}}{{refsrc|src/detect.c|1179|version=NetHack 3.6.7}}{{refsrc|src/detect.c|1204-L1213|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;monster_detect()&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; as needed}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Stale &lt;/del&gt;object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===Detection maps===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Any form of object detection will mark the locations of the discovered objects against a black map, and stale &lt;/ins&gt;object markings of the applicable type are always cleared when mapping item locations from this effect.{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}} Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;If these location markers disappear once they are in the hero's line of sight, the object in question is either buried, submerged or else has been moved&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection is introduced with the potion of object detection in Hack 1.21, Hack for PDP-11 and PC/IX Hack, which are all based on [[Jay Fenlason's Hack]]. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The potion is &lt;/del&gt;included in the initial item list for [[Hack 1.0]], along with the then-new scroll of food detection&amp;amp;mdash;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;their &lt;/del&gt;spell equivalents are introduced in [[NetHack 1.3d]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection is introduced with the potion of object detection in Hack 1.21, Hack for PDP-11 and PC/IX Hack, which are all based on [[Jay Fenlason's Hack]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;mdash;the scroll of gold detection is also present in Hack 1&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;21 and Hack for PDP-11. Both items are &lt;/ins&gt;included in the initial item list for [[Hack 1.0]], along with the then-new scroll of food detection&amp;amp;mdash;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/ins&gt;spell equivalents &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for object detection and food detection &lt;/ins&gt;are introduced in [[NetHack 1.3d]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Variants==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Some [[variant]]s of ''NetHack'' may add either new forms of object detection or alternate sources of the effect.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===UnNetHack===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===UnNetHack===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[UnNetHack]], [[reading]] the blessed [[scroll of magic mapping]] reveals the location of objects similar to an uncursed potion of object detection.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[UnNetHack]], [[reading]] the blessed [[scroll of magic mapping]] reveals the location of objects similar to an uncursed potion of object detection.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===dNetHack===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===dNetHack===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[dNetHack]], [[notdNetHack]] and [[notnotdNetHack]], [[invoking]] [[The Marauder's Map (dNetHack)|The Marauder's Map]] detects objects identically to a potion of the same beatitude as the [[artifact]], then detects other artifacts on the level, mapping them over existing marked objects if necessary.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In [[dNetHack]], [[notdNetHack]] and [[notnotdNetHack]], [[invoking]] [[The Marauder's Map (dNetHack)|The Marauder's Map]] detects objects identically to a potion of the same beatitude as the [[artifact]], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;then detects other artifacts on the level, mapping them over existing marked objects if necessary&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===xNetHack===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;In [[xNetHack]], reading a blessed scroll of gold detection detects [[gem]]s as well as gold pieces and gold items.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;One of [[Itlachiayaque (xNetHack)|Itlachiayaque's]] invocation effects allows the holder to gaze into it for the same effect as a crystal ball of the same beatitude, akin to [[the Orb of Detection]] (which it replaces as the Archeologist quest artifact)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{stub}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-367}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{nethack-367}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Properties]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Properties]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194389&amp;oldid=prev</id>
		<title>Umbire the Phantom: continue expanding</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194389&amp;oldid=prev"/>
		<updated>2025-10-24T00:18:33Z</updated>

		<summary type="html">&lt;p&gt;continue expanding&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:18, 24 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a potion of object detection reveals all items on the current level (including [[buried]] and underwater objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Quaffing a potion of object detection reveals all items on the current level (including [[buried]] and underwater objects) and [[exercises]] [[wisdom]], with the details and breadth of the detected objects dependent on the potion's beatitude.{{refsrc|src/potion.c|849|version=NetHack 3.6.7|name=&amp;quot;peffects&amp;quot;|comment=both potion and spell use the same code}}{{refsrc|src/potion.c|853|version=NetHack 3.6.7}}{{refsrc|src/potion.c|851|version=NetHack 3.6.7|comment=calls &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|582|version=NetHack 3.6.7|comment=&amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; function}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Casting the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;Casting&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, dependent on the caster's skill level&lt;/ins&gt;.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|1477|nethack=3.6.7|name=&amp;quot;food_detect&amp;quot;|comment=both the spell and scroll call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}{{refsrc|src/detect.c|469|nethack=3.6.7}}{{refsrc|src/detect.c|476|nethack=3.6.7}}{{refsrc|src/detect.c|563-L570|nethack=3.6.7&lt;/ins&gt;}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;behaves much like &lt;/del&gt;the effects of reading the scroll &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;does&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;minus any ability to detect potions&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;replicates &lt;/ins&gt;the effects of reading the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;non-cursed &lt;/ins&gt;scroll &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;as described above&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dependent on the caster's skill level&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;ref name=&amp;quot;food_detect&amp;quot;/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/del&gt;[[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items (i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;). A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;and [[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items (i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;). A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot; &gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection is introduced with the potion of object detection in Hack 1.21, Hack for PDP-11 and PC/IX Hack, which are all based on [[Jay Fenlason's Hack]]. The potion is included in the initial item list for [[Hack 1.0]], along with the then-new scroll of food detection&amp;amp;mdash;their spell equivalents are introduced in [[NetHack 1.3d]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object detection is introduced with the potion of object detection in Hack 1.21, Hack for PDP-11 and PC/IX Hack, which are all based on [[Jay Fenlason's Hack]]. The potion is included in the initial item list for [[Hack 1.0]], along with the then-new scroll of food detection&amp;amp;mdash;their spell equivalents are introduced in [[NetHack 1.3d]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Variants==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===UnNetHack===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In [[UnNetHack]], [[reading]] the blessed [[scroll of magic mapping]] reveals the location of objects similar to an uncursed potion of object detection.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;===dNetHack===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In [[dNetHack]], [[notdNetHack]] and [[notnotdNetHack]], [[invoking]] [[The Marauder's Map (dNetHack)|The Marauder's Map]] detects objects identically to a potion of the same beatitude as the [[artifact]], then detects other artifacts on the level, mapping them over existing marked objects if necessary.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194295&amp;oldid=prev</id>
		<title>Umbire the Phantom: duped</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194295&amp;oldid=prev"/>
		<updated>2025-10-21T03:07:16Z</updated>

		<summary type="html">&lt;p&gt;duped&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:07, 21 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Casting the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Casting the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also some items that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1479&lt;/del&gt;|nethack=3.6.7|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;comment=call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment&lt;/del&gt;=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;tt&amp;gt;&lt;/del&gt;food_detect&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/tt&amp;gt; function}}{{refsrc|src/read.c|1479|nethack=3.6.7&lt;/del&gt;|comment=call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level.{{refsrc|src/read.c|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;1477&lt;/ins&gt;|nethack=3.6.7|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;name&lt;/ins&gt;=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;food_detect&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;|comment=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;both the spell and scroll &lt;/ins&gt;call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}} Reading a cursed scroll, or being [[confused]] and reading a scroll of any beatitude, will instead reveal all potions on the level.{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] and ([[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items (i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;). A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] and ([[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items (i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;). A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194294&amp;oldid=prev</id>
		<title>Umbire the Phantom: /* Description */ expand</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194294&amp;oldid=prev"/>
		<updated>2025-10-21T03:01:02Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description: &lt;/span&gt; expand&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:01, 21 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** A blessed potion will display detected items that are not in the inventory of a [[monster]] as though the hero has seen them up close when navigating the resulting screen, and will have the appearances of all items in their inventory revealed if applicable (e.g. they are currently [[blind]]){{refsrc|src/detect.c|589|version=NetHack 3.6.7}}{{refsrc|src/detect.c|619|version=NetHack 3.6.7}}{{refsrc|src/detect.c|630|version=NetHack 3.6.7}}{{refsrc|src/detect.c|641|version=NetHack 3.6.7}}{{refsrc|src/detect.c|655|version=NetHack 3.6.7}}&amp;amp;mdash;otherwise, the potion will give a generalized description of the item type for each object if they are not known to the hero. Cursed potions will treat cloaked [[mimic]]s as actual items, with the class of the &amp;quot;item&amp;quot; selected randomly per mimic.{{refsrc|src/detect.c|588|version=NetHack 3.6.7}}{{refsrc|src/detect.c|658|version=NetHack 3.6.7}}{{refsrc|src/detect.c|733|version=NetHack 3.6.7}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Casting the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Casting the {{+ of|detect treasure}} spell replicates the effects of quaffing the non-cursed potion as detailed above.&amp;lt;ref name=&amp;quot;peffects&amp;quot;/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;several methods &lt;/del&gt;that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* There are also &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;some items &lt;/ins&gt;that can detect specific object types:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;mdash;reading &lt;/del&gt;a cursed scroll, or being confused and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.{{refsrc|src/read.c|1479|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}}{{refsrc|src/read.c|1479|nethack=3.6.7|comment=call &amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; in detect.c}}{{refsrc|src/detect.c|455|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;food_detect&amp;lt;/tt&amp;gt; function}} Reading &lt;/ins&gt;a cursed scroll, or being &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;confused&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/ins&gt;and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/detect.c|461-L463|nethack=3.6.7}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** Reading a non-cursed [[scroll of gold detection]] will reveal the current location of all [[gold pieces]] and ([[gold golem]]s) on the level. A blessed scroll will additionally reveal [[Gold (material)|golden]] items (i.e. the [[Candelabrum of Invocation]] and [[ring]]s that have the appearance of a &amp;quot;gold ring&amp;quot;). A cursed scroll will instead detect [[trap]]s and mark them as gold pieces&amp;amp;mdash;reading a non-cursed scroll while confused will detect traps and also appropriately mark them.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stale object markings are always cleared when mapping &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the level &lt;/del&gt;from this effect. Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stale object markings &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;of the applicable type &lt;/ins&gt;are always cleared when mapping &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;item locations &lt;/ins&gt;from this effect.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{refsrc|src/detect.c|284|nethack=3.6.7|comment=&amp;lt;tt&amp;gt;clear_stale_map()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|312|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;gold_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|465|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;food_detect()&amp;lt;/tt&amp;gt;}}{{refsrc|src/detect.c|666|nethack=3.6.7|comment=call from &amp;lt;tt&amp;gt;object_detect()&amp;lt;/tt&amp;gt; if there were no stale markings to clear}} &lt;/ins&gt;Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194272&amp;oldid=prev</id>
		<title>Umbire the Phantom: mention crystal ball, describe object mapping</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194272&amp;oldid=prev"/>
		<updated>2025-10-20T12:20:49Z</updated>

		<summary type="html">&lt;p&gt;mention crystal ball, describe object mapping&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:20, 20 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&amp;amp;mdash;reading a cursed scroll, or being confused and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&amp;amp;mdash;reading a cursed scroll, or being confused and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** If the hero [[applies]] a [[crystal ball]] that has charges and selects the glyph of an object type to look for, successfully passing the [[intelligence]] check will detect all items of that type on the current level.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Stale object markings are always cleared when mapping the level from this effect. Floor items are mapped over buried items, items on the top of piles are mapped over the rest of the pile, and the first item in a monster's inventory is mapped over any items they are standing on.{{refsrc|src/detect.c|608|version=NetHack 3.6.7}}{{refsrc|src/detect.c|648|version=NetHack 3.6.7}}{{refsrc|src/detect.c|683|version=NetHack 3.6.7}}{{refsrc|src/detect.c|702|version=NetHack 3.6.7}}{{refsrc|src/detect.c|719|version=NetHack 3.6.7}}{{refsrc|src/detect.c|744|version=NetHack 3.6.7}} The hero can navigate the resulting screen from quaffing the potion by moving their cursor to highlight particular objects, and any other key that does not perform a navigation action will exit this screen{{refsrc|src/detect.c|679|version=NetHack 3.6.7}}{{refsrc|src/detect.c|762|version=NetHack 3.6.7|comment=temporary map navigation}}&amp;amp;mdash;the locations of those objects are recorded when returning to normal play.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==History==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194271&amp;oldid=prev</id>
		<title>Umbire the Phantom: history</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Object_detection&amp;diff=194271&amp;oldid=prev"/>
		<updated>2025-10-20T12:13:32Z</updated>

		<summary type="html">&lt;p&gt;history&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:13, 20 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot; &gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&amp;amp;mdash;reading a cursed scroll, or being confused and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Reading a non-cursed [[scroll of food detection]] will reveal all comestible items on the current level&amp;amp;mdash;reading a cursed scroll, or being confused and reading a scroll of any beatitude, will instead reveal all potions on the level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** Casting the {{+ of|detect food}} spell behaves much like the effects of reading the scroll does, minus any ability to detect potions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==History==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Object detection is introduced with the potion of object detection in Hack 1.21, Hack for PDP-11 and PC/IX Hack, which are all based on [[Jay Fenlason's Hack]]. The potion is included in the initial item list for [[Hack 1.0]], along with the then-new scroll of food detection&amp;amp;mdash;their spell equivalents are introduced in [[NetHack 1.3d]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Umbire the Phantom</name></author>
		
	</entry>
</feed>