summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-30 11:04:07 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-30 11:04:07 +0000
commitbdcd305d09236d064dfd0dd695dd4f4a0f205030 (patch)
tree86ff506b5b47f1e6560f6686d130c06338c50554 /crawl-ref/source/output.cc
parentf6a1d5082c4ae9853ded65581030b86f5c7991fb (diff)
downloadcrawl-ref-bdcd305d09236d064dfd0dd695dd4f4a0f205030.tar.gz
crawl-ref-bdcd305d09236d064dfd0dd695dd4f4a0f205030.zip
Added Sage card, which boosts skill training.
[Side note: rm saves/ * is a bad idea.] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2945 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc23
1 files changed, 18 insertions, 5 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 792bf67d41..7a0e129133 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -485,7 +485,7 @@ void print_stats(void)
}
else
{
- dur_colour( BLUE, (you.duration[DUR_LEVITATION] <= 10 && !perm) );
+ dur_colour(BLUE, (you.duration[DUR_LEVITATION] <= 10 && !perm));
cprintf( "Lev " );
}
}
@@ -506,16 +506,22 @@ void print_stats(void)
// In that case, it should be probably be GREEN, and we'd have
// to check to see if the player does have a breath weapon. -- bwr
if (you.duration[DUR_BREATH_WEAPON] &&
- wherex() < get_number_of_cols() - 4)
+ wherex() < get_number_of_cols() - 5)
{
textcolor( YELLOW ); // no warning
- cprintf( "BWpn" );
+ cprintf( "BWpn " );
}
- if (you.duration[DUR_BARGAIN] && wherex() < get_number_of_cols() - 4)
+ if (you.duration[DUR_BARGAIN] && wherex() < get_number_of_cols() - 5)
{
dur_colour( BLUE, (you.duration[DUR_BARGAIN] <= 15) );
- cprintf( "Brgn" );
+ cprintf( "Brgn " );
+ }
+
+ if (you.duration[DUR_SAGE] && wherex() < get_number_of_cols() - 5)
+ {
+ dur_colour( BLUE, (you.duration[DUR_SAGE] <= 15) );
+ cprintf( "Sage " );
}
textcolor( LIGHTGREY );
@@ -1386,6 +1392,13 @@ std::string status_mut_abilities()
// DUR_STEALTHY handled in stealth printout
+ if (you.duration[DUR_SAGE])
+ {
+ text += "studying ";
+ text += skill_name(you.sage_bonus_skill);
+ text += ", ";
+ }
+
if (you.duration[DUR_MAGIC_SHIELD])
text += "shielded, ";