summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 12:12:19 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-20 12:12:19 +0000
commit30a70203bafbec37e9720b511d51d5a4144d9fa9 (patch)
tree83e30012568ae6de7f0a6da400bfec6fc35ed4ca /crawl-ref/source/randart.cc
parent1326ea6a6d343513430861c1ef9a04bfd61dd6a4 (diff)
downloadcrawl-ref-30a70203bafbec37e9720b511d51d5a4144d9fa9.tar.gz
crawl-ref-30a70203bafbec37e9720b511d51d5a4144d9fa9.zip
Change recursing to work similarly as was suggested by {bdr} - Brent?
The curses property now may take any range of numbers, rather than plain 0 or 1. If its value is different from 0, the randart is created cursed. For positive values, it may additionally recurse itself with 1/value probability. In this case, add a description line ("It may recurse itself.") and an auto-inscription ("Curse", comes last). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4406 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index 615c224321..5a0309c1b0 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -1795,7 +1795,7 @@ bool make_item_unrandart( item_def &item, int unrand_index )
item.flags |= ISFLAG_UNRANDART;
item.special = unranddata[ unrand_index ].prpty[ RAP_BRAND ];
- if (unranddata[ unrand_index ].prpty[ RAP_CURSED ])
+ if (unranddata[ unrand_index ].prpty[ RAP_CURSED ] != 0)
do_curse_item( item );
set_unrandart_exist( unrand_index, true );