OSDN Git Service

簡易鑑定の後でも自動破壊と自動刻みを適用。これで auto-squelch と同等。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 6 May 2002 08:40:27 +0000 (08:40 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 6 May 2002 08:40:27 +0000 (08:40 +0000)
src/dungeon.c

index 96637e5..6d33547 100644 (file)
@@ -96,6 +96,7 @@ static void sense_inventory_aux(int slot, bool heavy)
        byte        feel;
        object_type *o_ptr = &inventory[slot];
        char        o_name[MAX_NLEN];
+       int idx;
 
        /* We know about it already, do not tell us again */
        if (o_ptr->ident & (IDENT_SENSE))return;
@@ -194,6 +195,11 @@ o_name, index_to_label(slot),game_inscriptions[feel]);
        /* Set the "inscription" */
        o_ptr->feeling = feel;
 
+       /* Auto-inscription/destroy */
+       idx = is_autopick(o_ptr);
+       auto_inscribe_item(o_ptr, idx);
+       auto_destroy_item(slot, idx);
+
        /* Combine / Reorder the pack (later) */
        p_ptr->notice |= (PN_COMBINE | PN_REORDER);