Rename/invert 'pickup_dropped' to 'dropped_nopick'
This commit is contained in:
@@ -8594,7 +8594,7 @@ doset_simple_menu(void)
|
||||
spelling of their names; emphasize what it means */
|
||||
if (allopt[i].idx == opt_pickup_types
|
||||
|| allopt[i].idx == opt_pickup_thrown
|
||||
|| allopt[i].idx == opt_pickup_dropped)
|
||||
|| allopt[i].idx == opt_dropped_nopick)
|
||||
Strcat(buf, " (for autopickup)");
|
||||
add_menu(tmpwin, &nul_glyphinfo, &any, 0, 0,
|
||||
ATR_NONE, NO_COLOR, buf, MENU_ITEMFLAGS_NONE);
|
||||
|
||||
@@ -904,10 +904,10 @@ autopick_testobj(struct obj *otmp, boolean calc_costly)
|
||||
if (costly && !otmp->no_charge)
|
||||
return FALSE;
|
||||
|
||||
/* pickup_thrown/!pickup_dropped override pickup_types and exceptions */
|
||||
/* pickup_thrown/nopick_dropped override pickup_types and exceptions */
|
||||
if (flags.pickup_thrown && otmp->was_thrown)
|
||||
return TRUE;
|
||||
if (!flags.pickup_dropped && otmp->was_dropped)
|
||||
if (flags.nopick_dropped && otmp->was_dropped)
|
||||
return FALSE;
|
||||
|
||||
/* check for pickup_types */
|
||||
|
||||
Reference in New Issue
Block a user