diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-10 22:10:44 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-10 22:10:44 +0000 |
commit | 537160d9714e4783ed07c2edbbd85a88d3e51f69 (patch) | |
tree | 6dae3f276bb407e647657a1d34fb0d408fc1e879 /crawl-ref/source/spells2.cc | |
parent | 6e22dc58cfb63a6618d7c92d36a1a7e034e89f44 (diff) | |
download | crawl-ref-537160d9714e4783ed07c2edbbd85a88d3e51f69.tar.gz crawl-ref-537160d9714e4783ed07c2edbbd85a88d3e51f69.zip |
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
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r-- | crawl-ref/source/spells2.cc | 12 |
1 files changed, 1 insertions, 11 deletions
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) |