]> granicus.if.org Git - nethack/commit
Protection groundwork/artifact tweaks (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 7 Apr 2011 18:10:47 +0000 (18:10 +0000)
committernethack.rankin <nethack.rankin>
Thu, 7 Apr 2011 18:10:47 +0000 (18:10 +0000)
commit33d9b7131157bf54188c2cee1c8d0a78cbede9fe
tree8329f04f9436a1266e9dd56ff6cefab6426529bc
parent7c7497e5e05869fd60baff12bf29fdb36e13a5cc
Protection groundwork/artifact tweaks (trunk only)

     This is mostly groundwork prior to making the Protection intrinsic
become more meaningful.  The Mitre of Holiness (priest quest artifact)
and the Tsurugi of Muramasa (samurai quest artifact) will now confer
Protection when worn/wielded (though at present that effectively does
nothing).  While in there, this also changes the Eye of the Aethiopica
(wizard quest artifact), the Eyes of the Overworld (monk quest artifact),
and the Sceptre of Might (caveman quest artifact) so that they need to
be worn/wielded rather than just carried in order for them to confer
magic resistance.  That way they're a little less attractive for wishing
by other roles and a little more likely to be actively used by their own
roles (not an issues for the Eyes, I'm sure).  This change actually works
to the player's advantage, since it means that monsters who successfully
steal those items won't instantly obtain magic resistance in the process.

     This adds protects() as a predicate routine to check an item for
conferring Protection.  In order to do that, it renames the existing
protects() routine to defends_when_carried(), because that predicate is
actually a variant of defends() for items which aren't worn or wielded.
doc/fixes35.0
include/artifact.h
include/artilist.h
include/extern.h
src/artifact.c
src/mondata.c
src/trap.c