summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-06 21:06:34 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-06 21:06:34 +0000
commitcb3497134b22bd2a2d413fdbdb41324e8e7070d7 (patch)
treecb9f2059879e48d60f053136c608496c8c30baf7 /crawl-ref/source/monplace.h
parent5d559d519c41f7f6d621afb15f567c44a4f6311d (diff)
downloadcrawl-ref-cb3497134b22bd2a2d413fdbdb41324e8e7070d7.tar.gz
crawl-ref-cb3497134b22bd2a2d413fdbdb41324e8e7070d7.zip
* Fix god gift randarts being named after *other* gods.
* Reallow monster placement of bands (at least for Beogh's retribution; it might be similarly buggy for normal generation). * Extend documentation on orc naming, and sometimes name the band leader of a band sent after you for retribution. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4894 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r--crawl-ref/source/monplace.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h
index 13e1320922..982205515b 100644
--- a/crawl-ref/source/monplace.h
+++ b/crawl-ref/source/monplace.h
@@ -176,7 +176,7 @@ struct mgen_data
int monpower = you.your_level,
proximity_type prox = PROX_ANYWHERE,
level_area_type ltype = you.level_type)
-
+
: cls(mt), base_type(base), behaviour(beh),
abjuration_duration(abj), pos(p), foe(mfoe), flags(monflags),
number(monnumber), colour(moncolour), power(monpower),
@@ -204,13 +204,14 @@ struct mgen_data
{
return mgen_data(what, BEH_HOSTILE, 0, where);
}
-
+
static mgen_data alert_hostile_at(monster_type what,
const coord_def &where,
- int abj_deg = 0)
+ int abj_deg = 0,
+ unsigned flags = 0)
{
- return mgen_data(what, BEH_HOSTILE, abj_deg, where, MHITYOU);
- }
+ return mgen_data(what, BEH_HOSTILE, abj_deg, where, MHITYOU, flags);
+ }
};
// last updated 13mar2001 {gdl}