Applying a cursed lamp can make your hands slippery

This commit is contained in:
Pasi Kallinen
2022-07-12 22:12:52 +03:00
parent e339f8a1fa
commit 81d54f15ce
2 changed files with 6 additions and 1 deletions

View 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

View 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 {