From 2e52a0c19d866a6a15b36163fa145a94bbf9721f Mon Sep 17 00:00:00 2001 From: Shmuale Mark Date: Sun, 3 Aug 2014 13:59:36 -0400 Subject: Hide a hack better. Ideally, we wouldn't be using special for unrands totally different from how items of the same type do, but that's less trivial than this commit. A centralised place to check for being an unrand should at least make such a change easier. --- crawl-ref/source/itemname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/itemname.cc') diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 0a38c1858d..5a33428c4d 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1364,7 +1364,7 @@ string item_def::name_aux(description_level_type desc, bool terse, bool ident, if (know_pluses) { - if (is_unrandom_artefact(*this) && special == UNRAND_WOE) + if (is_unrandom_artefact(*this, UNRAND_WOE)) buff << "+∞ "; else buff << make_stringf("%+d ", it_plus); -- cgit v1.2.3-54-g00ecf