Difference between revisions of "Spellbook of detect treasure"

From NetHackWiki
Jump to navigation Jump to search
m (refsrc)
 
(21 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{spellbook|name=detect treasure|level=4|type=[[divination]]|cost=400|turns=15}}
+
{{spellbook
Allows you to learn the detect treasure spell. This spell has the same effect as a [[potion of object detection]].  It is the [[special spell]] for [[rogue]]s.
+
|name=detect treasure
 +
|level=4
 +
|type=divination
 +
|turns=15
 +
|direction=non-directional
 +
|equiv=[[potion of object detection]]
 +
|abundance=2.03%
 +
  |role=Rogue
 +
}}
  
==Casting effects==
+
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.
  
{|class="prettytable"
+
==Generation==
!Case
+
There is a ~2.03% chance that a randomly generated spellbook is a spellbook of detect treasure.
!Effect
 
|-
 
|Unskilled or Basic
 
|You detect objects on that level and exercise your wisdom.
 
|-
 
|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.
 
|}
 
  
Treasures detected are always real. If the gold/gem symbol suddenly disappears when you get to the marked spot, it means that the items are [[buried]] in the floor. Just [[dig]] a [[pit]] (apply a pickaxe down) and you'll find the stuff.
+
==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{{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.
  
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.
+
==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.
  
==Messages==
+
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.
  
{|class="prettytable"
+
==History==
!Message
+
The spellbook of detect treasure is introduced with all other spellbooks in [[NetHack 1.3d]].
!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==
+
==Messages==
 +
{{main|Potion of object detection#Messages}}
  
Although hardly useless, the detect treasure spell offers a function for which a number of alternatives exist: e.g. a [[potion of object detection]]. Uses include the remote detection of [[vaults]] - they show up as four gold coins (provided they haven't been looted by you, or eaten by a [[rock mole]]):
+
The spell generates the same messages as the potion of object detection.
  
{{yellow|$$}}
+
==References==
{{yellow|$$}}
 
This spell is also sometimes used in the [[Castle]], as an easy way to detect where the chest containing a wand of wishing is.
 
 
 
==Source code 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"