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

@@ -318,6 +318,7 @@ prevent temple priests and minions from wearing helms of opposite alignment
'D' drop command didn't handle 'u' choice correctly if the only unpaid items
were inside containers
pearl rings shouldn't rust
shouldn't be able to read a worn T-shirt when it's covered by a worn suit
Platform- and/or Interface-Specific Fixes

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:");