]> granicus.if.org Git - nethack/commit
Sunsword redux (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 24 Jan 2009 01:44:29 +0000 (01:44 +0000)
committernethack.rankin <nethack.rankin>
Sat, 24 Jan 2009 01:44:29 +0000 (01:44 +0000)
commitb12d8522c5e0c2c79607e4aa11b37e51977ebabd
tree1c9a252bea8af228dbaf09b5161bf8ed6f9dbaae
parente6b2d5c33d72f1d4f587cd8039da5500f3067d4a
Sunsword redux (trunk only)

     This started out as a one line change.  After I saw someone in the
newsgroup mention that Sunsword's light was inferior to that of a lamp,
I decided to make it work better (than in 3.4.3, that is, becoming the
same brightness as a lamp) when blessed and worse when cursed (useless to
hero but still visible if wielded by a monster).  But then it needed to
change light radius when its curse/bless state changed, and it needed
message feedback when doing so, and that got kind of complicated.  I
wouldn't have bothered if I'd known what I was getting into, but I don't
want to throw it away now that I've done all this work....

     Sunsword now gives a light radius of 3 when blessed (same as a lit
lamp), radius of 2 when uncursed (same as a lit candle and as it has been
providing since added in 3.4.0), and a radius of 1 when cursed (nearly
but not completely useless, as mentioned above).  Also, it now "shines"
rather than "glows" since we usually use the latter for temporary effects.
doc/fixes35.0
include/extern.h
include/flag.h
src/light.c
src/mkobj.c
src/potion.c
src/pray.c
src/timeout.c
src/weapon.c
src/wield.c