Difference between revisions of "Spellbook of detect treasure"

From NetHackWiki
Jump to navigation Jump to search
(Skilled detect treasure is just blessed object detection: it DOES NOT reveal the appearance of monster inventories.)
m (refsrc)
 
(11 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{spellbook|name=detect treasure|level=4|type=divination|turns=15|direction=non-directional|equiv=[[potion of object detection]]|abundance=2.03%|role=rogue}}
+
{{spellbook
 +
|name=detect treasure
 +
|level=4
 +
|type=divination
 +
|turns=15
 +
|direction=non-directional
 +
|equiv=[[potion of object detection]]
 +
|abundance=2.03%
 +
|role=Rogue
 +
}}
  
Allows you to learn the '''detect treasure''' spell. This spell has the same effect as a [[potion of object detection]].<ref>{{sourcecode|spell.c|910}} a fake potion is loaded up and used, allowing the peffects (potion effects) code to be reused for spell effects. Thus the spell and the potion are implemented by the same code.</ref>  It is the [[special spell]] for [[rogue]]s.
+
In ''[[NetHack]]'', the '''spellbook of detect treasure''' can be read to learn the '''spell of detect treasure'''. It is a level 4 [[divination spell]], and the [[spellbook]] takes roughly 15 turns to read. It is the [[special spell]] for [[Rogue]]s.
  
==Casting effects==
+
==Generation==
 +
There is a ~2.03% chance that a randomly generated spellbook is a spellbook of detect treasure.
  
{|class="prettytable"
+
==Description==
!Case
+
When cast, the spell generally has the same effect as a [[potion of object detection]], depending on the skill level it is cast at{{refsrc|src/spell.c|1158|nethack=3.6.7|comment=The peffects (potion effects) code is reused for spell effects by loading and using up a "fake potion"}} - at Basic skill or lower the spell reveals the location and item type of every object on the level and [[exercise]]s [[wisdom]]. At Skilled or higher, the spell reveals the location and item type of every object on the level, and additionally reveals the appearance of every item on the ground and in your inventory, as if you had seen them yourself.
!Effect
 
|-
 
|Unskilled or Basic
 
|You detect objects on that level and exercise your wisdom. (Like uncursed object detection.)
 
|-
 
|Skilled or Expert
 
|
 
You detect objects on that level and exercise your wisdom.<br/>
 
You know the appearance of all objects on that level (and in your inventory) as if you had seen them. (Like blessed object detection.)
 
|}
 
  
Treasures detected are always real. If NetHack doesn't show the gold/gem symbol when you get to the marked spot, it means that either it was in the inventory of a monster (that could have moved), or the items are [[buried]] in the floor. In the latter case, just [[dig]] a [[pit]] (apply a [[pickaxe]] down {{kbd|>}}) and you'll find the stuff.
+
==Strategy==
 +
Like the potion of object detection, the spell of detect treasure can be used to prioritize items when exploring, such as finding the [[Castle]] chest with the [[wand of wishing]] or finding [[vault]]s that are not looted yet by revealing the 2x2 square of [[gold]] contained within.
  
N.B. Your wisdom is exercised if the only objects on the level are in your inventory, but not if there are no objects at all.
+
Though somewhat difficult to cast for most roles without training in divination spells, once a player can reliably cast the spell it may be preferable to the potion of object detection: though the potion is commonplace, multiple potions are decently heavy to carry and excess ones are usually diluted into [[Potion of water|water]] for other purposes. Conversely, detect treasure can be cast so long as you have the energy available to, though that energy cost may be high depending on armor and failure rates, unless you have energy to spare or else do not expend much of it in combat.
 +
 
 +
==History==
 +
The spellbook of detect treasure is introduced with all other spellbooks in [[NetHack 1.3d]].
  
 
==Messages==
 
==Messages==
 +
{{main|Potion of object detection#Messages}}
  
{|class="prettytable"
+
The spell generates the same messages as the potion of object detection.
!Message
 
!Reason
 
|-
 
|"You have a strange feeling for a moment, then it passes."
 
|
 
No objects on the level.<br/>
 
You are a [[beginner]] and not hallucinating.
 
|-
 
|"You have a normal feeling for a moment, then it passes."
 
|
 
No objects on the level.<br/>
 
You are a [[beginner]] and hallucinating.
 
|-
 
|"You feel a lack of something."
 
|No objects on the level.
 
|-
 
|"You sense objects nearby."
 
|
 
The only objects detected are in your inventory.<br/>
 
You are not hallucinating.
 
|-
 
|"You sense something nearby."
 
|
 
The only objects detected are in your inventory.<br/>
 
You are hallucinating.
 
|-
 
|"You sense the presence of objects."
 
|
 
Objects detected.<br/>
 
You are not hallucinating.
 
|-
 
|"You sense the presence of something."
 
|
 
Objects detected.<br/>
 
You are hallucinating.
 
|-
 
|"You sense the absence of objects."
 
|
 
No objects detected.
 
|}
 
 
 
==Strategy==
 
Although mostly useless, the detect treasure spell allows you to remotely detect [[vaults]], which appear as four gold coins (provided they haven't been looted by you, or eaten by a [[rock mole]]):
 
{{yellow|$$}}
 
{{yellow|$$}}
 
 
 
The spell is also sometimes used in the [[Castle]], as an easy way to detect where the chest containing the [[wand of wishing]] is. It has some use in [[Gehennom]], where, especially when combined with [[spellbook of magic mapping|magic mapping]] and/or [[teleportation|teleport]], it allows you to traverse through the levels having picked everything up without fully navigating the maze.
 
  
 
==References==
 
==References==
 
<references/>
 
<references/>
 
+
{{nethack-367}}
{{DOD}}
 
 
[[Category:Spellbooks|Detect treasure]]
 
[[Category:Spellbooks|Detect treasure]]

Latest revision as of 08:29, 24 September 2023

spellbook of
+   detect treasure   Light green spellbook.png
Appearance random
Abundance 2.03%
Base price 400 zm
Weight 50
Turns to read 15
Ink to write 20–39
Spell type divination
Level 4
Power cost 20 Pw
Direction non-directional
Equivalent potion of object detection
Special for Rogue

In NetHack, the spellbook of detect treasure can be read to learn the spell of detect treasure. It is a level 4 divination spell, and the spellbook takes roughly 15 turns to read. It is the special spell for Rogues.

Generation

There is a ~2.03% chance that a randomly generated spellbook is a spellbook of detect treasure.

Description

When cast, the spell generally has the same effect as a potion of object detection, depending on the skill level it is cast at[1] - at Basic skill or lower the spell reveals the location and item type of every object on the level and exercises wisdom. At Skilled or higher, the spell reveals the location and item type of every object on the level, and additionally reveals the appearance of every item on the ground and in your inventory, as if you had seen them yourself.

Strategy

Like the potion of object detection, the spell of detect treasure can be used to prioritize items when exploring, such as finding the Castle chest with the wand of wishing or finding vaults that are not looted yet by revealing the 2x2 square of gold contained within.

Though somewhat difficult to cast for most roles without training in divination spells, once a player can reliably cast the spell it may be preferable to the potion of object detection: though the potion is commonplace, multiple potions are decently heavy to carry and excess ones are usually diluted into water for other purposes. Conversely, detect treasure can be cast so long as you have the energy available to, though that energy cost may be high depending on armor and failure rates, unless you have energy to spare or else do not expend much of it in combat.

History

The spellbook of detect treasure is introduced with all other spellbooks in NetHack 1.3d.

Messages

The spell generates the same messages as the potion of object detection.

References

  1. src/spell.c in NetHack 3.6.7, line 1158: The peffects (potion effects) code is reused for spell effects by loading and using up a "fake potion"