summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-25 10:49:19 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-25 10:49:19 +0000
commit1661545d1b70fd6fdd7bb9261d9cc01a36aa909d (patch)
treec65945885fc8b4530ed7586d2897e7bcade76936 /crawl-ref/source/traps.cc
parent288f20074e505ca3eb70c0089de1295235d68ccc (diff)
downloadcrawl-ref-1661545d1b70fd6fdd7bb9261d9cc01a36aa909d.tar.gz
crawl-ref-1661545d1b70fd6fdd7bb9261d9cc01a36aa909d.zip
FR 1951252: Modify shafts to usually (50%) drop you two levels, and
sometimes (25% each) one or three. FR 1951309: Disallow SeeInv + rPois properties for randart naga bardings since naga already have those two as innate mutations, and there's no one else capable of wearing them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4615 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index a074d15f2c..e3aeb77fdb 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -994,7 +994,14 @@ level_id generic_shaft_dest(level_pos lpos)
int curr_depth = lid.depth;
Branch &branch = branches[lid.branch];
- lid.depth += ((pos.x + pos.y) % 3) + 1;
+ // 25% drop one level
+ // 50% drop two levels
+ // 25% drop three levels
+ lid.depth += 2;
+ if (pos.x % 2)
+ lid.depth--;
+ if (pos.y % 2)
+ lid.depth++;
if (lid.depth > branch.depth)
lid.depth = branch.depth;