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:
@@ -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
|
||||
|
||||
@@ -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:");
|
||||
|
||||
Reference in New Issue
Block a user