diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-15 15:45:05 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-15 15:45:05 +0000 |
commit | d41eb1b2b5ae57c15005250400a0ae3d85b0ad7c (patch) | |
tree | 931ec5ec90ff97f38f089a0c6e1562b3f0eea19c /crawl-ref/source/output.cc | |
parent | c0447d60a042e50f127de3d8bde1868b648fd127 (diff) | |
download | crawl-ref-d41eb1b2b5ae57c15005250400a0ae3d85b0ad7c.tar.gz crawl-ref-d41eb1b2b5ae57c15005250400a0ae3d85b0ad7c.zip |
Add divine stamina (temporary stat-boosting) to Zin's Revitalisation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5054 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index f9542ea459..a10408e8f8 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -362,7 +362,7 @@ static void _print_stats_str(int x, int y) cgotoxy(x+5, y, GOTO_STAT); - if (you.duration[DUR_MIGHT]) + if (you.duration[DUR_MIGHT] || you.duration[DUR_DIVINE_STAMINA]) textcolor(LIGHTBLUE); // no end of effect warning else if (you.strength < you.max_strength) textcolor(YELLOW); @@ -391,7 +391,13 @@ static void _print_stats_int(int x, int y) cgotoxy(x+5, y, GOTO_STAT); - textcolor(you.intel < you.max_intel ? YELLOW : HUD_VALUE_COLOR); + if (you.duration[DUR_DIVINE_STAMINA]) + textcolor(LIGHTBLUE); // no end of effect warning + else if (you.intel < you.max_intel) + textcolor(YELLOW); + else + textcolor(HUD_VALUE_COLOR); + cprintf( "%d", you.intel ); if (you.intel != you.max_intel) @@ -412,7 +418,13 @@ static void _print_stats_dex(int x, int y) cgotoxy(x+5, y, GOTO_STAT); - textcolor(you.dex < you.max_dex ? YELLOW : HUD_VALUE_COLOR); + if (you.duration[DUR_DIVINE_STAMINA]) + textcolor(LIGHTBLUE); // no end of effect warning + else if (you.dex < you.max_dex) + textcolor(YELLOW); + else + textcolor(HUD_VALUE_COLOR); + cprintf( "%d", you.dex ); if (you.dex != you.max_dex) |