From e4206960f898f3ffc8ff7d507dfb227a232b085b Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Wed, 30 Dec 2009 01:08:16 -0800 Subject: Do not destroy items in deep water and lava In the past, this made sense, because deep water was forever. Now, with Shoals tides and Fedhas Sunlight, deep water can dry up, and it makes no sense for waterproof items to cease to exist after a stint as a reef. Scrolls are still destroyed in lava because they are flammable. --- crawl-ref/source/terrain.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc index 2e3ac60cc7..b917b87b50 100644 --- a/crawl-ref/source/terrain.cc +++ b/crawl-ref/source/terrain.cc @@ -549,15 +549,16 @@ bool feat_destroys_item(dungeon_feature_type feat, const item_def &item, { switch (feat) { + case DNGN_SHALLOW_WATER: case DNGN_DEEP_WATER: if (noisy) mprf(MSGCH_SOUND, "You hear a splash."); - return (true); + return (false); case DNGN_LAVA: if (noisy) mprf(MSGCH_SOUND, "You hear a sizzling splash."); - return (true); + return (item.base_type == OBJ_SCROLLS); default: return (false); -- cgit v1.2.3-54-g00ecf