summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-27 22:44:12 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-27 22:44:12 +1000
commitb5068662183d41698414e728f64579bf3544cbaa (patch)
tree563664592e63eac18637cf5aab8c4d7426a76b93 /crawl-ref/source/dungeon.cc
parent1f6a372b1d013ce9068bee8c175fb7c11c28de5e (diff)
downloadcrawl-ref-b5068662183d41698414e728f64579bf3544cbaa.tar.gz
crawl-ref-b5068662183d41698414e728f64579bf3544cbaa.zip
New tags for monster specs: "hd" and "hp". (kilobyte)
Both values override the default class values. Placing "rat hd:20" will generate a rat with a hit dice of 20, while placing "rat hp:20" will set its hp to 20.
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index bd22e31abe..abdee2f3b3 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4926,6 +4926,8 @@ int dgn_place_monster(mons_spec &mspec,
mg.number = mspec.number;
mg.colour = mspec.colour;
mg.mname = mspec.monname;
+ mg.hd = mspec.hd;
+ mg.hp = mspec.hp;
// XXX: hack.
if (mg.colour == -1)