summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2010-01-02 19:06:24 -0800
committerStefan O'Rear <stefanor@cox.net>2010-01-02 19:12:49 -0800
commit6ab8afedb152e4f158c702025c03798e74a463a4 (patch)
treedde1283fd3515bbbd43d0587f25897a8363d1cdf /crawl-ref/source/itemprop.cc
parent0dd26495166d2659319d2f4e78f7b68f50e7c355 (diff)
downloadcrawl-ref-6ab8afedb152e4f158c702025c03798e74a463a4.tar.gz
crawl-ref-6ab8afedb152e4f158c702025c03798e74a463a4.zip
Increase effects of Recharging on rods and allow it to affect enchantment (Eronarn).
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 9856f7260d..f19bea28f1 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1096,7 +1096,9 @@ bool item_is_rechargeable(const item_def &it, bool hide_charged, bool weapons)
if (item_ident(it, ISFLAG_KNOW_PLUSES))
{
return (it.plus2 < MAX_ROD_CHARGE * ROD_CHARGE_MULT
- || it.plus < it.plus2);
+ || it.plus < it.plus2
+ || !it.props.exists("rod_enchantment")
+ || short(it.props["rod_enchantment"]) < MAX_WPN_ENCHANT);
}
return (true);
}