summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-26 22:06:44 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-26 22:09:35 -0500
commit5adba81b0de603fbf205162a976eeff5c3f2368c (patch)
tree65c5b3769c4e4296c37d8344ea1582ab51efd0e2 /crawl-ref/source/religion.cc
parent69cd15f050cdef9f4f82bd4d9ff2f54dd37c87d1 (diff)
downloadcrawl-ref-5adba81b0de603fbf205162a976eeff5c3f2368c.tar.gz
crawl-ref-5adba81b0de603fbf205162a976eeff5c3f2368c.zip
If you're having a blessed weapon reblessed by an evil god, convert it
back to a non-blessed weapon, so that you can't get e.g. a blessed eudemon blade of pain from Kiku.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index b0354671f3..6f1dbc111c 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -6175,9 +6175,11 @@ static bool _bless_weapon(god_type god, brand_type brand, int colour)
origin_acquired(wpn, GOD_SHINING_ONE);
make_item_blessed_blade(wpn);
}
-
- burden_change();
}
+ else if (is_evil_god(god))
+ convert2bad(wpn);
+
+ burden_change();
you.wield_change = true;
you.num_gifts[god]++;