summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-10 06:14:51 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-10 06:14:51 +0000
commit6d0a04543d0eb54737e33943e1d9f00ee4ca02f1 (patch)
tree523b043433f2cd52a8b1b52320239c79ccabb704
parent71ba37e86b94376ca01be3decab6145766b04bf4 (diff)
downloadcrawl-ref-6d0a04543d0eb54737e33943e1d9f00ee4ca02f1.tar.gz
crawl-ref-6d0a04543d0eb54737e33943e1d9f00ee4ca02f1.zip
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
-rw-r--r--crawl-ref/source/effects.cc22
1 files changed, 1 insertions, 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<char> 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...