summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-12-31 02:08:18 -0800
committerStefan O'Rear <stefanor@cox.net>2009-12-31 03:15:40 -0800
commit721260a4ac6e8276148ee1065d98654d3043fb21 (patch)
tree82b8790e5207c3915caea3f836d965d09f246aa2 /crawl-ref/source/dungeon.cc
parent1013e7337c002f41b3db25f86bbc5d3561266dad (diff)
downloadcrawl-ref-721260a4ac6e8276148ee1065d98654d3043fb21.tar.gz
crawl-ref-721260a4ac6e8276148ee1065d98654d3043fb21.zip
Kraken and jellyfish are invertibrates
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index e9bc4d3637..84c00f70d5 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3381,7 +3381,8 @@ static int _place_monster_vector(std::vector<monster_type> montypes,
};
mg.base_type = mg.cls;
- mg.cls = lut[random_choose_weighted(2, 0, 8, 1, 1, 2, 0)]
+ int s = mons_skeleton(mg.cls) ? 2 : 0;
+ mg.cls = lut[random_choose_weighted(s, 0, 8, 1, 1, 2, 0)]
[mons_zombie_size(mg.base_type) == Z_BIG];
}