]> granicus.if.org Git - nethack/commitdiff
Applying a cursed lamp can make your hands slippery
authorPasi Kallinen <paxed@alt.org>
Tue, 12 Jul 2022 19:12:52 +0000 (22:12 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 12 Jul 2022 19:12:52 +0000 (22:12 +0300)
doc/fixes3-7-0.txt
src/apply.c

index 0b8e2a9a6552e3fc2d9b2ecf5143ca39fb7e148d..516073e2b1675d047528e87999ba92f3ccf8b253 100644 (file)
@@ -950,6 +950,7 @@ allow rush/run over water if wearing discovered water walking boots
 flying pets wouldn't target underwater food but if they happened to fly over
        such food they could and would eat it
 praying on an altar with pet corpse on it can revive the pet
+applying a cursed oil lamp can make your hands slippery
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 5591c4a3f462d5a1d0b4eb9e361a78a453d4753a..8155db70a0b17dd93b544155dfcd87a99e3d9936 100644 (file)
@@ -1595,7 +1595,11 @@ use_lamp(struct obj *obj)
         return;
     }
     if (obj->cursed && !rn2(2)) {
-        if (!Blind)
+        if ((obj->otyp == OIL_LAMP || obj->otyp == MAGIC_LAMP) && !rn2(3)) {
+            pline_The("lamp spills and covers your %s with oil.",
+                      fingers_or_gloves(TRUE));
+            make_glib((int) (Glib & TIMEOUT) + d(2, 10));
+        } else if (!Blind)
             pline("%s for a moment, then %s.", Tobjnam(obj, "flicker"),
                   otense(obj, "die"));
     } else {