From 06812e0ce76df6a6315a2d4347a5791684b4816b Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 4 Jan 2003 22:12:55 +0000 Subject: [PATCH] adornment 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index de90f4688..6b1e99976 100644 --- 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 -- 2.40.0