From f176a95f03207f9225ba1d4085005f3756df35a3 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 23 Sep 2009 21:21:11 +0000 Subject: * Also allow Maurice to steal the occasional spellbook or piece of jewellery. * As per FR 1937144, leave a purple cloud if the player or a monster blinks or teleports away. For some reason this doesn't yet work correctly with scrolls of blinking, even though wizard blink (which uses the same function) does work. -- (from svn) Signed-off-by: Darshan Shaligram --- crawl-ref/source/item_use.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index e78b4aaea6..88794020cf 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -1832,6 +1832,9 @@ static bool _dispersal_hit_victim(bolt& beam, actor* victim, int dmg, if (victim->atype() == ACT_PLAYER) { + // Leave a purple cloud. + place_cloud(CLOUD_PURP_SMOKE, you.pos(), 1 + random2(3), KC_YOU); + victim->moveto(pos); mpr("You blink!"); } @@ -1843,6 +1846,11 @@ static bool _dispersal_hit_victim(bolt& beam, actor* victim, int dmg, mon->seen_context = "thin air"; mon->move_to_pos(pos); + + // Leave a purple cloud. + place_cloud(CLOUD_PURP_SMOKE, oldpos, 1 + random2(3), + victim->kill_alignment()); + mon->apply_location_effects(oldpos); mon->check_redraw(oldpos); -- cgit v1.2.3-54-g00ecf