From 8d08badfbb7a6b92c45225417f8882ef8d1b1c65 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 24 Feb 2002 19:13:32 +0000 Subject: [PATCH] Darkness msg despite sunsword > Is the "You are surrounded by darkness!" message from reading a cursed > scroll of light (or non-cursed if confused) appropriate if you're > wielding Sunsword, which _doesn't_ get turned off by it? --- src/read.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/read.c b/src/read.c index b0f9bb637..3c9e39e82 100644 --- a/src/read.c +++ b/src/read.c @@ -1328,7 +1328,11 @@ struct obj *obj; pline("It seems even darker in here than before."); return; } - You("are surrounded by darkness!"); + if (uwep && artifact_light(uwep) && uwep->lamplit) + pline("Suddenly, the only light left comes from %s!", + the(xname(uwep))); + else + You("are surrounded by darkness!"); } /* the magic douses lamps, et al, too */