diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-12 13:09:35 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-07-13 01:22:31 +0100 |
commit | 2744e81ddbcce133bca18baee0e58e2da8c90d8c (patch) | |
tree | 9bca28e685600c50dbce9da13565b628533c5096 /crawl-ref/source/religion.cc | |
parent | 49e75c23ea32823b21baba3dcc13465726877aa5 (diff) | |
download | crawl-ref-2744e81ddbcce133bca18baee0e58e2da8c90d8c.tar.gz crawl-ref-2744e81ddbcce133bca18baee0e58e2da8c90d8c.zip |
Remove Qazlal's permanent resistance gift
A simple resistance is a very boring capstone gift, especially compared
to Qazlal's existing temporary resistances which have much more
interesting interactions, and the powerful active abilities. Allowing a
choice of resistance also resulted in AC almost always being the best
option.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 78 |
1 files changed, 4 insertions, 74 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index ca4b76d42a..492ba9f40a 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -1112,34 +1112,11 @@ void dec_penance(god_type god, int val) mprf(MSGCH_GOD, "Your aura of darkness returns!"); invalidate_agrid(true); } - else if (god == GOD_QAZLAL) + else if (god == GOD_QAZLAL + && you.piety >= piety_breakpoint(0)) { - if (you.piety >= piety_breakpoint(0)) - { - mprf(MSGCH_GOD, "A storm instantly forms around you!"); - you.redraw_armour_class = true; // also handles shields - } - if (you.attribute[ATTR_DIVINE_FIRE_RES]) - { - simple_god_message( - " reinstates your protection from fire."); - } - if (you.attribute[ATTR_DIVINE_COLD_RES]) - { - simple_god_message( - " reinstates your protection from cold."); - } - if (you.attribute[ATTR_DIVINE_ELEC_RES]) - { - simple_god_message( - " reinstates your protection from electricity."); - } - if (you.attribute[ATTR_DIVINE_AC]) - { - simple_god_message( - " reinstates your protection from physical attacks."); - you.redraw_armour_class = true; - } + mprf(MSGCH_GOD, "A storm instantly forms around you!"); + you.redraw_armour_class = true; // also handles shields } // When you've worked through all your penance, you get // another chance to make hostile slimes strict neutral. @@ -1309,21 +1286,6 @@ static void _inc_penance(god_type god, int val) you.duration[DUR_QAZLAL_AC] = 0; you.redraw_armour_class = true; } - if (you.attribute[ATTR_DIVINE_FIRE_RES]) - simple_god_message(" revokes your protection from fire.", god); - if (you.attribute[ATTR_DIVINE_COLD_RES]) - simple_god_message(" revokes your protection from cold.", god); - if (you.attribute[ATTR_DIVINE_ELEC_RES]) - { - simple_god_message( - " revokes your protection from electricity.", god); - } - if (you.attribute[ATTR_DIVINE_AC]) - { - simple_god_message( - " revokes your protection from physical attacks.", god); - you.redraw_armour_class = true; - } } if (you_worship(god)) @@ -2514,10 +2476,6 @@ static void _gain_piety_point() you.one_time_ability_used.set(you.religion); break; - case GOD_QAZLAL: - simple_god_message(" will now grant you protection from " - "an element of your choosing."); - break; default: break; } @@ -2630,11 +2588,6 @@ void lose_piety(int pgn) simple_god_message( " is no longer ready to corrupt your weapon."); } - else if (you_worship(GOD_QAZLAL)) - { - simple_god_message( - " is no longer ready to protect you from an element."); - } } } @@ -3011,29 +2964,6 @@ void excommunication(god_type new_god) you.duration[DUR_QAZLAL_AC] = 0; you.redraw_armour_class = true; } - if (you.attribute[ATTR_DIVINE_FIRE_RES]) - { - you.attribute[ATTR_DIVINE_FIRE_RES] = 0; - simple_god_message(" revokes your protection from fire.", old_god); - } - if (you.attribute[ATTR_DIVINE_COLD_RES]) - { - you.attribute[ATTR_DIVINE_COLD_RES] = 0; - simple_god_message(" revokes your protection from cold.", old_god); - } - if (you.attribute[ATTR_DIVINE_ELEC_RES]) - { - you.attribute[ATTR_DIVINE_ELEC_RES] = 0; - simple_god_message(" revokes your protection from electricity.", - old_god); - } - if (you.attribute[ATTR_DIVINE_AC]) - { - you.attribute[ATTR_DIVINE_AC] = 0; - simple_god_message( - " revokes your protection from physical attacks.", old_god); - you.redraw_armour_class = true; - } _set_penance(old_god, 25); break; |