Intrinsic protection

From NetHackWiki
(Redirected from Divine Protection)
Jump to navigation Jump to search

Intrinsic protection is an intrinsic property which grants a bonus to AC independent of any armor or other equipment you may be wearing. It is commonly known as divine protection, as it is typically gained and lost via divine intervention.

Gaining intrinsic protection

You can gain one or more points of intrinsic protection by doing any of the following:

  • Donating to a peaceful aligned priest of any alignment in a temple, including a cross-aligned temple or a temple to Moloch, but not a desecrated temple.
    • Donate at least 400 but less than 600 times your XL; guaranteed up to 9 points of intrinsic protection, unlikely after that.
  • As a favor from prayer.
    • Luck must be at least 6.
  • Eating a ring of protection.
    • Gain intrinsic protection equal to the ring's bonus if successful.

Losing intrinsic protection

All of your intrinsic protection is lost if you do any of the following:

An exception is attempting to convert a high altar on the Astral Plane - the god will smite you, but you will not lose your protection.

Precise mechanics

Technically, protection is split up into two properties: the protection intrinsic (HProtection [1] as FROMOUTSIDE) and how much AC you get (u.ublessed).

The intrinsic determines whether u.ublessed affects your armor class.[2] It is set by every type of action that can gain you protection, and can only be unset by a gremlin's special attack. On the other hand, u.ublessed is modified only by sacrifice, prayer, removing or attempting to wear a helm of opposite alignment, or by eating the ring.

If you donate at least 400*XL but less than 600*XL gold to a priest, you can execute the code that gives you protection. This happens always if u.ublessed<9, and with a one in u.ublessed chance if u.ublessed < 20.[3] The prayer favor case is largely analogous, but it does not have this limit.[4] In either case, if you already have the protection intrinsic, u.ublessed is incremented by one. If not, you get it, and you gain 2-4 points of protection only if u.ublessed was zero (otherwise u.ublessed is left unchanged). There is an equal probability of gaining 2, 3, or 4 points.

Beginning with NetHack 3.6.0, you always gain protection if you previously had protection but lost it to a gremlin. Thus one donation restores all previous protection.[5]

If you eat a ring of protection and "magic spreads through your body" (1/3 chance), the protection intrinsic is set unconditionally and the ring's enchantment is added to u.ublessed.

Examples:

  • (in NetHack 3.6.0) If you bought 15 points of protection and a gremlin then steals it, your next donation of 400 times experience level will restore your 15 points of protection.
    • (in NetHack 3.4.3) Each time you try to buy protection from a priest you will have a 1/15 chance of reactivating your 15 points of protection.
  • If you bought 15 points of protection and lost it by being smitten by a god, the next time you buy protection you will have 1 point of protection.
  • If you bought 15 points of protection, lost it by being smitten by a god, AND felt vulnerable from a gremlin attack, the next time you buy protection you will have 2-4 points of protection.

Strategy

The ability to purchase protection from priests makes donations one of the most common uses for gold, especially gold in very large quantities.

In Nethack 3.4.3, you may not want to purchase the 9th point of protection from a priest: if a gremlin makes you feel vulnerable later, it will be much easier to get your protection back if you only have 8 points of intrinsic protection.

As unholy water prayer is one of the means of losing intrinsic protection, if you intend to pray to make unholy water, it is a good idea to do so before purchasing protection.

The protection racket meta-strategy is an approach to purchasing a great deal of divine protection via donating to the priest in Mine Town early in the game.

See also

References

This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.