Improve the tin opener

This commit is contained in:
Pasi Kallinen
2015-12-19 14:44:39 +02:00
parent a5c63af579
commit 43bf9c978d
5 changed files with 33 additions and 12 deletions

View File

@@ -3494,18 +3494,8 @@ doapply()
res = dowrite(obj);
break;
case TIN_OPENER:
if (!carrying(TIN)) {
You("have no tin to open.");
goto xit;
}
You("cannot open a tin without eating or discarding its contents.");
if (flags.verbose)
pline("In order to eat, use the 'e' command.");
if (obj != uwep)
pline(
"Opening the tin will be much easier if you wield the tin opener.");
goto xit;
res = use_tin_opener(obj);
break;
case FIGURINE:
use_figurine(&obj);
break;