diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-28 20:21:52 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-28 20:21:52 +0100 |
commit | 40753bacfa464506b959e4d455aaa88f652f6d6f (patch) | |
tree | 0cd1c7e3804b6b893af4863df9d69302778d3ecd /crawl-ref/source/describe.cc | |
parent | b1ad22ee0d4a186aa9b6096448cd32f9bfa4e1bd (diff) | |
download | crawl-ref-40753bacfa464506b959e4d455aaa88f652f6d6f.tar.gz crawl-ref-40753bacfa464506b959e4d455aaa88f652f6d6f.zip |
Use append_weapon_stats for staff stat description.
Fixes staffs showing stats in a different order from weapons, and
makes the description safe from future stat changes.
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r-- | crawl-ref/source/describe.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index b51269d9e6..47c8d42f66 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -1924,10 +1924,9 @@ std::string get_item_description( const item_def &item, bool verbose, } else { - description << - "$Damage rating: 7 Accuracy rating: +6 " - "Attack delay: 120%"; - + std::string stats = ""; + append_weapon_stats(stats, item); + description << stats; description << "$$It falls into the 'Staves' category."; } break; |