From 81d54f15ce6522e36a1093c86afc37163e83b664 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 12 Jul 2022 22:12:52 +0300 Subject: [PATCH] Applying a cursed lamp can make your hands slippery --- doc/fixes3-7-0.txt | 1 + src/apply.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 0b8e2a9a6..516073e2b 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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 diff --git a/src/apply.c b/src/apply.c index 5591c4a3f..8155db70a 100644 --- a/src/apply.c +++ b/src/apply.c @@ -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 {