]> granicus.if.org Git - nethack/commitdiff
adornment
authornethack.allison <nethack.allison>
Sat, 4 Jan 2003 22:12:55 +0000 (22:12 +0000)
committernethack.allison <nethack.allison>
Sat, 4 Jan 2003 22:12:55 +0000 (22:12 +0000)
<email deleted> on Saturday, January 4, 2003 at 12:16:29
comments: I just noticed that, while wearing a -1 ring of adornment, a potion
of enlightenment gave the intrinsic "You are adorned."  Shouldn't it be more
accurately, "You are unadorned." or something similar?

src/cmd.c

index de90f468808dc783569683ec9418849f45de2047..6b1e999768f894e5a5b8f68a33b379a3ceaf0e55 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -937,7 +937,16 @@ int final; /* 0 => still in progress; 1 => over, survived; 2 => dead */
        if (u.umconf) you_are("going to confuse monsters");
 
        /*** Appearance and behavior ***/
-       if (Adornment) you_are("adorned");
+       if (Adornment) {
+           int adorn = 0;
+
+           if(uleft && uleft->otyp == RIN_ADORNMENT) adorn += uleft->spe;
+           if(uright && uright->otyp == RIN_ADORNMENT) adorn += uright->spe;
+           if (adorn < 0)
+               you_are("poorly adorned");
+           else
+               you_are("adorned");
+       }
        if (Invisible) you_are("invisible");
        else if (Invis) you_are("invisible to others");
        /* ordinarily "visible" is redundant; this is a special case for