From 1ae80c393d7062179b3478d8294655bf2c6fe6c5 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sat, 28 Nov 2009 16:47:26 +1000 Subject: New unrand: +3 robe of Clouds (rElec, +Lev) It creates clouds of rain and thin mist around the player (very occasionally). Provides insulation and evocable levitation. Also has a tile! --- crawl-ref/source/art-func.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'crawl-ref/source/art-func.h') diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index 9c75324e20..0ab242d932 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -508,3 +508,30 @@ static void _GONG_melee_effect(item_def* item, actor* wearer, noisy(40, wearer->pos()); } + +/////////////////////////////////////////////////// + +static void _RCLOUDS_world_reacts(item_def *item) +{ + if (one_chance_in(100)) + return; + + cloud_type cloud; + if (one_chance_in(4)) + cloud = CLOUD_RAIN; + else + cloud = CLOUD_MIST; + + for (radius_iterator ri(you.pos(), 2); ri; ++ri) + if (!cell_is_solid(*ri) && env.cgrid(*ri) == EMPTY_CLOUD + && one_chance_in(20)) + { + place_cloud( cloud, *ri, random2(10), KC_OTHER, 1); + } +} + +static void _RCLOUDS_equip(item_def *item, bool *show_msgs, bool unmeld) +{ + _equip_mpr(show_msgs, "A thin mist springs up around you!"); +} + -- cgit v1.2.3-54-g00ecf