summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-13 22:09:40 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:24 -0600
commit17db3c18ea0925d927a7770c43f3187d963e1253 (patch)
tree9dc2174b74b4a2b2abdd61f606422493ab283d96 /crawl-ref/source/output.cc
parentbef5296d49176f7f15cc0adaad85c62ea3366fbd (diff)
downloadcrawl-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/output.cc')
-rw-r--r--crawl-ref/source/output.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 7e6f01815d..8488da85e6 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -749,8 +749,13 @@ static void _print_stats_ac(int x, int y)
{
// AC:
CGOTOXY(x+4, y, GOTO_STAT);
- if (you.duration[DUR_ICY_ARMOUR] || player_stoneskin() || player_icemail_armour_class())
+ if (you.duration[DUR_ICY_ARMOUR]
+ || player_stoneskin()
+ || player_icemail_armour_class()
+ || you.duration[DUR_QAZLAL_AC])
+ {
textcolor(LIGHTBLUE);
+ }
else
textcolor(HUD_VALUE_COLOUR);
string ac = make_stringf("%2d ", you.armour_class());
@@ -1048,6 +1053,10 @@ static void _get_status_lights(vector<status_light>& out)
DUR_NO_POTIONS,
STATUS_GOLDEN,
STATUS_BRIBE,
+ DUR_QAZLAL_FIRE_RES,
+ DUR_QAZLAL_COLD_RES,
+ DUR_QAZLAL_ELEC_RES,
+ // DUR_QAZLAL_AC intentionally omitted - shows as AC bonus
};
status_info inf;
@@ -2046,7 +2055,8 @@ static vector<formatted_string> _get_overview_stats()
const bool boosted_mp = you.duration[DUR_DIVINE_VIGOUR];
const bool boosted_ac = you.duration[DUR_ICY_ARMOUR]
|| player_stoneskin()
- || player_icemail_armour_class();
+ || player_icemail_armour_class()
+ || you.duration[DUR_QAZLAL_AC];
const bool boosted_ev = you.duration[DUR_PHASE_SHIFT]
|| you.duration[DUR_AGILITY];
const bool boosted_sh = you.duration[DUR_CONDENSATION_SHIELD]
@@ -2541,6 +2551,10 @@ static string _status_mut_abilities(int sw)
DUR_NO_POTIONS,
STATUS_GOLDEN,
STATUS_BRIBE,
+ DUR_QAZLAL_FIRE_RES,
+ DUR_QAZLAL_COLD_RES,
+ DUR_QAZLAL_ELEC_RES,
+ DUR_QAZLAL_AC,
};
status_info inf;