summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-24 23:59:29 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-24 23:59:29 +0000
commit3af889aed322f5be38538c04c6944b89b8c368c8 (patch)
tree60acf77f46be9202eda740de63d2bb141c88ac3b /crawl-ref/source/player.cc
parent8d485d7ee5fce1b05600bdb743b134329675f2d4 (diff)
downloadcrawl-ref-3af889aed322f5be38538c04c6944b89b8c368c8.tar.gz
crawl-ref-3af889aed322f5be38538c04c6944b89b8c368c8.zip
Hard-capped see invisible and resist poison at 1 level to fix 1687499.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1090 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 462a38abae..c929776c85 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1121,8 +1121,8 @@ int player_res_poison(bool calc_unid)
break;
}
- if (rp > 3)
- rp = 3;
+ if (rp > 1)
+ rp = 1;
return (rp);
} // end player_res_poison()
@@ -2045,6 +2045,9 @@ int player_see_invis(bool calc_unid)
if (artefacts > 0)
si += artefacts;
+ if ( si > 1 )
+ si = 1;
+
return si;
}