diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 21:50:24 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 21:50:24 +0000 |
commit | 57880a7aab2b93929895ca8acabba2488461c8a4 (patch) | |
tree | 9ae471787f1bbf5b6b89047fe2b4eafd7cab57f2 /crawl-ref/source/describe.cc | |
parent | db91dfdd93e527f909aca964e71ad05ee9d5d028 (diff) | |
download | crawl-ref-57880a7aab2b93929895ca8acabba2488461c8a4.tar.gz crawl-ref-57880a7aab2b93929895ca8acabba2488461c8a4.zip |
Fix most of 1995487:
- hack description for Trog bookburning ability
- fix typo in Trog description
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5963 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 74eefe2487..f686a3e04b 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -2935,8 +2935,15 @@ void describe_god( god_type which_god, bool give_title ) else if (which_god == GOD_TROG) { have_any = true; - cprintf("You can call upon %s to burn books in your surroundings." - EOL, god_name(which_god).c_str()); + // XXX Mega-hack. Duplicates code in _print_god_abil_desc(). + // FIXME. + std::ostringstream buf; + buf << "You can call upon " << god_name(which_god) + << " to burn books in your surroundings."; + const int spacesleft = 79 - buf.str().length(); + const std::string cost = "(Food)"; + buf << std::setw(spacesleft) << cost; + cprintf("%s" EOL, buf.str().c_str()); } else if (which_god == GOD_ELYVILON) { |