diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-27 22:44:12 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-27 22:44:12 +1000 |
commit | b5068662183d41698414e728f64579bf3544cbaa (patch) | |
tree | 563664592e63eac18637cf5aab8c4d7426a76b93 /crawl-ref/source/mon-place.h | |
parent | 1f6a372b1d013ce9068bee8c175fb7c11c28de5e (diff) | |
download | crawl-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/mon-place.h')
-rw-r--r-- | crawl-ref/source/mon-place.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-place.h b/crawl-ref/source/mon-place.h index bea1c0f988..24d4765ac4 100644 --- a/crawl-ref/source/mon-place.h +++ b/crawl-ref/source/mon-place.h @@ -191,6 +191,10 @@ struct mgen_data // be available (vault metadata is not preserved across game saves). unsigned map_mask; + // XXX: Also rather hackish. + int hd; + int hp; + // XXX: Rather hackish. std::string mname; @@ -213,6 +217,7 @@ struct mgen_data int monpower = you.your_level, proximity_type prox = PROX_ANYWHERE, level_area_type ltype = you.level_type, + int mhd = 0, int mhp = 0, std::string monname = "", std::string nas = "") @@ -220,7 +225,7 @@ struct mgen_data abjuration_duration(abj), summon_type(st), pos(p), foe(mfoe), flags(monflags), god(which_god), number(monnumber), colour(moncolour), power(monpower), proximity(prox), level_type(ltype), map_mask(0), - mname(monname), non_actor_summoner(nas) + hd(mhd), hp(mhp), mname(monname), non_actor_summoner(nas) { ASSERT(summon_type == 0 || (abj >= 1 && abj <= 6) || mt == MONS_BALL_LIGHTNING); @@ -257,7 +262,7 @@ struct mgen_data return mgen_data(mt, BEH_HOSTILE, 0, abj, st, p, alert ? MHITYOU : MHITNOT, monflags, god, base, 0, BLACK, you.your_level, - PROX_ANYWHERE, you.level_type, "", summoner); + PROX_ANYWHERE, you.level_type, 0, 0, "", summoner); } }; |