autopickup_exceptions build followup
- correct an obsolete, incorrect comment
This commit is contained in:
16
src/pickup.c
16
src/pickup.c
@@ -601,20 +601,8 @@ boolean
|
|||||||
is_autopickup_exception(obj)
|
is_autopickup_exception(obj)
|
||||||
struct obj *obj;
|
struct obj *obj;
|
||||||
{
|
{
|
||||||
/* The pickup exceptions are a series of null-terminated
|
/*
|
||||||
* pattern string to match the item description against.
|
* Does the text description of this match an exception?
|
||||||
* The list ends with a double null terminator.
|
|
||||||
*
|
|
||||||
* You can only match against the strings that would shown
|
|
||||||
* in an inventory display, not the specific exact object
|
|
||||||
* name, unless that object was fully identified.
|
|
||||||
* For example, if you specified pattern "loadstone", and
|
|
||||||
* you had never identified "loadstone", it wouldn't match
|
|
||||||
* when you came across a loadstone, because it would be
|
|
||||||
* identified as "a gray stone". You could match on
|
|
||||||
* "gray stone" for an exception to autopickup, of course,
|
|
||||||
* and decide manually. This is in keeping with autopickup
|
|
||||||
* being an interface convenience only.
|
|
||||||
*/
|
*/
|
||||||
char *objdesc = makesingular(xname(obj));
|
char *objdesc = makesingular(xname(obj));
|
||||||
struct autopickup_exception *ape = iflags.autopickup_exceptions;
|
struct autopickup_exception *ape = iflags.autopickup_exceptions;
|
||||||
|
|||||||
Reference in New Issue
Block a user