summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-28 08:58:09 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-28 08:58:09 +0000
commit84651bb77b43871a8142015a87f14b9e52f9e0d8 (patch)
treeedf6ce9f7c0f6283ddc1b8160c91e76cdcc2028b /crawl-ref/source/dungeon.cc
parent242254cdf5f10ae806f22b624e830f51aca1e054 (diff)
downloadcrawl-ref-84651bb77b43871a8142015a87f14b9e52f9e0d8.tar.gz
crawl-ref-84651bb77b43871a8142015a87f14b9e52f9e0d8.zip
Updated levels (David).
Give Tiamat wings and flight. Converted her second attack to a tail-slap (David). Allow ITEM: declarations to use * % and |. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1113 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 557c24bd33..2bea533386 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -6018,6 +6018,18 @@ static void dngn_place_item_explicit(const item_spec &spec,
if (spec.level >= 0)
level = spec.level;
+ else
+ {
+ switch (spec.level)
+ {
+ case ISPEC_GOOD:
+ level = 5 + level * 2;
+ break;
+ case ISPEC_SUPERB:
+ level = MAKE_GOOD_ITEM;
+ break;
+ }
+ }
const int item_made =
items( spec.allow_uniques, spec.base_type, spec.sub_type, true,