diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-28 19:59:33 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-28 19:59:33 +0000 |
commit | b51dc9e9720a5cdb08d240da53948d34bb8a6c5a (patch) | |
tree | 907ba1c3a10ce86c5a2b7b06c1a1cacc0da3657f /crawl-ref/source/describe.cc | |
parent | f7eda5bc39c5971efb204d29b2bf155eda36ce26 (diff) | |
download | crawl-ref-b51dc9e9720a5cdb08d240da53948d34bb8a6c5a.tar.gz crawl-ref-b51dc9e9720a5cdb08d240da53948d34bb8a6c5a.zip |
Xom again:
* tweak values for tension and amusement
* Xom only laughs about "funny" deaths
* gift_timeout rerolling after a bad act depends on its severity
* replace the blink effect with position swapping
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9561 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index dfb4517cf3..80d45c124e 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -81,18 +81,18 @@ static void _append_value( std::string & description, int valu, bool plussed ) int count_desc_lines(const std::string _desc, const int width) { - std::string desc = get_linebreak_string(_desc, width); + std::string desc = get_linebreak_string(_desc, width); - int count = 0; - for (int i = 0, size = desc.size(); i < size; i++) - { - const char ch = desc[i]; + int count = 0; + for (int i = 0, size = desc.size(); i < size; i++) + { + const char ch = desc[i]; - if (ch == '\n' || ch == '$') - count++; - } + if (ch == '\n' || ch == '$') + count++; + } - return count; + return count; } //--------------------------------------------------------------- |