summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attitude-change.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-20 23:25:29 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-21 01:34:35 +0200
commitaaea51835ffddbd677776a59320d924921a6701b (patch)
tree6ef55b674dcc23fe93d52cd2974b463151b94453 /crawl-ref/source/attitude-change.cc
parent888cf270cf25fc62bcecc24a2ac530fbb14f568d (diff)
downloadcrawl-ref-aaea51835ffddbd677776a59320d924921a6701b.tar.gz
crawl-ref-aaea51835ffddbd677776a59320d924921a6701b.zip
Mindexicide: behaviour_event().
This also reveals how bad the beam blaming code is, need to rewrite that soon -- mostly because of problems with reflection.
Diffstat (limited to 'crawl-ref/source/attitude-change.cc')
-rw-r--r--crawl-ref/source/attitude-change.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc
index 46afc8025f..19f6437435 100644
--- a/crawl-ref/source/attitude-change.cc
+++ b/crawl-ref/source/attitude-change.cc
@@ -199,7 +199,7 @@ bool yred_slaves_abandon_you()
}
mons->attitude = ATT_HOSTILE;
- behaviour_event(mons, ME_ALERT, MHITYOU);
+ behaviour_event(mons, ME_ALERT, &you);
// For now CREATED_FRIENDLY stays.
mons_att_changed(mons);
@@ -257,7 +257,7 @@ bool beogh_followers_abandon_you()
}
mons->attitude = ATT_HOSTILE;
- behaviour_event(mons, ME_ALERT, MHITYOU);
+ behaviour_event(mons, ME_ALERT, &you);
// For now CREATED_FRIENDLY stays.
mons_att_changed(mons);
@@ -344,7 +344,7 @@ void good_god_holy_attitude_change(monster* holy)
holy->god = GOD_SHINING_ONE;
// Avoid immobile "followers".
- behaviour_event(holy, ME_ALERT, MHITNOT);
+ behaviour_event(holy, ME_ALERT);
mons_att_changed(holy);
}
@@ -434,7 +434,7 @@ void beogh_convert_orc(monster* orc, bool emergency,
orc->hit_points = std::min(random_range(1, 4), orc->max_hit_points);
// Avoid immobile "followers".
- behaviour_event(orc, ME_ALERT, MHITNOT);
+ behaviour_event(orc, ME_ALERT);
mons_att_changed(orc);
}