Changeset 229
- Timestamp:
- 06/27/07 21:43:07 (1 year ago)
- Files:
-
- trunk/src/cave.c (modified) (1 diff)
- trunk/src/cmd1.c (modified) (2 diffs)
- trunk/src/defines.h (modified) (3 diffs)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/melee2.c (modified) (3 diffs)
- trunk/src/object1.c (modified) (2 diffs)
- trunk/src/squelch.c (modified) (1 diff)
- trunk/src/tables.c (modified) (5 diffs)
- trunk/src/xtra2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cave.c
r227 r229 843 843 { 844 844 /* Memorized objects */ 845 if (o_ptr->marked )845 if (o_ptr->marked && !squelch_hide_item(o_ptr)) 846 846 { 847 847 /* Hack -- object hallucination */ trunk/src/cmd1.c
r227 r229 769 769 770 770 /* Ignore all hidden objects */ 771 if ( !o_ptr->marked) continue;771 if ((!o_ptr->marked) || squelch_hide_item(o_ptr)) continue; 772 772 773 773 /* Paranoia -- ignore all dead objects XXX */ … … 2052 2052 { 2053 2053 /* Visible object */ 2054 if (o_ptr->marked ) return (TRUE);2054 if (o_ptr->marked && !squelch_hide_item(o_ptr)) return (TRUE); 2055 2055 } 2056 2056 trunk/src/defines.h
r227 r229 2425 2425 #define OPT_auto_more 71 2426 2426 #define OPT_hp_changes_color 74 2427 #define OPT_hide_squelchable 75 2427 2428 2428 2429 … … 2479 2480 * Hack -- Option symbols 2480 2481 */ 2482 #define OPTION(opt_name) op_ptr->opt[OPT_##opt_name] 2483 2481 2484 #define rogue_like_commands op_ptr->opt[OPT_rogue_like_commands] 2482 2485 #define quick_messages op_ptr->opt[OPT_quick_messages] … … 2511 2514 #define auto_more op_ptr->opt[OPT_auto_more] 2512 2515 #define hp_changes_color op_ptr->opt[OPT_hp_changes_color] 2513 2516 #define hide_squelchable OPTION(hide_squelchable) 2514 2517 #define birth_maximize op_ptr->opt[OPT_birth_maximize] 2515 2518 #define birth_randarts op_ptr->opt[OPT_birth_randarts] trunk/src/externs.h
r227 r229 600 600 601 601 void squelch_set(object_type *o_ptr); 602 bool squelch_hide_item(object_type *o_ptr); 602 603 void squelch_items(void); 603 604 void do_cmd_options_item(void *, cptr); trunk/src/melee2.c
r204 r229 3981 3981 3982 3982 /* Describe observable situations */ 3983 if (m_ptr->ml && player_has_los_bold(ny, nx) )3983 if (m_ptr->ml && player_has_los_bold(ny, nx) && !squelch_hide_item(o_ptr)) 3984 3984 { 3985 3985 /* Dump a message */ … … 4000 4000 4001 4001 /* Describe observable situations */ 4002 if (player_has_los_bold(ny, nx) )4002 if (player_has_los_bold(ny, nx) && !squelch_hide_item(o_ptr)) 4003 4003 { 4004 4004 /* Dump a message */ … … 4026 4026 4027 4027 /* Describe observable situations */ 4028 if (player_has_los_bold(ny, nx) )4028 if (player_has_los_bold(ny, nx) && !squelch_hide_item(o_ptr)) 4029 4029 { 4030 4030 /* Dump a message */ trunk/src/object1.c
r199 r229 1892 1892 * Valid flags are any combination of the bits: 1893 1893 * 0x01 -- Verify item tester 1894 * 0x02 -- Marked items only1894 * 0x02 -- Marked/visible items only 1895 1895 * 0x04 -- Only the top item 1896 1896 */ … … 1921 1921 1922 1922 /* Marked */ 1923 if ((mode & 0x02) && !o_ptr->marked) continue; 1923 if ((mode & 0x02) && (!o_ptr->marked || squelch_hide_item(o_ptr))) 1924 continue; 1924 1925 1925 1926 /* Accept this item */ trunk/src/squelch.c
r221 r229 421 421 } 422 422 423 /* 424 * Returns TRUE if an item should be hidden due to the player's 425 * current settings. 426 */ 427 bool squelch_hide_item(object_type *o_ptr) 428 { 429 return (hide_squelchable ? squelch_item_ok(o_ptr) : FALSE); 430 } 423 431 424 432 /* trunk/src/tables.c
r156 r229 1472 1472 NULL, /* xxx smart_packs */ 1473 1473 "hp_changes_color", /* OPT_hp_changes_color */ 1474 NULL, /* xxx*/1474 "hide_squelchable", /* OPT_hide_squelchable */ 1475 1475 NULL, /* xxx */ 1476 1476 NULL, /* xxx */ … … 1736 1736 NULL, /* xxx smart_packs */ 1737 1737 "Player color indicates low hit points", /* OPT_hp_changes_color */ 1738 NULL, /* xxx*/1738 "Hide items set as squelchable", /* OPT_hide_squelchable */ 1739 1739 NULL, /* xxx */ 1740 1740 NULL, /* xxx */ … … 2000 2000 FALSE, /* xxx smart_packs */ 2001 2001 FALSE, /* OPT_hp_changes_color */ 2002 FALSE, /* xxx*/2002 FALSE, /* OPT_hide_squelchable */ 2003 2003 FALSE, /* xxx */ 2004 2004 FALSE, /* xxx */ … … 2214 2214 OPT_hilite_player, 2215 2215 OPT_center_player, 2216 OPT_hide_squelchable, 2216 2217 OPT_show_piles, 2217 2218 OPT_show_flavors, … … 2223 2224 OPT_view_perma_grids, 2224 2225 OPT_view_torch_grids, 2225 OPT_NONE,2226 2226 OPT_NONE, 2227 2227 }, trunk/src/xtra2.c
r224 r229 2263 2263 { 2264 2264 /* Memorized object */ 2265 if (o_ptr->marked ) return (TRUE);2265 if (o_ptr->marked && !squelch_hide_item(o_ptr)) return (TRUE); 2266 2266 } 2267 2267 … … 2694 2694 2695 2695 /* Describe it */ 2696 if (o_ptr->marked )2696 if (o_ptr->marked && !squelch_hide_item(o_ptr)) 2697 2697 { 2698 2698 char o_name[80];
