From 40753bacfa464506b959e4d455aaa88f652f6d6f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 28 Nov 2009 20:21:52 +0100 Subject: 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. --- crawl-ref/source/describe.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/describe.cc') 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; -- cgit v1.2.3-54-g00ecf