diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 18:36:59 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 18:36:59 +0000 |
commit | b2808c36e00a27af452f1dfe9efbbb73dd2e24b9 (patch) | |
tree | 184c65dca7192ec34c5e3625020361047f973352 /crawl-ref/source/randart.cc | |
parent | f1b8a180dc5d5e01c01456a0d511f4683ad97b78 (diff) | |
download | crawl-ref-b2808c36e00a27af452f1dfe9efbbb73dd2e24b9.tar.gz crawl-ref-b2808c36e00a27af452f1dfe9efbbb73dd2e24b9.zip |
For TSO artefact gifts, put checks against negative accuracy and damage
back in for now.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4309 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r-- | crawl-ref/source/randart.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 3c68c36a7f..6f59c64456 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -119,7 +119,9 @@ static bool god_fits_artefact(const god_type which_god, const item_def &item) || randart_wpn_property( item, RAP_PREVENT_TELEPORTATION ) || randart_wpn_property( item, RAP_ANGRY ) || randart_wpn_property( item, RAP_METABOLISM ) - || randart_wpn_property( item, RAP_MUTAGENIC )) + || randart_wpn_property( item, RAP_MUTAGENIC ) + || randart_wpn_property( item, RAP_ACCURACY ) < 0 + || randart_wpn_property( item, RAP_DAMAGE ) < 0) { return (false); // filter out negative effects } |