From 74b4ffe486ceb67d93ec3a8296cb6e5bdd6d68d3 Mon Sep 17 00:00:00 2001 From: arromdee Date: Fri, 12 Mar 2004 03:57:20 +0000 Subject: [PATCH] blindfold (from r.g.r.n) Someone suggested that if your vision is only blocked by a blindfold and it's the blindfold that glows, you should be able to see it. --- include/youprop.h | 3 +++ src/potion.c | 2 +- src/pray.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/youprop.h b/include/youprop.h index 905012516..44ed82bdc 100644 --- a/include/youprop.h +++ b/include/youprop.h @@ -100,6 +100,9 @@ !(ublindf && ublindf->oartifact == ART_EYES_OF_THE_OVERWORLD)) /* ...the Eyes operate even when you really are blind or don't have any eyes */ +#define Blindfolded_only (!Blinded && haseyes(youmonst.data) && Blindfolded && \ + !(ublindf && ublindf->oartifact == ART_EYES_OF_THE_OVERWORLD)) + /* blind because of a blindfold, and *only* that */ #define Sick u.uprops[SICK].intrinsic #define Stoned u.uprops[STONED].intrinsic diff --git a/src/potion.c b/src/potion.c index c6b577329..55b38985a 100644 --- a/src/potion.c +++ b/src/potion.c @@ -1682,7 +1682,7 @@ dodip() } potion->in_use = TRUE; /* assume it will be used up */ if(potion->otyp == POT_WATER) { - boolean useeit = !Blind; + boolean useeit = !Blind || (obj == ublindf && Blindfolded_only); if (potion->blessed) { if (obj->cursed) { if (useeit) diff --git a/src/pray.c b/src/pray.c index e2c82d2d7..d1d9c9052 100644 --- a/src/pray.c +++ b/src/pray.c @@ -396,7 +396,7 @@ decurse: return; } uncurse(otmp); - if (!Blind) { + if (!Blind || (otmp == ublindf && Blindfolded_only)) { pline("%s %s.", what ? what : (const char *)Yobjnam2(otmp, "softly glow"), hcolor(NH_AMBER)); -- 2.40.0