From 6d0a04543d0eb54737e33943e1d9f00ee4ca02f1 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 10 Jun 2009 06:14:51 +0000 Subject: Get rid of the "chunks about to rot away" warning as it's currently more spammy than useful. It might be okay for trunk (though I don't think we need it) but it feels out of place in 0.5. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9937 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 7fd6a699ba..c1b5a4eaa9 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -2987,7 +2987,6 @@ static void _rot_inventory_food(long time_delta) std::vector rotten_items; int num_chunks = 0; - int num_chunks_rotting = 0; int num_chunks_gone = 0; int num_bones = 0; int num_bones_gone = 0; @@ -3071,15 +3070,6 @@ static void _rot_inventory_food(long time_delta) { rotten_items.push_back(index_to_letter(i)); } - - if (item.base_type == OBJ_FOOD && you.inv[i].special <= 10 - && !item.props.exists(ROTTING_WARNED_KEY)) - { - // In case time_delta >= 220 - item.props[ROTTING_WARNED_KEY] = true; - - num_chunks_rotting++; - } } //mv: messages when chunks/corpses become rotten @@ -3178,22 +3168,12 @@ static void _rot_inventory_food(long time_delta) } else msg += "completely or partially "; - + msg += "rotted away."; mprf(MSGCH_ROTTEN_MEAT, "%s", msg.c_str()); } burden_change(); } - - num_chunks -= num_chunks_gone; - if (num_chunks_rotting > 0) - { - mprf(MSGCH_ROTTEN_MEAT, - "%s of the %schunks of flesh in your inventory are close to " - "completely rotting away.", - num_chunks_rotting < num_chunks ? "Some" : "All", - num_chunks_gone > 0 ? "remaining " : ""); - } } // Do various time related actions... -- cgit v1.2.3-54-g00ecf