diff options
-rw-r--r-- | crawl-ref/source/effects.cc | 9 | ||||
-rw-r--r-- | crawl-ref/source/item_use.cc | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index f7afc95f16..74ca4db599 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1941,19 +1941,22 @@ bool recharge_wand(int item_slot) wand.plus, std::min(charge_gain * 3, wand.plus + - 1 + random2avg( ((charge_gain - 1) * 3) + 1, 3 ))); + 1 + random2avg(((charge_gain - 1) * 3) + 1, 3))); const bool charged = (new_charges > wand.plus); std::string desc; + if (charged && item_ident(wand, ISFLAG_KNOW_PLUSES)) { - snprintf(info, INFO_SIZE, " and now has %d charges", new_charges); + snprintf(info, INFO_SIZE, " and now has %d charge%s", + new_charges, new_charges == 1 ? "" : "s"); desc = info; } + mprf("%s %s for a moment%s.", wand.name(DESC_CAP_YOUR).c_str(), - charged? "glows" : "flickers", + charged ? "glows" : "flickers", desc.c_str()); wand.plus = new_charges; diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 1e03712a56..a00ebe3ea4 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4040,6 +4040,7 @@ void zap_wand(int slot) mprf("This wand has %d charge%s left.", wand.plus, wand.plus == 1 ? "" : "s"); + set_ident_flags(wand, ISFLAG_KNOW_PLUSES); } |