diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-04 23:02:18 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-04 23:02:18 +0000 |
commit | ae8b9d93ae9dfe0df789c4867fbd5aeff695c6df (patch) | |
tree | 4a0695dac4cc6a127d5ace7163c598af7ea596cb /crawl-ref/source/mutation.cc | |
parent | e286813813d43276645532721311960f8178faa7 (diff) | |
download | crawl-ref-ae8b9d93ae9dfe0df789c4867fbd5aeff695c6df.tar.gz crawl-ref-ae8b9d93ae9dfe0df789c4867fbd5aeff695c6df.zip |
Better feedback for Beogh water walking.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1751 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 360dfe99cb..f3f001e686 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -893,11 +893,11 @@ formatted_string describe_mutations() const char *mut_title = "Innate Abilities, Weirdness & Mutations"; // center title - int i; - i = 39 - strlen(mut_title) / 2; - if (i<0) i=0; + int offset = 39 - strlen(mut_title) / 2; + if ( offset < 0 ) offset = 0; + + result += std::string(offset, ' '); - result += std::string(i, ' '); result += "<white>"; result += mut_title; result += "</white>" EOL EOL; @@ -1085,9 +1085,15 @@ formatted_string describe_mutations() result += "</lightblue>"; + if ( beogh_water_walk() ) + { + result += "<green>You can walk on water.</green>" EOL; + have_any = true; + } + textcolor(LIGHTGREY); - for (i = 0; i < NUM_MUTATIONS; i++) + for (int i = 0; i < NUM_MUTATIONS; i++) { if (you.mutation[i] != 0) { |