summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-05 22:44:45 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-05 22:44:45 +0000
commit96c16ddbfc10db4a0abf5d0f1c4e00f2e53f8ee8 (patch)
tree2fda26b817029253a38b69cd986f5971b161ed48 /crawl-ref/source/player.cc
parent55c9acf15cba34e9ac3723ff290258a374193eef (diff)
downloadcrawl-ref-96c16ddbfc10db4a0abf5d0f1c4e00f2e53f8ee8.tar.gz
crawl-ref-96c16ddbfc10db4a0abf5d0f1c4e00f2e53f8ee8.zip
In labyrinths, forget all grids outside a radius of 25*25 (non-Minotaur)
or 40*40 (Minotaur). This significantly increases difficulty again. The numbers are completely arbitrary but they appeared to work fine in testing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7390 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index a75fc6aeb9..2acfa1a66b 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2844,11 +2844,19 @@ void forget_map(unsigned char chance_forgotten, bool force)
if (force && !yesno("Really forget level map?", true, 'n'))
return;
+ int radius = 25*25;
+ if (chance_forgotten < 100 && you.level_type == LEVEL_LABYRINTH
+ && you.species == SP_MINOTAUR)
+ {
+ radius = 40*40;
+ }
for (unsigned char xcount = 0; xcount < GXM; xcount++)
for (unsigned char ycount = 0; ycount < GYM; ycount++)
{
- if (!see_grid(xcount, ycount)
- && (force || x_chance_in_y(chance_forgotten, 100)))
+ const coord_def c(xcount, ycount);
+ if (!see_grid(c)
+ && (force || x_chance_in_y(chance_forgotten, 100)
+ || chance_forgotten < 100 && (you.pos()-c).abs() > radius))
{
env.map[xcount][ycount].clear();
}