diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-04-13 22:09:40 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-05-07 18:23:24 -0600 |
commit | 17db3c18ea0925d927a7770c43f3187d963e1253 (patch) | |
tree | 9dc2174b74b4a2b2abdd61f606422493ab283d96 /crawl-ref/source/ouch.cc | |
parent | bef5296d49176f7f15cc0adaad85c62ea3366fbd (diff) | |
download | crawl-ref-17db3c18ea0925d927a7770c43f3187d963e1253.tar.gz crawl-ref-17db3c18ea0925d927a7770c43f3187d963e1253.zip |
Qazlal: Elemental Adaptation.
Taking damage from an elemental attack sometimes causes you to gain a
temporary point of resistance in that element (overriding the other
temporary resistances). This includes "earth attacks", i.e. physical
damage, which give you a 3 AC boost.
Thanks again to mikee for initially suggesting this idea.
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 032d6e86c2..20e0f6f693 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -37,6 +37,7 @@ #include "fight.h" #include "fineff.h" #include "godabil.h" +#include "godpassive.h" #include "hints.h" #include "hiscores.h" #include "invent.h" @@ -609,6 +610,7 @@ bool expose_player_to_element(beam_type flavour, int strength, bool damage_inventory, bool slow_dracs) { _maybe_melt_player_enchantments(flavour, strength ? strength : 10); + qazlal_element_adapt(flavour, strength); if (flavour == BEAM_COLD && slow_dracs && player_genus(GENPC_DRACONIAN) && you.res_cold() <= 0 && coinflip()) |