diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-10-28 07:33:21 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-10-28 07:33:21 +0000 |
commit | f364055c63c9f1bd08fab30e4eb3b048219e3ed9 (patch) | |
tree | 1813326c87a5e16b45b5689e7b25864310b02cbe | |
parent | 8dbaceace001cb3958f242f8c2d5224b20d558b9 (diff) | |
download | crawl-ref-f364055c63c9f1bd08fab30e4eb3b048219e3ed9.tar.gz crawl-ref-f364055c63c9f1bd08fab30e4eb3b048219e3ed9.zip |
Reduce delay for wearing shields.
Chain lightning weakens greatly when it goes out of LOS of the caster.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@297 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/item_use.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/spells1.cc | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 908c36116d..0a035bc706 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -867,6 +867,10 @@ bool do_wear_armour( int item, bool quiet ) int delay = property( you.inv[item], PARM_AC ); + // Shields are comparatively easy to wear. + if (is_shield( you.inv[item] )) + delay /= 2; + if (delay < 1) delay = 1; diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 62aa6898da..1d6cce874d 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -359,6 +359,12 @@ void cast_chain_lightning( int powc ) else if (!see_source && see_targ) mpr( "The lightning arc suddenly appears!" ); + if (!see_targ) + { + // It's no longer in the caster's LOS and influence. + powc = powc / 2 + 1; + } + beam.source_x = sx; beam.source_y = sy; beam.target_x = tx; |