summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index df8a11a05e..43e2be7226 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -2253,7 +2253,17 @@ void wield_warning(bool newWeapon)
if (effective_stat_bonus() > -4)
return;
- std::string msg = (newWeapon ? "this " : "your ") + wep.name(DESC_BASENAME);
+ std::string msg;
+
+ // We know if it's an artefact because we just wielded
+ // it, so no information leak.
+ if (is_artefact(wep))
+ msg = "the";
+ else if (newWeapon)
+ msg = "this";
+ else
+ msg = "your";
+ msg += " " + wep.name(DESC_BASENAME);
const char* mstr = msg.c_str();
if (you.strength < you.dex)