Talk:Magical item

From NetHackWiki
Revision as of 15:44, 23 August 2011 by Tjr (talk | contribs) (why holy water is not magical.)
Jump to navigation Jump to search

I've just edited the "Other Items" section to note that holy water is "magical" when it comes to polyfodder. A blessed scroll of blank paper or plain spellbook is as well, in fact I make it a point to prepare for polypiling sessions at the bottom of Vlad's Tower (my favourite place to polypile, second only to the altar in Orcus-town) by blanking and blessing potions and scrolls. I've never experimented with unholy/cursed potions or blank readables, but it might stand to reason that any enchantment--positive or negative--would make something "magical" in the polyfodder sense.

Can someone verify this, or rather, has anyone already tried this before I finish my current game and delve into wizard mode to find out? Thanks! --chilemonkey

No, those items are not magic. Polymorph only checks the immutable properties of the object type (zap.c, line 1222), regardless of BUC status etc. They are defined in objclass.h and set via compiler macros in objects.c. Notably the BITS macro in objects.c, line 41 actually writes to the oc_magic field.
A potion of water is defined in objects.c, line 751. The big zero in the third column tells you it is not magic.
Blanking and blessing potions and scrolls has a different reason: That's the easiest way to mass-bless them, and the blessed status both gets preserved by polymorphs and reduces loss of polyfodder.
If you're burning for a way to make potions magical, you might want to dip a huge stack of water into something else, and very likely get sickness. --Tjr 15:44, 23 August 2011 (UTC)