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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)timeout.c 3.5 2007/03/15 */
|
||||
/* SCCS Id: @(#)timeout.c 3.5 2009/01/20 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1145,7 +1145,7 @@ begin_burn(obj, already_lit)
|
||||
if (artifact_light(obj)) {
|
||||
obj->lamplit = 1;
|
||||
do_timer = FALSE;
|
||||
radius = 2;
|
||||
radius = arti_light_radius(obj);
|
||||
} else {
|
||||
impossible("begin burn: unexpected %s", xname(obj));
|
||||
turns = obj->age;
|
||||
|
||||
Reference in New Issue
Block a user