From 537160d9714e4783ed07c2edbbd85a88d3e51f69 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 10 Jan 2009 22:10:44 +0000 Subject: Display basic resistance information. I'm putting this in so that there'll be a base to work on; of course the format can (and should) be improved. Currently it's one line per resistance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8396 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells2.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 48ff558ec8..55deaf7c8a 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -78,9 +78,6 @@ int detect_traps( int pow ) int detect_items( int pow ) { - if (pow > 50) - pow = 50; - int items_found = 0; const int map_radius = 8 + random2(8) + pow; @@ -191,9 +188,6 @@ int detect_creatures( int pow, bool telepathic ) if (!telepathic) _fuzz_detect_creatures(pow, &fuzz_radius, &fuzz_chance); - if (pow > 50) - pow = 50; - int creatures_found = 0; const int map_radius = 8 + random2(8) + pow; @@ -224,10 +218,8 @@ int detect_creatures( int pow, bool telepathic ) return (creatures_found); } -int corpse_rot(int pow) +void corpse_rot() { - UNUSED(pow); - for (radius_iterator ri(you.pos(), 6); ri; ++ri) { if (see_grid_no_trans(*ri) && !is_sanctuary(*ri) @@ -256,8 +248,6 @@ int corpse_rot(int pow) mpr("You smell decay."); // Should make zombies decay into skeletons? - - return (0); } bool brand_weapon(brand_type which_brand, int power) -- cgit v1.2.3-54-g00ecf