summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 22:00:21 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-12 22:00:21 +0100
commitf91590d9812ba01594d5d72e057457c9869afa67 (patch)
tree7f932a68105360293fe4ddd57ea02c5282f4cf61 /crawl-ref/source/describe.cc
parent8f574480e681337439068d056108596ef7ce7f67 (diff)
downloadcrawl-ref-f91590d9812ba01594d5d72e057457c9869afa67.tar.gz
crawl-ref-f91590d9812ba01594d5d72e057457c9869afa67.zip
Make append_spells() align spell levels correctly.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 2738ef0df1..6d98503ee8 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1607,12 +1607,14 @@ void append_spells(std::string &desc, const item_def &item)
for (unsigned int i = 0; i < 35 - name.length(); ++i)
desc += " ";
+ std::string schools;
if (item.base_type == OBJ_STAVES)
- desc += "Evocations";
+ schools = "Evocations";
else
- desc += spell_schools_string(stype);
+ schools = spell_schools_string(stype);
- for (unsigned int i = 36; i < 65 - name.length(); ++i)
+ desc += schools;
+ for (unsigned int i = 36; i < 65 - schools.length(); ++i)
desc += " ";
char sval[3];