summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-14 08:55:24 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-14 08:55:24 +0000
commit6dba2ac32df50d8a0d3628fbc65fb81825a96fdd (patch)
treec5db7daf782a95707f90fd4351e85c3dfa070b49 /crawl-ref/source/dungeon.cc
parent60f850418fc4a37a5f2eccec19a83065fa7769e5 (diff)
downloadcrawl-ref-6dba2ac32df50d8a0d3628fbc65fb81825a96fdd.tar.gz
crawl-ref-6dba2ac32df50d8a0d3628fbc65fb81825a96fdd.zip
Implemented Beogh, god of Orcs.
+ added information about random choice to newgame git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1585 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 698af2f03e..748048a9aa 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3717,13 +3717,14 @@ static dungeon_feature_type pick_an_altar()
break;
case BRANCH_ORCISH_MINES: // violent gods
- temp_rand = random2(5);
+ temp_rand = random2(10); // 50% chance of Beogh
altar_type = ((temp_rand == 0) ? DNGN_ALTAR_VEHUMET :
(temp_rand == 1) ? DNGN_ALTAR_MAKHLEB :
(temp_rand == 2) ? DNGN_ALTAR_OKAWARU :
- (temp_rand == 3) ? DNGN_ALTAR_TROG
- : DNGN_ALTAR_XOM);
+ (temp_rand == 3) ? DNGN_ALTAR_TROG :
+ (temp_rand == 4) ? DNGN_ALTAR_XOM
+ : DNGN_ALTAR_BEOGH);
break;
case BRANCH_VAULTS: // "lawful" gods
@@ -3761,7 +3762,8 @@ static dungeon_feature_type pick_an_altar()
random2(NUM_GODS - 1));
}
while (altar_type == DNGN_ALTAR_NEMELEX_XOBEH
- || altar_type == DNGN_ALTAR_LUGONU);
+ || altar_type == DNGN_ALTAR_LUGONU
+ || altar_type == DNGN_ALTAR_BEOGH);
break;
}
}