diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-06-24 13:54:02 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-06-24 13:58:46 +0100 |
commit | 2fab1c1e1f4a8b8e67855e27537ed6797ea8d002 (patch) | |
tree | d7e6880b996181db5fce691914f9af9e07938f4f /crawl-ref/source/spl-selfench.cc | |
parent | 356a7c0c03c3c4de73b4b2daa3fcd4906b3d835f (diff) | |
download | crawl-ref-2fab1c1e1f4a8b8e67855e27537ed6797ea8d002.tar.gz crawl-ref-2fab1c1e1f4a8b8e67855e27537ed6797ea8d002.zip |
Post-merge Skald cleanup
Numerous tweaks and code review:
* Fix errors and save compat issues introduced by the merge
* Formatting fixes
* Some text and capitalisation tweaks
* Clean up some leftover comments / code
* Change some debugging messages to dprf
* Move some bits of code to match enum positions
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r-- | crawl-ref/source/spl-selfench.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc index 25a9b15c2b..041ee342d9 100644 --- a/crawl-ref/source/spl-selfench.cc +++ b/crawl-ref/source/spl-selfench.cc @@ -328,13 +328,10 @@ spret_type cast_infusion(int pow, bool fail) { fail_check(); if (!you.duration[DUR_INFUSION]) - { mpr("Your attacks are magically infused."); - } else - { mpr("Your attacks are magically infused for longer."); - } + you.increase_duration(DUR_INFUSION, 8 + roll_dice(2, pow), 100); you.props["infusion_power"] = pow; @@ -346,14 +343,11 @@ spret_type cast_song_of_slaying(int pow, bool fail) fail_check(); if (you.duration[DUR_SONG_OF_SLAYING]) - { mpr("You start a new song!"); - } else - { mpr("You start singing a song of slaying."); - } - you.increase_duration(DUR_SONG_OF_SLAYING, 20+pow/3, 20+pow/3); + + you.increase_duration(DUR_SONG_OF_SLAYING, 20 + pow / 3, 20 + pow / 3); noisy(12, you.pos()); @@ -364,7 +358,7 @@ spret_type cast_song_of_slaying(int pow, bool fail) spret_type cast_spirit_shield(int pow, bool fail) { fail_check(); - you.increase_duration(DUR_SPIRIT_SHIELD, 10 + random2(pow)/3, 40); + you.increase_duration(DUR_SPIRIT_SHIELD, 10 + random2(pow) / 3, 40); mpr("You are being protected by your magic."); return SPRET_SUCCESS; } |