diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-16 19:14:29 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-16 19:14:29 -0700 |
commit | 914a5a54c88097f516b8b673c6976124132b5bf0 (patch) | |
tree | 54551f27500e337152385407d822fc6029f54547 /crawl-ref/source/item_use.cc | |
parent | 3fe8390d1aa8aa2c076d1ba86316bb623b838418 (diff) | |
download | crawl-ref-914a5a54c88097f516b8b673c6976124132b5bf0.tar.gz crawl-ref-914a5a54c88097f516b8b673c6976124132b5bf0.zip |
Re-add a failure chance for enchanting weapons (Nomi)
An unintended byproduct of the ?ew merge.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index cf6aa338e3..99be8d6dfe 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2331,7 +2331,8 @@ bool enchant_weapon(item_def &wpn, bool quiet) { if (!is_artefact(wpn) && wpn.base_type == OBJ_WEAPONS - && wpn.plus < MAX_WPN_ENCHANT) + && wpn.plus < MAX_WPN_ENCHANT + && (wpn.plus < 4 || !x_chance_in_y(wpn.plus, MAX_WPN_ENCHANT))) { wpn.plus++; success = true; |