reading covered T-shirt (trunk only)

From a bug report, you could read
a worn T-shirt even when it was covered by a worn suit.
This commit is contained in:
nethack.rankin
2009-04-01 00:52:30 +00:00
parent 80322ee47d
commit 35d9a7c978
2 changed files with 8 additions and 0 deletions

View File

@@ -96,6 +96,13 @@ doread()
You_cant("feel any Braille writing.");
return 0;
}
/* can't read shirt worn under suit (under cloak is ok though) */
if (uarm && scroll == uarmu) {
pline("%s shirt is obscured by %s%s.",
scroll->unpaid ? "That" : "Your",
shk_your(buf, uarm), suit_simple_name(uarm));
return 0;
}
u.uconduct.literate++;
if(flags.verbose)
pline("It reads:");