From b51a1d6fd61b7e2405b67dc7532af6cfe0f5ea0c Mon Sep 17 00:00:00 2001 From: Nicholas Feinberg Date: Mon, 18 Jan 2021 09:35:29 -0800 Subject: [PATCH] Don't auto-drop ?tele in Gauntlet (Yermak) For purposes of auto-selecting items for drop with `d,`, ignore temp conditions such as 'being in Gauntlet'. This should discourage accidents. --- crawl-ref/source/invent.cc | 2 +- crawl-ref/source/item-name.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index d7a94db..eb5a7ca 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -184,7 +184,7 @@ bool InvEntry::has_star() const string InvEntry::get_filter_text() const { - return item_prefix(*item) + " " + get_text(); + return item_prefix(*item, false) + " " + get_text(); } string InvEntry::get_text(bool need_cursor) const diff --git a/crawl-ref/source/item-name.cc b/crawl-ref/source/item-name.cc index ffb2793..23326d7 100644 --- a/crawl-ref/source/item-name.cc +++ b/crawl-ref/source/item-name.cc @@ -2928,7 +2928,7 @@ bool is_useless_item(const item_def &item, bool temp, bool ident) case SCR_TELEPORTATION: return you.species == SP_FORMICID || crawl_state.game_is_sprint() - || player_in_branch(BRANCH_GAUNTLET); + || temp && player_in_branch(BRANCH_GAUNTLET); case SCR_BLINKING: return you.species == SP_FORMICID; case SCR_AMNESIA: -- 1.8.5