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.
This commit is contained in:
arromdee
2004-03-12 03:57:20 +00:00
parent aa6f3df889
commit 74b4ffe486
3 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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));