From 6ab8afedb152e4f158c702025c03798e74a463a4 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Sat, 2 Jan 2010 19:06:24 -0800 Subject: Increase effects of Recharging on rods and allow it to affect enchantment (Eronarn). --- crawl-ref/source/itemprop.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/itemprop.cc') 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); } -- cgit v1.2.3-54-g00ecf