From b5068662183d41698414e728f64579bf3544cbaa Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Fri, 27 Nov 2009 22:44:12 +1000 Subject: 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. --- crawl-ref/source/dungeon.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/dungeon.cc') 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) -- cgit v1.2.3-54-g00ecf